rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2005 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /******************************************************************************* |
| 37 | * Filename: |
| 38 | * --------- |
| 39 | * ratdm_el2_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | ****************************************************************************** |
| 54 | * $Log$ |
| 55 | * |
| 56 | * 09 15 2017 steve.kao |
| 57 | * [MOLY00278245] [UMOLYA] Remove obsolete parts for copro and LTM |
| 58 | * [UMOLYA][TRUNK] Remove LTM parts from EPDCP & RATDM and delete ltm_el2_msg_struct.h |
| 59 | * |
| 60 | * 08 28 2017 i-feng.chen |
| 61 | * [MOLY00273828] [Bianco][N1][RJIL] Externel (EE),0,0,99,/data/core/,1,modem,Trigger time:[2017-08-24 14:19:33.793598] md1:(MCU_core0.vpe0.tc0(VPE0)) [ASSERT] file:mcu/pcore/modem/rohc/ral/rohc_ral_cr4.c line:1276 p1:0x00000000 p2:0x00000000 p3:0x00000000 ELM |
| 62 | * [TRUNK][EPDCP][UL] Fix for data in data_req different from current epdcp rb_idx-ebi mapping |
| 63 | * |
| 64 | * 08 22 2017 i-feng.chen |
| 65 | * [MOLY00272749] [BIANCO][MT6763][RDIT][L+L][FDD][Overnight] Externel (EE),[ASSERT] file:mcu/pcore/modem/el2/el2/epdcp/src/epdcp_ul_proc.c line:3339 |
| 66 | * |
| 67 | * [TRUNK][EPDCP][UL] Handle data received in inactive protocol_idx |
| 68 | * |
| 69 | * 07 06 2017 timothy.yao |
| 70 | * [MOLY00261868] [6293]UL SIT new handling |
| 71 | * new SIT handling (to TRUNK) |
| 72 | * - UPCM / RATDM. |
| 73 | * |
| 74 | * 02 21 2017 steve.kao |
| 75 | * [MOLY00230978] [6293][EL2] Forced indirect path (VRB mode). |
| 76 | * [UMOLYA][TRUNK][RATDM] Forced VRB mode. |
| 77 | * |
| 78 | * 09 26 2016 cammie.yang |
| 79 | * [MOLY00195563] [6293][EL2][UPCM][RATDM][EPDCP] Initial feature integrations |
| 80 | * [TRUNK] UPCM/RATDM/EPDCP feature integrations from PS.DEV |
| 81 | * |
| 82 | * 08 09 2016 nicole.hsu |
| 83 | * [MOLY00196065] [MT6293][folder structure] Move EL1/EL2 files from LTE domain to SWRD domain |
| 84 | * 93 EL2 others |
| 85 | * |
| 86 | * 07 20 2016 head.hsu |
| 87 | * [MOLY00182559] [MT6292][LWA] U-Plane Development: ePDCP and RATDM |
| 88 | * (RATDM default off) |
| 89 | * [RATDM] LWA support |
| 90 | * 1. WLAN/ePDCP UP control message |
| 91 | * 2. RATDM_LWA_ENABLE |
| 92 | * 3. wrap CCMSG_ID_SYSMSGSVC with __CCCIDEV_SUPPORT__ |
| 93 | * |
| 94 | * 05 25 2015 head.hsu |
| 95 | * [MOLY00109855] [TK6291E1][1st AIQ Call][UMOLY][4G][TDD][CA] Assert Fail ccci_debug.c 498 |
| 96 | * RATDM switch regular tick source via EMAC_SCH_STATUS_IND instead of LTE IDLE state |
| 97 | * |
| 98 | * |
| 99 | ******************************************************************************/ |
| 100 | |
| 101 | #ifndef RATDM_EL2_STRUCT_H |
| 102 | #define RATDM_EL2_STRUCT_H |
| 103 | |
| 104 | #include "kal_general_types.h" |
| 105 | #include "kal_public_defs.h" |
| 106 | #include "abs_time.h" |
| 107 | #include "ltm_el2_struct.h" // TODO: remove |
| 108 | #include "qmu_bm.h" |
| 109 | #include "upcm_did.h" |
| 110 | #include "ue_testmode_struct.h" |
| 111 | |
| 112 | #define RATDM_EPDCP_MAX_NUM_DRB 8 |
| 113 | |
| 114 | /* mapping to the definitions in ltm_el2.h */ |
| 115 | //typedef drb_ulsdu_info_head_t drb_ulsdu_info_t; |
| 116 | #define ULSDU_INFO_FLAG_PRIORITY ULSDU_INFO_HEAD_FLAG_PRIORITY |
| 117 | #define ULSDU_INFO_FLAG_CTRL_PDU ULSDU_INFO_HEAD_FLAG_CTRL_PDU |
| 118 | #define ULSDU_INFO_FLAG_RETX_WI_SN ULSDU_INFO_HEAD_FLAG_RETX_WI_SN |
| 119 | #define GET_ULSDU_INFO(_p) GET_ULSDU_INFO_HEAD(_p) |
| 120 | |
| 121 | typedef struct |
| 122 | { |
| 123 | kal_uint32 total_size; /* bytes */ |
| 124 | kal_uint16 start_idx; /* SDU start index in SIT; valid range: 0~65535 */ |
| 125 | kal_uint16 cnt; /* SDU count */ |
| 126 | }ratdm_lte_dlvr_data_struct; |
| 127 | |
| 128 | typedef struct |
| 129 | { |
| 130 | kal_uint32 rb_idx; |
| 131 | upcm_did *p_head; |
| 132 | upcm_did *p_tail; |
| 133 | }epdcp_dlvr_data_struct; |
| 134 | |
| 135 | typedef struct |
| 136 | { |
| 137 | LOCAL_PARA_HDR |
| 138 | |
| 139 | kal_uint32 rb_idx; /* RB Index (2~9) */ |
| 140 | ratdm_lte_dlvr_data_struct data_pri; /* Priority data (e.g: TCP ACK) */ |
| 141 | ratdm_lte_dlvr_data_struct data_nml; /* Normal data */ |
| 142 | kal_uint8 ebi; /* Used to recognize sit_idx */ |
| 143 | }ratdm_epdcp_data_req_struct; |
| 144 | |
| 145 | typedef struct |
| 146 | { |
| 147 | LOCAL_PARA_HDR |
| 148 | |
| 149 | kal_uint8 eps_br_id; |
| 150 | kal_bool is_forced_indirect_path; |
| 151 | // KAL_TRUE: ask EPDCP to use indirect path (VRB) for the EPSB specified |
| 152 | // KAL_FALSE: let EPDCP decide the DL path (direct path or indirect path) |
| 153 | }ratdm_epdcp_dl_path_switch_req_struct; |
| 154 | |
| 155 | typedef struct |
| 156 | { |
| 157 | LOCAL_PARA_HDR |
| 158 | |
| 159 | kal_uint32 num; |
| 160 | epdcp_dlvr_data_struct data[RATDM_EPDCP_MAX_NUM_DRB]; |
| 161 | }ratdm_epdcp_data_ind_struct; |
| 162 | |
| 163 | typedef struct |
| 164 | { |
| 165 | LOCAL_PARA_HDR |
| 166 | |
| 167 | kal_uint32 message; |
| 168 | }wlan_epdcp_ctrl_msg_ind_struct; |
| 169 | |
| 170 | typedef struct |
| 171 | { |
| 172 | LOCAL_PARA_HDR |
| 173 | |
| 174 | kal_bool is_sch_open; |
| 175 | }ratdm_emac_sch_status_ind_struct; |
| 176 | |
| 177 | typedef struct |
| 178 | { |
| 179 | LOCAL_PARA_HDR |
| 180 | |
| 181 | ABS_TICK_TIME wakeup_time; |
| 182 | }ratdm_emac_next_drx_ind_struct; |
| 183 | |
| 184 | typedef struct |
| 185 | { |
| 186 | LOCAL_PARA_HDR |
| 187 | |
| 188 | kal_uint8 rb_idx; |
| 189 | kal_uint8 eps_br_id; |
| 190 | |
| 191 | //kal_uint8 rollback_exist_nml; |
| 192 | //kal_uint8 rollback_exist_pri; |
| 193 | /* rollback data in the range [start, end) */ |
| 194 | kal_uint16 rollback_start_nml; // included |
| 195 | kal_uint16 rollback_end_nml; // excluded |
| 196 | kal_uint16 rollback_start_pri; // included |
| 197 | kal_uint16 rollback_end_pri; // excluded |
| 198 | |
| 199 | |
| 200 | }ratdm_epdcp_ul_data_redir_ind_struct; |
| 201 | |
| 202 | typedef testloop_cfg_struct ratdm_epdcp_testloop_ind_struct; |
| 203 | |
| 204 | #endif /* RATDM_EL2_STRUCT_H */ |