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) 2007 |
| 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 | * uas_gas_enums.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MONZA |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | * ---------------------------------------------------------------------------- |
| 54 | * $Log:$ |
| 55 | * |
| 56 | * 03 31 2021 ot_shubham-sk.kumar |
| 57 | * [MOLY00605927] modem EE INVALID |
| 58 | * |
| 59 | * <saved by Perforce> |
| 60 | * |
| 61 | * 10 26 2017 nalin.chovatia |
| 62 | * [MOLY00284483] [CODE SYNC] 2G -3G??? ????? |
| 63 | * .umola |
| 64 | * |
| 65 | * 11 14 2014 yenchih.yang |
| 66 | * [MOLY00084256] [MEME] sync MT6291 to UMOLY |
| 67 | * URR/MEME. |
| 68 | * |
| 69 | * 11 12 2014 tsung-wei.tu |
| 70 | * [MOLY00080211] [MT6291_DEV][MT6291_UESIM_DEV] Check in low power to MT6291_DEV, MT6291_UESIM_DEV |
| 71 | * Merging GISE low power to UMOLY trunk |
| 72 | * |
| 73 | * 07 03 2013 ming.lee |
| 74 | * [MOLY00026501] [GAS_UAS] Cipher status mismatch error handling |
| 75 | * . |
| 76 | * |
| 77 | * 06 25 2013 henry.lai |
| 78 | * [MOLY00027253] [MT6290] Bug fix for GAS multi-mode development |
| 79 | * . |
| 80 | * |
| 81 | * 03 13 2013 c-hua.yang |
| 82 | * [MOLY00009184] [URR] Multimode Merge to MOLY |
| 83 | * . |
| 84 | * |
| 85 | * 01 22 2013 c-hua.yang |
| 86 | * [MOLY00009184] [URR] Multimode Merge to MOLY |
| 87 | * . |
| 88 | * |
| 89 | * 01 11 2013 henry.lai |
| 90 | * [Henry][Multi-Mode Development] GAS Development and R8 CR Sync |
| 91 | * |
| 92 | * 09 09 2012 yong.su |
| 93 | * [MOLY00003321] [3G TDD][RRCE][InterRAT]modified code for MAX_TARGET_GSM_CELLS_NUM |
| 94 | * . |
| 95 | * |
| 96 | * 08 14 2012 peter.chien |
| 97 | * [MOLY00002118] [PS1][GAS] Internal inject message test for MEAS IT |
| 98 | * . |
| 99 | * |
| 100 | * 08 14 2012 peter.chien |
| 101 | * [MOLY00002118] [PS1][GAS] Internal inject message test for MEAS IT |
| 102 | * . |
| 103 | * |
| 104 | * 08 14 2012 peter.chien |
| 105 | * [MOLY00002118] [PS1][GAS] Internal inject message test for MEAS IT |
| 106 | * . |
| 107 | * |
| 108 | * 05 25 2012 haizhou.liu |
| 109 | * removed! |
| 110 | * . |
| 111 | * |
| 112 | * 05 17 2012 c-hua.yang |
| 113 | * removed! |
| 114 | * . |
| 115 | * |
| 116 | * 05 02 2012 adeline.chang |
| 117 | * removed! |
| 118 | * . |
| 119 | * |
| 120 | * 01 11 2012 shunwen.hsiao |
| 121 | * removed! |
| 122 | * Check in TK6280_DVT_DEV to MT6280_DVT_DEV |
| 123 | * |
| 124 | * 11 08 2011 junzhen.qin |
| 125 | * removed! |
| 126 | * . |
| 127 | * |
| 128 | * 10 28 2010 adeline.chang |
| 129 | * removed! |
| 130 | * . |
| 131 | * |
| 132 | * removed! |
| 133 | * removed! |
| 134 | * |
| 135 | * |
| 136 | * removed! |
| 137 | * removed! |
| 138 | * |
| 139 | * |
| 140 | * removed! |
| 141 | * removed! |
| 142 | * |
| 143 | * |
| 144 | * removed! |
| 145 | * removed! |
| 146 | * |
| 147 | * |
| 148 | * removed! |
| 149 | * removed! |
| 150 | * |
| 151 | * |
| 152 | * removed! |
| 153 | * removed! |
| 154 | * |
| 155 | * |
| 156 | * removed! |
| 157 | * removed! |
| 158 | * |
| 159 | * |
| 160 | * removed! |
| 161 | * removed! |
| 162 | * |
| 163 | * |
| 164 | * removed! |
| 165 | * removed! |
| 166 | * |
| 167 | * |
| 168 | * removed! |
| 169 | * removed! |
| 170 | * |
| 171 | * |
| 172 | * removed! |
| 173 | * removed! |
| 174 | * |
| 175 | * |
| 176 | * removed! |
| 177 | * removed! |
| 178 | * Supported 3rd criteria for InterRAT cell reselection to UTRAN. |
| 179 | * |
| 180 | * removed! |
| 181 | * removed! |
| 182 | * |
| 183 | * |
| 184 | * removed! |
| 185 | * removed! |
| 186 | * Add copyright header. |
| 187 | ******************************************************************************/ |
| 188 | |
| 189 | #ifndef _UAS_GAS_ENUMS_H |
| 190 | #define _UAS_GAS_ENUMS_H |
| 191 | |
| 192 | #include "irat_common_enums.h" |
| 193 | #include "uas_gas_inter_core_enum.h" |
| 194 | |
| 195 | /* MACROS ******************************************************************/ |
| 196 | /* MAX Values */ |
| 197 | #define MAX_LEN_HO_TO_GSM_MSG (251) /* Octets */ |
| 198 | #define MAX_LEN_TLV_CLASSMARK_2 (5) /* Octets */ |
| 199 | #define MAX_LEN_V_CLASSMARK_3 (32) /* Octets */ |
| 200 | #define MAX_LEN_HO_TO_UTRAN_MSG (251) /* Octets */ |
| 201 | #define MAX_LEN_UTRAN_HANDOVER_INFO_MSG (251) /* Octets*/ |
| 202 | #define MAX_LEN_UTRAN_HANDOVER_INFO_EUTRAN_MSG (350) /* Octets*/ |
| 203 | #define MAX_NUM_MEASURED_UMTS_FDD_CELL 64 |
| 204 | |
| 205 | |
| 206 | #define UAS_GAS_INVALID_UARFCN (0xffff) |
| 207 | |
| 208 | #if defined(__UMTS_TDD128_MODE__) |
| 209 | #define MAX_NUM_MEASURED_UMTS_TDD_CELL (64) |
| 210 | #endif //defined(__UMTS_TDD128_MODE__) |
| 211 | |
| 212 | /*Other constants*/ |
| 213 | #define INTER_RRC_GSM_CIPHERING_KEY_LENGTH 8 |
| 214 | #define INTER_RRC_UMTS_CIPHERING_KEY_LENGTH 16 |
| 215 | #define INTER_RRC_UMTS_INTEGRITY_KEY_LENGTH 16 |
| 216 | #define TEMP_FAILURE_PENALTY_TIME 30 /*Haizhou 20100819 Time penalty for convert temp failure to initial_value after resel to ucell fai*/ |
| 217 | |
| 218 | #define INTER_RRC_LEN_PLMN_IDENTITY 3 |
| 219 | |
| 220 | /* MAX/MIN values */ |
| 221 | #define MAX_UARFCN_RSSI_VAL (-100) |
| 222 | #define MIN_UARFCN_RSSI_VAL (-480) |
| 223 | #define MAX_UCELL_RSCP_VAL (-100) |
| 224 | #define MIN_UCELL_RSCP_VAL (-480) |
| 225 | #define MAX_UCELL_EC_NO_VAL 0 |
| 226 | #define MIN_UCELL_EC_NO_VAL (-100) |
| 227 | |
| 228 | #define MAX_UMTS_UARFCN 16383 |
| 229 | #define MIN_UMTS_UARFCN 0 |
| 230 | #if 0 |
| 231 | /* under construction !*/ |
| 232 | /* under construction !*/ |
| 233 | #endif |
| 234 | #define INVALID_NC_MODE (0xFF) |
| 235 | |
| 236 | |
| 237 | |
| 238 | #ifdef __PREFER_HIGH_PRIO_3G_IN_23G_MODE__ |
| 239 | #define INTER_DEFAULT_RSCP_THRESHOLD_PRIO (21) /* -95 dBm */ |
| 240 | #endif /* __PREFER_HIGH_PRIO_3G_IN_23G_MODE__ */ |
| 241 | |
| 242 | /* TYPES DEFINITIONS ********************************************************/ |
| 243 | |
| 244 | typedef enum |
| 245 | { |
| 246 | UMTS_SIGNALLING_KEYS_FOR_CS_DOMAIN, |
| 247 | UMTS_SIGNALLING_KEYS_FOR_PS_DOMAIN |
| 248 | }te_umts_signalling_connection_keys; |
| 249 | |
| 250 | typedef enum { |
| 251 | L1_AVAILIBILITY_STATUS_VACANT, /* During Cell selection*/ |
| 252 | L1_AVAILIBILITY_STATUS_SHARED, /* IDLE camped,URA_PCH,CELL_PCH */ |
| 253 | L1_AVAILIBILITY_STATUS_OCCUPIED /* PTM,DEDICATED,CELL_FACH,CELL_DCH*/ |
| 254 | }te_l1_availibility_status; |
| 255 | |
| 256 | typedef enum { |
| 257 | IR_CELL_CHANGE_COMPLETE_SUCCESS, |
| 258 | IR_CELL_CHANGE_COMPLETE_FAIL, |
| 259 | IR_CELL_CHANGE_COMPLETE_FAIL_BY_NAS_COMMAND |
| 260 | }te_ir_cell_change_complete_status; |
| 261 | |
| 262 | typedef enum { |
| 263 | IR_CELL_RESELECTION_TYPE_NORMAL, |
| 264 | IR_CELL_RESELECTION_TYPE_LIMITED_SERVICE |
| 265 | }te_ir_cell_reselection_type; |
| 266 | |
| 267 | #if 0 //__UMTS_TDD128_MODE__ |
| 268 | /* under construction !*/ |
| 269 | /* under construction !*/ |
| 270 | /* under construction !*/ |
| 271 | /* under construction !*/ |
| 272 | /* under construction !*/ |
| 273 | /* under construction !*/ |
| 274 | /* under construction !*/ |
| 275 | /* under construction !*/ |
| 276 | /* under construction !*/ |
| 277 | /* under construction !*/ |
| 278 | #endif //__UMTS_TDD128_MODE__ |
| 279 | |
| 280 | #endif /* UAS_GAS_ENUMS_H */ |