blob: dad258f38f2c8512b00eda4811f6f16dcde330f4 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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 * l4c_common_enum.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 * This file is intends for ...
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 *******************************************************************************/
54
55/********************************************************************************
56* Copyright Statement:
57* --------------------
58*
59* This product has been developed using a protocol stack
60* developed by Sasken Communication Technologies Limited.
61*
62********************************************************************************/
63
64
65
66#ifndef _L4C_COMMON_ENUM_H
67#define _L4C_COMMON_ENUM_H
68
69#include "kal_public_defs.h"
70#include "ps_public_enum.h"
71#include "l4c_common_enum_public.h"
72
73
74#include "global_def.h"
75
76#include "ps_public_def.h"
77#include "atp_public_defs.h"
78
79#define L4C_MAX_NAME_LEN 10
80
81#define MAX_PIN_LENGTH 8 /* to be removed */
82
83/*#define MAX_CC_SUB_ADDR_BCD_LEN 21 -move to ps_public_enum.h*/
84
85
86#define MAX_SS_PASSWD_LEN 9
87#define MAX_SS_PASSWD_BCD_LEN 5
88
89#define MAX_PLMN_BCD_LEN 3
90
91
92#define MAX_SIM_PASSWD_BCD_LEN 5
93
94#define INVALID_BS_CODE 0
95
96#define L4C_USE_DEFAULT_VALUE 255
97#define L4C_MAX_RETRY_COUNT 2
98
99#define MAX_CREE_STR_LEN 75
100
101#define l4C_MAX_TRANS_NUM 12
102
103
104#if ((!defined(__MTK_TARGET__)) && defined(__TCM_UT__)) // only used for UT Regression
105#define TCM_MAX_ACL_FILE_SIZE_SUPPORT 1000
106#else // #if ((!defined(__MTK_TARGET__)) && defined(__TCM_UT__)) // only used for UT Regression
107#define TCM_MAX_ACL_FILE_SIZE_SUPPORT 255
108#endif // ~ #if ((!defined(__MTK_TARGET__)) && defined(__TCM_UT__)) // only used for UT Regression
109
110#define TCM_BINDING_ID_NOT_BIND 0xFFFF
111
112#define L4C_LONGPRESS_TIMER 20 /* 2 sec */
113#define L4C_REPEATED_TIMER 10 /* 2 sec */
114
115#define L4C_DOWNLOAD_ERROR_TIMER 100 /* 10 sec */
116#define L4C_DOWNLOAD_SLEEP_TIMER 10 /* 1 sec */
117/*
118 MAUI_02598495, custom gprs detach timer
119 #define L4C_GPRS_CONNECT_TIEMR 20
120*/
121
122#define L4C_MAX_EM_PDP_NUM 3 //mtk00714 w0634
123
124#define L4C_SET_PS_CONF_TEST_PROFILE_OK 0
125#define L4C_SET_PS_CONF_TEST_PROFILE_CONFLICT -1
126#define L4C_SET_PS_CONF_TEST_PROFILE_WRITE_FAIL -2
127
128#define INFO_EVENT 0
129#define INFO_REQ 1
130
131// hannu.huusko move the definition L4C_INVALID_RS_SNR to ps_public_def.h for ERRC LMOB in L1 reference
132#define L4C_INVALID_SERV_BAND 0xffff
133#define L4C_QOS_BITRATE_10_GBPS ((kal_uint64)10000000) // 10Gbps == 10M Kbps
134
135#define L4C_ECELL_INVALID_VALUE 0x0fffffff
136#define L4C_ECELL_INVALID_BSIC 0xffff
137#define L4C_ECELL_MAX_BUFFER_SIZE 2048
138#define L4C_ECELL_MAX_DATA_SIZE_PER_CELL 392 // refer to the max increasing size of rmmi_ecell_result_code_fmttr()
139#define L4C_ECELL_MAX_DATA_SIZE_OF_C2K_CELL 192 // refer to the max increasing size of l4c_nw_ecell_append_c2k_nbr_cell_info()
140
141
142#define L4C_NW_INVALID_CELL_ID 0x0FFFFFFF
143#define L4C_NW_INVALID_LAC 0xFFFF
144#define L4C_NW_INVALID_RAC 0xFF
145
146#define L4C_NSSAI_BUFFER_SIZE 2048
147#define L4C_PREFERRED_3GPP_NSSAI 0x01
148#define L4C_PREFERRED_NON3GPP_NSSAI 0x02
149
150#define L4C_NW_INVALID_SRXLEV L4C_INVALID_SIGNAL_INT16
151#define L4C_NW_INVALID_SQUAL L4C_INVALID_SIGNAL_INT16
152
153
154
155typedef enum
156{
157 L4C_KEY_FROM_DRVKPD = 0,
158 L4C_KEY_FROM_CKPD
159}l4c_keypad_press_type_enum;
160
161typedef enum {
162 ACL_NOT_SUPPORT,
163 ACL_DISABLE,
164 ACL_ENABLE
165} l4c_acl_mode_enum;
166
167enum
168{
169 GSM_ONLY,
170 GPRS_ONLY,
171 GSM_AND_GPRS
172};
173
174typedef enum
175{
176 TCM_INVALID_L2P,
177 TCM_CCMNI_L2P,
178 TCM_RNDIS_L2P,
179 TCM_MBIM_L2P,
180 //TCM_IPCORE_L2P,
181 //TCM_UPS_L2P,
182 //TCM_WM_L2P,
183 TCM_PPP_L2P,
184 TCM_LHIF_L2P,
185}l4c_tcm_l2p_enum;
186
187typedef enum{
188 EI3GPPIRAT_SROUCE_RAT_START = 1,
189 EI3GPPIRAT_TARGET_RAT_START = 2,
190 EI3GPPIRAT_SOURCE_RAT_FINISH = 3,
191 EI3GPPIRAT_TARGET_RAT_FINISH = 4,
192} ei3gppirat_action_enum;
193
194
195typedef enum{
196 EPDNCTRANS_SRC_RAT_PDN_TRANSFER_START = 1,
197 EPDNCTRANS_TARGET_RAT_PDN_RECEIVE_START = 2,
198 EPDNCTRANS_SRC_RAT_PDN_TRANSFER_END = 3,
199 EPDNCTRANS_TARGET_RAT_PDN_RECEIVE_END = 4,
200} epdnctrans_action_enum;
201
202
203typedef enum{
204 L4C_C2K_SET_ONE,
205 L4C_C2K_RESET_ONE,
206 L4C_C2K_FORCE_SET_ONE,
207} l4c_c2k_func_action_enum;
208
209
210typedef enum{
211 L4C_C2K_LWCG_PDN_TRANSFER_STATE_NONE,
212 L4C_C2K_LWCG_WAITING_IA_QUERY_CNF,
213 L4C_C2K_LWCG_WAITING_TCM_SET_IA_PDN_CNF,
214 L4C_C2K_LWCG_SETTING_PDN_RECEIVED_FROM_C2K,
215} l4c_c2k_lwcg_pdn_context_transfer_state_enum;
216
217typedef enum{
218 L4C_C2K_IRAT_NONE,
219 L4C_C2K_IRAT_ONGOING_C2K_TO_LTE,
220 L4C_C2K_IRAT_ONGOING_LTE_TO_C2K,
221} l4c_c2k_irat_state_enum;
222
223typedef enum{
224 L4C_C2K_LC_md3_transfer_cid0_with_ia,
225 L4C_C2K_LC_md3_transfer_cid0_without_ia,
226 L4C_C2K_LC_md3_transfer_other_cid_with_ia,
227 L4C_C2K_LC_md3_not_transfer_cid0_but_with_other_cid_ia,
228 L4C_C2K_LC_md3_not_transfer_cid0_and_any_ia,
229} l4c_c2k_lc_irat_debug_enum;
230
231typedef enum{
232 L4C_PS_DEBUG_CMD_MODE_NOT_SUPPORT,
233
234 L4C_PS_DEBUG_EGPCO_CID_ERROR,
235 L4C_PS_DEBUG_EGPCO_IEID_IDENTIFY_ERROR,
236 L4C_PS_DEBUG_EGPCO_0017_ERROR,
237 L4C_PS_DEBUG_EGPCO_FF00_ERROR,
238 L4C_PS_DEBUG_EGPCO_FF01_ERROR,
239 L4C_PS_DEBUG_EGPCO_FF02_ERROR,
240 L4C_PS_DEBUG_EGPCO_FF03_ERROR,
241
242
243 L4C_PS_DEBUG_CGEQ_MaxBitRateUL_DecodeError,
244 L4C_PS_DEBUG_CGEQ_MaxBitRateDL_DecodeError,
245 L4C_PS_DEBUG_CGEQ_GuaranteeBitrateUL_DecodeError,
246 L4C_PS_DEBUG_CGEQ_GuaranteeBitrateDL_DecodeError,
247 L4C_PS_DEBUG_CGEQ_MaxSduSize_DecodeError,
248 L4C_PS_DEBUG_CGEQ_SduErrorRatio_Error,
249 L4C_PS_DEBUG_CGEQ_ResidualBitErrRate_Error,
250 L4C_PS_DEBUG_CGEQ_TransferDelay_Error,
251 L4C_PS_DEBUG_NotSupport_PfDirection,
252 L4C_PS_DEBUG_GetEpsQosError,
253 L4C_PS_DEBUG_CGDCONT_PdpType_Error,
254 L4C_PS_DEBUG_CGDCONT_PdpType_parse_result_Error,
255 L4C_PS_DEBUG_CGDCONT_APN_len_100_Error,
256 L4C_PS_DEBUG_CGTFT_PacketFilterIdentifier_parse_result_Error,
257 L4C_PS_DEBUG_CGTFT_ProtocolNumberNextHeader_parse_result_Error,
258 L4C_PS_DEBUG_CGTFT_LocalPortRange_Error,
259 L4C_PS_DEBUG_CGTFT_RemotePortRange_Error,
260 L4C_PS_DEBUG_CGTFT_IpsecSpi_Error,
261 L4C_PS_DEBUG_CGTFT_TosTrafficClassAndMask_Error,
262 L4C_PS_DEBUG_CGTFT_FlowLabel_parse_result_Error,
263 L4C_PS_DEBUG_CGTFT_PfDirection_Error,
264 L4C_PS_DEBUG_CGTFT_PfDirection_parse_result_Error,
265 L4C_PS_DEBUG_CGTFT_LocalAddrAndSubnetMask_Error,
266 L4C_PS_DEBUG_CGTFT_QRI_Error,
267 L4C_PS_DEBUG_CGQREQ_PrecedenceClass_Error,
268 L4C_PS_DEBUG_CGQREQ_DelayClass_Error,
269 L4C_PS_DEBUG_CGQREQ_ReliabilityClass_Error,
270 L4C_PS_DEBUG_CGQREQ_PeakThroughput_Error,
271 L4C_PS_DEBUG_CGQREQ_MeanThroughput_Error,
272 L4C_PS_DEBUG_CGQMIN_PrecedenceClass_Error,
273 L4C_PS_DEBUG_CGQMIN_DelayClass_Error,
274 L4C_PS_DEBUG_CGQMIN_ReliabilityClass_Error,
275 L4C_PS_DEBUG_CGQMIN_PeakThroughput_Error,
276 L4C_PS_DEBUG_CGQMIN_MeanThroughput_Error,
277 L4C_PS_DEBUG_CGEQ_UndefineCommandConflict,
278 L4C_PS_DEBUG_CGEQ_Traffic_class_Bigger_Than_3,
279 L4C_PS_DEBUG_CGEQ_TrafficClass_ParseResult_Error,
280 L4C_PS_DEBUG_CGEQ_MaxBitRateUL_EncodeError,
281 L4C_PS_DEBUG_CGEQ_RealTimeQoS_MustNeed_MaxBitRateUL,
282 L4C_PS_DEBUG_CGEQ_MaxBitRateUL_ParseResult_Error,
283 L4C_PS_DEBUG_CGEQ_MaxBitRateDL_EncodeError,
284 L4C_PS_DEBUG_CGEQ_RealTimeQoS_MustNeed_MaxBitRateDL,
285 L4C_PS_DEBUG_CGEQ_MaxBitRateDL_ParseResult_Error,
286 L4C_PS_DEBUG_CGEQ_GuaranteeBitRateUL_EncodeError,
287 L4C_PS_DEBUG_CGEQ_RealTimeQoS_MustNeed_GuaranteeBitRateUL,
288 L4C_PS_DEBUG_CGEQ_GuaranteedBitrateUL_ParseResult_Error,
289 L4C_PS_DEBUG_CGEQ_GuaranteeBitRateDL_EncodeError,
290 L4C_PS_DEBUG_CGEQ_RealTimeQoS_MustNeed_GuaranteeBitRateDL,
291 L4C_PS_DEBUG_CGEQ_GuaranteedBitrateDL_ParseResult_Error,
292 L4C_PS_DEBUG_CGEQ_DeliveryOrder_BiggerThan_1,
293 L4C_PS_DEBUG_CGEQ_DeliveryOrder_ParseResult_Error,
294 L4C_PS_DEBUG_CGEQ_MaxSduSize_Encode_Error,
295 L4C_PS_DEBUG_CGEQ_MaxSduSize_Value_Unexpected,
296 L4C_PS_DEBUG_CGEQ_MaxSduSize_ParseResult_Error,
297 L4C_PS_DEBUG_CGEQ_SduErrorRatio_Value_Unexpected,
298 L4C_PS_DEBUG_CGEQ_SduErrorRatio_ParseResult_Error,
299 L4C_PS_DEBUG_CGEQ_ResidualBitErrorRatio_Value_Unexpected,
300 L4C_PS_DEBUG_CGEQ_ResidualBitErrorRatio_ParseResult_Error,
301 L4C_PS_DEBUG_CGEQ_DeliveryOfErroneousSdu_Value_Unexpected,
302 L4C_PS_DEBUG_CGEQ_DeliveryOfErroneousSdu_ParseResult_Error,
303 L4C_PS_DEBUG_CGEQ_TransferDelay_EncodeError,
304 L4C_PS_DEBUG_CGEQ_TransferDelay_ParseResult_Error,
305 L4C_PS_DEBUG_CGEQ_TrafficHandlingPriority_Error,
306 L4C_PS_DEBUG_CGEQ_TrafficHandlingPriority_ParseResult_Error,
307 L4C_PS_DEBUG_CGEQ_SourceStatisticsDescriptor_Error,
308 L4C_PS_DEBUG_CGEQ_SourceStatisticsDescriptor_ParseResult_Error,
309 L4C_PS_DEBUG_CGEQ_SignallingIndication_Error,
310 L4C_PS_DEBUG_CGEQ_SignallingIndication_ParseResult_Error,
311 L4C_PS_DEBUG_CGEQ_CommandConflict,
312 L4C_PS_DEBUG_CGACT_CID_Error,
313 L4C_PS_DEBUG_CGCMOD_CID_Error,
314 L4C_PS_DEBUG_CGPADDR_GetAddr_Error,
315 L4C_PS_DEBUG_CGAUTO_CgautoN_Error,
316 L4C_PS_DEBUG_CGANS_L2P_OnlyCanBe_PPP_Error,
317 L4C_PS_DEBUG_CGANS_CID_Error,
318 L4C_PS_DEBUG_CGEREP_mode_Error,
319 L4C_PS_DEBUG_CGEREP_bfr_Error,
320 L4C_PS_DEBUG_CGEQOS_Qci_parse_result_Error,
321 L4C_PS_DEBUG_CGEQOS_QCI_0_Error,
322 L4C_PS_DEBUG_CGEQOS_QCI_65_66_69_70_Error,
323 L4C_PS_DEBUG_CGEQOS_DlGbr_encode_Error,
324 L4C_PS_DEBUG_CGEQOS_DlGbr_parse_result_Error,
325 L4C_PS_DEBUG_CGEQOS_UlGbr_encode_Error,
326 L4C_PS_DEBUG_CGEQOS_UlGbr_parse_result_Error,
327 L4C_PS_DEBUG_CGEQOS_DlMbr_encode_Error,
328 L4C_PS_DEBUG_CGEQOS_DlMbr_parse_result_Error,
329 L4C_PS_DEBUG_CGEQOS_UlMbr_encode_Error,
330 L4C_PS_DEBUG_CGEQOS_UlMbr_parse_result_Error,
331 L4C_PS_DEBUG_CGAUTH_AuthPort_Error,
332 L4C_PS_DEBUG_ECNCFG_MobileData_parse_result_Error,
333 L4C_PS_DEBUG_ECNCFG_DataRoaming_parse_result_Error,
334 L4C_PS_DEBUG_ECNCFG_volte_parse_result_Error,
335 L4C_PS_DEBUG_ECNCFG_ImsTtestMode_parse_result_Error,
336 L4C_PS_DEBUG_EGDCONT_RoamingIpType_Error,
337 L4C_PS_DEBUG_VZWAPNE_apnb_parse_result_Error,
338 L4C_PS_DEBUG_VZWAPNE_apned_parse_result_Error,
339 L4C_PS_DEBUG_EGACT_CID_Error,
340 L4C_PS_DEBUG_ACTTEST_CID_Error,
341 L4C_PS_DEBUG_EGDELPF_pfid_parse_result_Error,
342 L4C_PS_DEBUG_EGDELPF_pfid_Error,
343 L4C_PS_DEBUG_EGLNKPF_pfid_parse_result_Error,
344 L4C_PS_DEBUG_EGLNKPF_pfid_Error,
345 L4C_PS_DEBUG_EDALLOW_mode_Error,
346
347 L4C_PS_DEBUG_EAPNSYNC_APN_len_100_Error,
348 L4C_PS_DEBUG_EAPNSYNC_inactivity_time_Error,
349
350 L4C_PS_DEBUG_CMD_MODE_NOT_SUPPORT_IN_U64_HANDLER,
351 L4C_PS_DEBUG_UNEXPECTED_ILM_SENT_TO_U64_HANDLER,
352
353 L4C_PS_DEBUG_C5GQOS_VQI_parse_result_Error,
354 L4C_PS_DEBUG_C5GQOS_VQI_0_Error,
355 L4C_PS_DEBUG_C5GQOS_VQI_65_66_69_70_Error,
356 L4C_PS_DEBUG_C5GQOS_DL_GFBR_parse_result_Error,
357 L4C_PS_DEBUG_C5GQOS_UL_GFBR_parse_result_Error,
358 L4C_PS_DEBUG_C5GQOS_DL_MFBR_parse_result_Error,
359 L4C_PS_DEBUG_C5GQOS_UL_MFBR_parse_result_Error,
360
361 L4C_PS_DEBUG_GetVgQosError,
362 L4C_PS_DEBUG_GetPduSessionAmbrError,
363 L4C_PS_DEBUG_CLADN_Parse_Error,
364 L4C_PS_DEBUG_CLADNU_Length_Error,
365}l4c_ps_debug_enum;
366
367typedef enum
368{
369 TCM_REJECT_PDP_ACT,
370 TCM_ACCEPT_PDP_ACT
371}l4c_tcm_manual_answer_enum;
372
373typedef enum
374{
375 L4C_TCM_CID_STATE_NONE = 0,
376 L4C_TCM_CID_STATE_ACTING,
377 L4C_TCM_CID_STATE_MODING,
378 L4C_TCM_CID_STATE_DEACTING,
379 L4C_TCM_CID_STATE_DEACT_ABORTING,
380}l4c_tcm_internal_cid_state;
381
382typedef enum {
383 L4B_FIRST_CHANNEL,
384 L4B_ATP_FIRST_CHANNEL = L4B_FIRST_CHANNEL,
385 L4B_ATP_LAST_CHANNEL = L4B_FIRST_CHANNEL + ATP_CHANNEL_NUMBER-1,
386
387 /* channels for L4BXXX, just estimation */
388 L4B_L4BXXX_FIRST_CHANNEL,
389 L4B_L4BXXX_LAST_CHANNEL = L4B_L4BXXX_FIRST_CHANNEL + 20,
390
391 L4B_MAX_CHANNEL_NUMBER,
392
393 L4B_INVALID_CHANNEL = 0xff
394} l4b_channel_enum;
395
396typedef enum
397{
398 LMMI_SRC,
399 LMMI_SRC2, /* currently only for MMI SMS backgraound action */
400 SAT_SRC,
401 WAP_SRC,
402 L4C_SRC,
403 RMMI_SRC, /*UART or CMUX virtual port 1*/
404 RMMI_SRC_END = RMMI_SRC + L4B_MAX_CHANNEL_NUMBER -1,
405 RMMI_SAT, /*SAT inject AT*/
406#if defined(__MESSAGE_BASED_AT_SUPPORT__)
407 RMMI_MSG_AT_SRC,
408 RMMI_MSG_AT_SRC_END = RMMI_MSG_AT_SRC + RMMI_MAX_MSG_BASED_AT_CHANNEL-1,
409#endif
410#if 0 //move to ATP_IO
411/* under construction !*/
412/* under construction !*/
413#endif
414 RMMI_ALL, /*for rmmi indication*/
415#ifdef __TC01_IMS_SUPPORT__
416 RMMI_SMS_IMS_SRC,
417#endif
418 L4BPWR_SRC, // move to here temporarily (by usage and meaning, it shall be put before RMMI_SRC or L4C_SRC)
419 VDM_SRC, // not used after MOLY00442497
420 MAX_SOURCE_NUM,
421 L4C_NO_USER, /*no user register action*/
422 L4C_NVRAM_ACCESS_SRC, /*NVRAM access source for MMI read/write NVRAM */
423 SSDS_SRC,
424 RMMI_URC_SRC_2,
425 INVALID_SRC/*Invalid source for MT*/
426} l4c_source_id_enum;
427
428#define RMMI_UNSOLICITED RMMI_ALL
429#ifdef __CMUX_SUPPORT__
430#define RMMI_UNSOLICITED_2 (RMMI_URC_SRC_2)
431#ifdef __TC01_IMS_SUPPORT__
432#define RMMI_UNSOLICITED_3 RMMI_SMS_IMS_SRC
433#endif /* __TC01_IMS_SUPPORT__ */
434#endif /* __CMUX_SUPPORT__ */
435
436
437typedef enum
438{
439 L4C_COMMAND_STATE = 0,
440 L4C_ONLINE_COMMAND_STATE,
441 L4C_ONLINE_DATA_STATE,
442 L4C_ONLINE_DATA_GPRS_STATE,
443 L4C_ONLINE_STATE//mtk01616_080322:either CSD or GPRS data state
444} l4c_state_enum;
445
446/*
447typedef enum
448{
449 L4C_IDLE_STATE = 0,
450 L4C_CMD_FORWARDED_FOR_ACTION_STATE,
451 L4C_INTERMEDIATE_RESULT_CODE_SENT_STATE
452} l4c_sub_state_enum;
453*/
454
455typedef enum
456{
457 L4C_CC,
458 L4C_SS,
459 L4C_SMS,
460 L4C_RAC,
461 L4C_TCM,
462 L4C_PHB,
463 L4C_EQ,
464#if 0 //__CTM_SUPPORT__
465/* under construction !*/
466#endif
467 L4C_SMU,
468 L4C_SAT,
469 L4C_MAX_MODULE_ID_NUM
470}l4c_module_id;
471
472typedef enum
473{
474 L4C_NO_ACTION,
475 L4C_FIRST_ACTION,
476 NVM_R_EXE = L4C_FIRST_ACTION,
477 NVM_W_EXE,
478 //UART_READ_EXE,
479 UART_WRITE_EXE,
480 UART_PORT_READ,
481 SIM_R_EXE,
482 SIM_W_EXE,
483 CCSP_EXE,
484 SIM_FILE,
485 CSD_PROF_SET,
486 ABM_ACT_APP,
487 ABM_ACT,
488 ABM_ACT_ECC,
489 PPP_ACT,
490 ABM_DEACT,
491 ABM_DISC,
492 FIRST_CC_ACTION,
493 CHLD_EXE = FIRST_CC_ACTION,
494#ifdef __MOD_SMU__
495 CACM_EXE,
496 CAMM_EXE,
497#endif /* __MOD_SMU */
498 CHUP_EXE,
499 CTFR_EXE,
500 ATA_EXE,
501 ATD_APP,
502 ATD_EXE,
503 ATD_ECC,
504 ATD_ECC_CHANGE_RAT, //MAUI_02554068
505 ATD_ECC_CHANGE_RAT_ABORT, //MAUI_02554068
506 CMOD_EXE,
507 ATH_EXE,
508 PARSE_SS_EXE,
509 CPHS_ALS_UPDATE,
510 CHLD_CSD_DEACT, /* this action is to handle CSD active and incoming call coming */
511 VTS_EXE,
512 EVTS_EXE,
513 EMSD_EXE,
514 EMSDSET_EXE,
515 EMSDPUSH_EXE,
516 EPSAP_EXE,
517 EPSAPPULL_EXE,
518 CLCC_READ,
519 LAST_CC_ACTION = CLCC_READ,
520 FIRST_SS_ACTION,
521 CAEMLPP_EXE = FIRST_SS_ACTION,
522 CCFC_REPEAT,
523 CCFC_EXE,
524 CCWA_REPEAT,
525 CCWA_EXE,
526 ITRG_EXE,
527 CDIP_EXE,
528 CLCK_SS_REPEAT,
529 CLCK_SS_EXE,
530 CLIP_EXE,
531 CLIR_EXE,
532 CNAP_EXE,
533 COLP_EXE,
534 COLR_EXE,
535 CPWD_SS_EXE,
536 CB_FAC_IND,
537 CCBS_EXE,
538 CUSD_EXE,
539 USSR_FAC_IND,
540 USSN_FAC_IND,
541 LAST_SS_ACTION = USSN_FAC_IND,
542#ifdef CSD_SUPPORT
543 //FIRST_DATA_ACTION,
544 //LAST_DATA_ACTION,
545#endif
546 FIRST_EQ_ACTION,
547 VOL_SET = FIRST_EQ_ACTION,
548 AUDI_NAME_PLAY,
549 AUDI_NAME_STOP,/* mtk00468 add for play audio by name*/
550 AUDI_STRING_PLAY,
551 AUDI_STRING_STOP, /* mtk00468 add for play audio by string */
552 AUDI_SET, /* for audio profile set 030627 mtk00468*/
553 AUDI_PARAM_SET,
554 GAIN_SET,
555 CMUT_SET,
556 CSIL_SET,
557 CALM_SET, /* alert, removed later */
558 CKPD_EXE,
559 CIND_SET,
560 CALA_SET,
561 CALD_EXE,
562 CSDF_SET,
563 CSTF_SET,
564 CLAN_SET,
565 GPIO_SET,
566 CSGT_SET,
567 CGCI_SET,
568 CVIB_SET,
569 CLVL_READ,
570 CRSL_READ,
571 ATIPR_SET,
572 HW_PROF_SET,
573 MS_SN_READ,
574 MS_SV_READ, //mtk02508_090310 add for SV read
575 MS_SN_SET,
576 MS_SV_SET, //mtk02508_090310 add for SV set
577 LOCK_NVRAM,
578 TEST_REPORT_READ, //mtk00714 add for autotest report read
579 RF_TEST_SET,
580#ifdef __TC01__
581 RX_RSSI_GET, //to get the RSSI
582#endif
583//#ifdef VM_SUPPORT
584 VM_GET_EXE,
585 VM_REC_EXE,
586 VM_PLAY_EXE,
587 VM_DEL_EXE,
588 VM_STOP_EXE,
589 VM_ABT_EXE,
590 VM_PAU_EXE,
591 VM_RES_EXE,
592 VM_APP_EXE,
593 VM_REN_EXE,
594//#endif
595
596 POWERON_EXE,
597 POWEROFF_EXE,
598#ifdef __MOBILE_BROADBAND_PROVISION_CONTEXT__
599 MOBILE_BROADBAND_PROVISION_CONTEXT_GET,
600 MOBILE_BROADBAND_PROVISION_CONTEXT_GET_ALL,
601 MOBILE_BROADBAND_PROVISION_CONTEXT_SET,
602#endif /* __MOBILE_BROADBAND_PROVISION_CONTEXT__ */
603
604 PS_CONF_TEST_PROFILE_SET,
605
606 ENFC_EXE,
607 ESDS_SET,
608 LAST_EQ_ACTION = ESDS_SET,
609
610#ifdef __IRDA_SUPPORT__
611 FIRST_IRDA_ACTION,
612 PPP_DEACT_EXE = FIRST_IRDA_ACTION, /* add to keep PPP deactive */
613 LAST_IRDA_ACTION = PPP_DEACT_EXE,
614#endif /*__IRDA_SUPPORT__*/
615
616
617#ifdef __MOD_TCM__
618 FIRST_GPRS_ACTION,
619 CGACT_ACT_EXE = FIRST_GPRS_ACTION,
620 CGACT_DEACT_EXE,
621 CGACT_TEST,
622 CGACT_ATTACH_EXE,
623 CGANS_EXE,
624 CGCMOD_EXE,
625 CGDCONT_EXE,
626 //GPRS_COUNTER_RESET,
627 CGDSCONT_EXE,
628 CGQMIN_EXE,
629 CGQREQ_EXE,
630 CGEQMIN_EXE,
631 CGEQREQ_EXE,
632 //mtk04121
633 CGEQOS_EXE,
634 C5GQOS_EXE,
635 CGTFT_EXE,
636 EGPAU_EXE, // mtk00468 add for ppp auth info set 031015
637 CGDATA_EXE,
638 CGAUTH_EXE,
639 EGDCONT_EXE,
640 EAPNSYNC_EXE,
641 EGPCO_EXE,
642
643#ifdef __MEDIATEK_SMART_QOS__
644 SMART_QOS_ENTRY_SET,
645 SMART_QOS_MODE_SET,
646#endif /* __MEDIATEK_SMART_QOS__ */
647
648 /* VZW_SUPPORT */
649 VZWAPNE_SET,
650 VZWAPNETMR_SET,
651 VZWAPNRDP_SET,
652 REVIVE_PDN_EXE,
653
654 TCM_START_EXE,
655
656 CGUNDEF_EXE,
657 LAST_GPRS_ACTION = CGUNDEF_EXE,
658#endif
659#ifdef __MOD_RAC__
660 FIRST_NW_ACTION,
661 CGATT_ATTACH_EXE = FIRST_NW_ACTION,
662 CGATT_DETACH_EXE,
663 ATTACH_EXE,
664 DETACH_EXE,
665 CGCLASS_SET,
666
667 /* Johnny: we use SET_GPRS_CON_TYPE trickly:
668 1. we set it but send RSP to MMI without CNF
669 2. we clear it when we receive CNF
670 3. we will check command conflict in l4c_nw_set_gprs_connect_type_req() */
671 SET_GPRS_CON_TYPE, /* '04/01/07 mtk00468 add for set gprs connect type*/
672 SET_HSPA_MODE,//mtk02285, hspa_mmi
673 CBND_SET,
674 COPS_EXE,
675 COPS_ATTACH_EXE,
676 PSDM_ATTACH_EXE,
677 NWSEL_EXE,
678 PWROFF_DETACH,
679 RFOFF_DETACH,
680 RFOFF_SIM_POWEROFF,
681 RFON_SET_RAT_MODE,
682 RFON_ATTACH,
683 COPS_TEST,
684 COPS_TEST_STOP, //mtk01616_070910
685 CSG_TEST,
686 CSG_TEST_STOP,
687 SET_RAT_MODE_DETACH,
688 SET_RAT_MODE,
689 SET_RAT_MODE_ATTACH,
690 PWRON_SET_RAT_MODE,
691 PWRON_ATTACH,
692 SYS_SEL,
693 SYS_CONFIG,
694 SET_CT_MODE,
695 CSRA_RF_OFF,
696 CSRA_SIM_OFF,
697 CSRA_EXE,
698 CSRA_FINISH_PHASE1,
699 CSRA_FINISH_PHASE2,
700 EACTS_EXE,
701 EUEDRX_EXE,
702 CNTI_EXE,
703 LAST_NW_ACTION = CNTI_EXE,
704#endif
705 FIRST_PHB_ACTION,
706 CPBF_EXE= FIRST_PHB_ACTION,
707 PHB_FDN_CHECK,//action for fdn check for sms sca and da
708 PHB_NUMBER_CHECK, // for wise, check if phone number is ECC or FDN
709 PHB_FDN_GET_NAME,
710 CPBR_EXE,
711 ECPBR_EXE,
712 CPBR_RANGE_EXE,
713 SCPBR_EXE,
714 EPBUM_EXE,
715 CNUM_EXE,
716 CPBW_EXE,
717 ECPBW_EXE,
718 CPBW_USIM_CHECK,
719 CPBD_EXE,
720 CPBR_LN,
721 CPBW_LN,
722 SYNC_LN,
723 EAPPROVE_EXE,
724 CPBD_LN,
725 LAST_PHB_ACTION = CPBD_LN,
726 FIRST_SIM_ACTION,
727 CLCK_EXE = FIRST_SIM_ACTION,
728 CMAR_EXE,
729 CPIN_EXE,
730 CPIN2_EXE,
731 EPIN_EXE,
732 CPOL_EXE,
733 CPUC_EXE,
734 CPWD_EXE,
735 XDN_EXE,
736 CSIM_EXE,
737 CRSM_EXE,
738 CGLA_EXE, // MAUI_03082391//mtk02514_nfc
739 ECGLA_EXE,
740 CCHO_EXE,
741 CCHC_EXE,
742 FILE_CHANGE_EXE,
743 SPN_EXE,
744 LAST_SIM_ACTION = SPN_EXE,
745 FIRST_SMS_ACTION,
746 CGSMS_SET = FIRST_SMS_ACTION,
747 CMGC_EXE,
748 CMGD_EXE,
749 CMGD_TEST_EXE,
750 EQSI_EXE,
751 CMGL_EXE,
752 CMGR_EXE,
753 CMGS_EXE,
754 CMGS_PDU_EXE,
755 CMGW_EXE,
756 CMGW_COPY,
757 EMGL_EXE,
758 CMSS_EXE,
759 CMST_SET, //mtk01616_070703:sms set status , mmi
760 CPMS_SET,
761 /*CRES_EXE,
762 CSAS_EXE,*/
763 CSCA_SET,
764 CNMI_SET,
765 MAILBOX_SET, /* 030617 mtk00468 add for set mail box address*/
766 MAILBOX_GET,
767 MBI_SET,//mtk01616_071016: R4/R5 SMS
768 CSMP_SET,
769 CSAS_SET,
770 CRES_SET,
771 LAST_SMS_ACTION = CRES_SET,
772#ifdef __CB__
773 CBMI_SET,
774#endif
775#ifdef __SAT__
776 SAT_ATD_EXE,
777 SAT_USD_EXE,
778 MENU_SEL_EXE,
779 SAT_CMGS_EXE,
780 SAT_DTMF_EXE,
781#ifdef __SATCE__
782 //MAUI_02395134 SAT_CSD_EXE,
783 SAT_OPEN_CHANNEL_EXE,
784 SAT_SEND_DATA_EXE,
785 SAT_RECV_DATA_EXE,
786#endif /* __SATCE__ */
787#endif
788
789
790 ES3G_EXE,
791 DSS_EXE, // Dynamic SIM SWITCH
792 ATO_EXE,
793#ifdef __WAP_SUPPORT /* 030528 mtk00468 add for WAP profile set and query*/
794 CWAP_ACCESS,
795 //L4C_LAST_ACTION = CWAP_ACCESS
796//#else
797 //L4C_LAST_ACTION = ATO_EXE
798#endif
799
800#ifdef __TCM_UT__
801 TCM_UNDEF_NO_ACTION,
802 TCM_UNDEF_CGDCONT_EXE,
803 TCM_UNDEF_CGDSCONT_EXE,
804 TCM_UNDEF_CGQMIN_EXE,
805 TCM_UNDEF_CGQREQ_EXE,
806 TCM_UNDEF_CGEQMIN_EXE,
807 TCM_UNDEF_CGEQREQ_EXE,
808 TCM_UNDEF_CGTFT_EXE,
809#endif
810
811
812#if 0 //__CTM_SUPPORT__
813/* under construction !*/
814/* under construction !*/
815/* under construction !*/
816/* under construction !*/
817/* under construction !*/
818/* under construction !*/
819/* under construction !*/
820#endif
821
822
823 ETSTLP_EXE,
824
825#ifdef __SAT__
826 SAT_STKSMSOIP_PDU_EXE,
827 SAT_STKSMS_MODE1_EXE,
828#endif
829
830#ifdef __GEMINI__
831 RSIM_ONGOING,
832 AKA_ONGOING,
833#endif
834
835 META_EXE,
836 OP12_LOCK_DETACH,
837 OP12_UNLOCK_ATTACH,
838 OP12_LOCK_ATTACH_ANY,
839 OP01_UNLOCK_ATTACH,
840 OP01_LOCK_DETACH,
841 IMEI_MEID_LOCK_DETACH,
842 IMEI_MEID_UNLOCK_ATTACH,
843 IMEI_MEID_LOCK_ATTACH_ANY,
844 ALTER_SERVICE_MODE_EXE,
845#ifdef __MBIM_MS_NETWORK_BLACKLIST__
846 MS_BLACK_LIST_LOCK_DETACH,
847 MS_BLACK_LIST_UNLOCK_ATTACH,
848 MS_BLACK_LIST_UNLOCK_DETACH,
849 MS_BLACK_LIST_LOCK_ATTACH_ANY,
850#endif
851#if defined(__ECALL_SUPPORT__) || defined(__NG_ECALL_SUPPORT__)
852 ECALLQUERY_EXE,
853#endif
854 L4C_LAST_ACTION
855} l4c_action_enum;
856
857typedef enum
858{
859 L4C_PENDING_NO_ACTION,
860 L4C_PENDING_DETACH_EXE,
861 L4C_PENDING_ATTACH_EXE,
862 L4C_PENDING_PS_ATTACH_EXE,
863 L4C_PENDING_PS_DETACH_EXE,
864 L4C_PENDING_OP01_SIM_LOCK_DETACH_EXE,
865 L4C_PENDING_OP01_SIM_UNLOCK_ATTACH_EXE,
866 L4C_PENDING_OP01_RAT_LOCK_EXE,
867 L4C_PENDING_OP01_RAT_UNLOCK_EXE,
868 L4C_PENDING_IMEI_MEID_LOCK_DETACH_EXE,
869 L4C_PENDING_IMEI_MEID_UNLOCK_ATTACH_EXE,
870 L4C_PENDING_IMEI_MEID_LOCK_ATTACH_ANY_EXE,
871 L4C_PENDING_FORCE_CHANGE_RAT_EXE,
872 L4C_PENDING_UE_CAPABILITY_EXE,
873#ifdef __MBIM_MS_NETWORK_BLACKLIST__
874 L4C_PENDING_MS_BLACK_LIST_LOCK_DETACH_EXE,
875 L4C_PENDING_MS_BLACK_LIST_UNLOCK_ATTACH_EXE,
876 L4C_PENDING_MS_BLACK_LIST_UNLOCK_DETACH_EXE,
877 L4C_PENDING_MS_BLACK_LIST_LOCK_ATTACH_ANY_EXE
878#endif
879} l4c_pending_action_enum;
880
881typedef enum
882{
883 L4C_ROOT_NO_ACTION,
884 L4C_ROOT_PWROFF_EXE,
885 L4C_ROOT_EFUN_EXE,
886 L4C_ROOT_PRE_RECONFIG_EXE, // Pre-process before reconfigure processing
887 L4C_ROOT_RECONFIG_EXE,
888 L4C_ROOT_CHECK_DUPLEX_MODE_EXE,
889 L4C_ROOT_STATE_RECOVER_EXE, // Recover back to original EFUN state
890 L4C_ROOT_NOTIFY_RSVA_MODE_SWITCH_EXE, //Notify RSVA the beginning of duplex mode switch
891 L4C_ROOT_LAST_ACTION
892}l4c_root_action_enum;
893
894typedef enum
895{
896 L4C_FIRST_IND, /*0*/
897 INIT_IND = L4C_FIRST_IND,
898 NVM_READY_IND,
899 SIM_FAIL_IND,
900 PHB_FIN_IND,
901 LN_FIN_IND,
902
903 FIRST_CC_IND,
904 CAOC_IND = FIRST_CC_IND,
905 SPEECH_IND,
906 ALERT_IND,
907 CCWA_IND,
908 CRING_IND,
909 DISC_IND,
910 REL_IND, /* 10 */
911 CMOD_IND,
912 CONN_IND,
913 NOTIFY_SS_IND,
914 NS_CUG_IND,
915 NS_ECT_IND,
916 NS_CNAP_IND,
917 NS_CCBS_IND,
918 CPHS_ALS_IND,//mtk00468 add for ripple CPHS feature
919 START_DTMF,
920 STOP_DTMF, /* 20 */
921 PARSE_SS_IND,
922 LAST_CC_IND = PARSE_SS_IND,
923
924 FIRST_SS_IND,
925 CB_PWD_IND = FIRST_SS_IND,
926 CUSD_R_IND,
927 CUSD_N_IND,
928 CPHS_CFU_IND, /* mtk00468 030602 add for Paul cphs feature*/
929 LAST_SS_IND = CPHS_CFU_IND,
930
931 FIRST_EQ_IND,
932 KEY_IND = FIRST_EQ_IND,
933 POWERON_IND,
934 BAT_IND,
935//#ifdef VM_SUPPORT
936 VM_REC_IND,
937 VM_PLAY_IND, /*30*/
938//#endif
939 RTC_IND,
940 ALARM_IND,
941 ADC_CHAN_IND,
942 EM_SET_LCM_IND,//mtk00468 add for factory mode test
943 EM_KEYPAD_ACT_IND,//mtk00468 add for factory mode test
944 EM_LCM_SLEEP_IND,//mtk00468 add for LCM backlight turn on/off
945 FACTORY_IND, //mtk00468 1107 add for factory test inform MMI
946 MMI_PROF_SET_IND, //mtk00468 add 1117 for mmi's profile setting indication
947 AUDI_STOP_IND,
948 GPIO_IND,
949 LAST_EQ_IND = GPIO_IND,
950
951#ifdef __IRDA_SUPPORT__
952 FIRST_IRDA_IND,
953 IRDA_DISCON_IND = FIRST_IRDA_IND,
954 LAST_IRDA_IND = IRDA_DISCON_IND,
955#endif /* __IRDA_SUPPORT__ */
956
957#ifdef __MOD_TCM__
958 FIRST_GPRS_IND,
959 GACT_IND = FIRST_GPRS_IND,
960 GPRS_STATUS_IND,
961 LAST_GPRS_IND = GPRS_STATUS_IND,
962#endif
963
964#ifdef __MOD_RAC__
965 FIRST_NW_IND,
966 REG_IND = FIRST_NW_IND, /*40*/
967 ATTACH_IND,
968 CSQ_IND,
969 CTZR_IND,
970 LAST_NW_IND = CTZR_IND,
971#endif
972
973 /* mtk0046803050315 add enum IND so that in l4c_sat_msg
974 * we can use mmi_ind_ft to use it. modified direct call the
975 * funciton handler and more systemlize
976 */
977#ifdef __SAT__
978 FIRST_SAT_IND,
979 SAT_DSPL_TEXT_IND = FIRST_SAT_IND,
980 SAT_GET_INKEY_IND,
981 SAT_GET_INPUT_IND,
982 SAT_SETUP_MENU_IND,
983 SAT_SELECT_ITEM_IND,
984 SAT_PLAY_TONE_IND,
985 SAT_SETUP_CALL_IND, /*50 */
986 SAT_SEND_SMS_IND,
987 SAT_SEND_SS_IND,
988 SAT_SEND_USSD_IND,
989 SAT_MMI_INFO_IND,
990 SAT_SETUP_IDLE_DSPL_IND, //030602 mtk00468 add for paul SAT [begin]
991 SAT_RUN_AT_COMMAND_IND,
992 SAT_SEND_DTMF_IND,
993 SAT_LANG_NOTIFY_IND,
994#ifdef __SATCE__
995 SAT_OPEN_CHANNEL_IND,
996 SAT_CLOSE_CHANNEL_IND,
997 SAT_SEND_DATA_IND,
998 SAT_RECV_DATA_IND,
999#endif /* __SATCE__ */
1000 SAT_LAUNCH_BROWSER_IND,
1001 SAT_NO_OTHER_CMD_IND,
1002 LAST_SAT_IND = SAT_NO_OTHER_CMD_IND,//030602 mtk00468 add for paul SAT [end]
1003#endif /* __SAT__ */
1004
1005 FIRST_PHB_IND,
1006 PHB_FULL_IND = FIRST_PHB_IND, /* 60 */
1007 PHB_UPDATE_IND, /* mtk00468 add for sync AT and MMI with phb write ande delete*/
1008 PHB_STARTUP_BEGIN_IND,
1009 PHB_STARTUP_READ_IND,
1010 LAST_PHB_IND = PHB_STARTUP_READ_IND,
1011
1012 FIRST_SIM_IND,
1013 PASSWD_IND = FIRST_SIM_IND,
1014 SIM_INFO_IND,
1015 PLMN_LEN_IND,
1016 CPHS_MMI_INFO, //mtk00468 030610 add for l4csmu_mmi_info_ind handle
1017 LAST_SIM_IND = CPHS_MMI_INFO,
1018
1019
1020 FIRST_SMSAL_IND,
1021 SMS_FULL_IND = FIRST_SMSAL_IND,
1022 SMS_EXC_IND,
1023 SMS_AVA_IND,
1024 SMS_WAIT_IND, //030613 mtk00468 add for SMS CPHS feature
1025 SMS_INDX_IND,
1026 SMS_TEXT_IND, /* 70 */
1027 SMS_PDU_IND,
1028 SMS_READY_IND, //mtk00468 add in 040229
1029 SMS_APP_DATA_IND, //mtk00468 add in 040312 for WMA
1030 SMS_SYNC_MSG_IND,
1031 CMGD_IND,
1032 CMGW_IND,
1033 CMGS_ABORT_START_IND,
1034 CMGS_ABORT_FINISH_IND,
1035 CB_MSG_IND, //for LMMI & text mode of RMMI.
1036 CB_PDU_IND, //for RMMI pdu mode
1037 CB_DL_IND,
1038 LAST_SMSAL_IND = CB_DL_IND,
1039 L4C_LAST_IND = LAST_SMSAL_IND
1040} l4c_ind_enum;
1041
1042
1043typedef enum
1044{
1045 PAS_READY,
1046 PAS_UNAVAILABLE,
1047 PAS_CALL_RINGING = 3,
1048 PAS_CALL_IN_PROGRESS
1049
1050} l4ccsm_phone_act_enum;
1051
1052typedef enum
1053{
1054 L4C_ASYNC_T, /* ASYNC */
1055 L4C_SYNC_T, /* SYNC */
1056 L4C_ASYNC_NT, /* REL ASYNC */
1057 L4C_SYNC_NT /* REL SYNC */
1058} l4ccsm_cc_data_call_type_enum;
1059
1060
1061enum
1062{
1063 L4C_CISS_NOT_ACTIVE,
1064 L4C_CISS_ACTIVE,
1065 L4C_CISS_NOT_PROVISION
1066};
1067
1068enum
1069{
1070 L4C_SMU_INACTIVE,
1071 L4C_SMU_ACTIVE,
1072 L4C_SMU_ACTIVATE_FAIL
1073};
1074
1075typedef enum
1076{
1077 L4C_SUCCESS,
1078 L4C_SIM_FAIL,
1079 L4C_NVRAM_FAIL,
1080 L4C_GENERAL_ERROR,
1081 L4C_SIM_SWITCH_FAIL
1082} l4c_poweron_result_enum;
1083
1084typedef enum
1085{
1086 L4C_PHB_NO_ERROR,
1087 L4C_PHB_FAIL,
1088 L4C_PHB_SCA_FDN,
1089 L4C_PHB_DA_FDN_ONLY
1090}l4c_phb_sms_fdn_result_enum;
1091
1092typedef enum
1093{
1094 L4C_NONE_DATA,
1095 L4C_CSD_DATA,
1096 L4C_GPRS_DATA
1097} l4c_data_mode_enum;
1098
1099typedef enum
1100{
1101 L4C_MMI_PROF_QUERY,
1102 L4C_MMI_PROF_SET
1103} l4c_mmi_set_prof_op_enum;
1104
1105
1106typedef enum
1107{
1108 L4C_WHEN_NEEDED,
1109 L4C_ALWAYS,
1110 L4C_ALWAYS_FOR_GCF, //mtk02285, MAUI_02931839, 20110505
1111 L4C_ALWAYS_WITH_FOP, //notify GMM to set FOP in next attach request
1112 L4C_ALWAYS_DUAL_CHECK, // Same as ALWAYS, but return error if PS is existed in SIM1/SIM2
1113 L4C_GPRS_CONN_TYPE_UNKNOWN
1114} l4c_gprs_connect_type_enum;
1115
1116typedef enum
1117{
1118 L4C_IMELODY,
1119 L4C_SOUND_OTHER,
1120 L4C_IMAGE,
1121 L4C_APP_UNKNOWN
1122} l4c_app_type_enum;
1123
1124typedef enum
1125{
1126 L4C_IMAGE_STD,
1127 L4C_AUDIO_IMELODY,
1128 L4C_AUDIO_OTHER
1129} l4c_data_dl_folder_enum;
1130
1131typedef enum
1132{
1133 L4C_FILE_ADD,
1134 L4C_FILE_DELETE
1135}l4c_data_dl_file_action_enum;
1136
1137typedef enum
1138{
1139 L4C_FILE_EXECUTE_PLAY, /*play audio*/
1140 L4C_FILE_EXECUTE_STOP /*stop play audio*/
1141}l4c_data_dl_execute_action_enum;
1142
1143typedef enum
1144{
1145 L4C_COPS_UNKNOWN,
1146 L4C_COPS_AVAILABLE,
1147 L4C_COPS_CURRENT,
1148 L4C_COPS_FORBIDDEN
1149} l4c_cops_status_enum; /*27.007 7.3 +COPS*/
1150
1151typedef enum
1152{
1153 L4C_AT_SMS_ADD,
1154 L4C_AT_SMS_READ_CMGR,
1155 L4C_AT_SMS_READ_CMGL,
1156 L4C_AT_SMS_DELETE,
1157 L4C_SMS_SIM_REFRESH
1158
1159}l4c_at_sms_action_enum;
1160#if 0
1161/* under construction !*/
1162/* under construction !*/
1163/* under construction !*/
1164/* under construction !*/
1165/* under construction !*/
1166/* under construction !*/
1167/* under construction !*/
1168/* under construction !*/
1169/* under construction !*/
1170/* under construction !*/
1171/* under construction !*/
1172/* under construction !*/
1173/* under construction !*/
1174/* under construction !*/
1175/* under construction !*/
1176/* under construction !*/
1177/* under construction !*/
1178/* under construction !*/
1179/* under construction !*/
1180/* under construction !*/
1181/* under construction !*/
1182/* under construction !*/
1183/* under construction !*/
1184/* under construction !*/
1185/* under construction !*/
1186/* under construction !*/
1187/* under construction !*/
1188/* under construction !*/
1189/* under construction !*/
1190/* under construction !*/
1191/* under construction !*/
1192/* under construction !*/
1193/* under construction !*/
1194/* under construction !*/
1195/* under construction !*/
1196/* under construction !*/
1197/* under construction !*/
1198/* under construction !*/
1199/* under construction !*/
1200/* under construction !*/
1201/* under construction !*/
1202/* under construction !*/
1203/* under construction !*/
1204/* under construction !*/
1205/* under construction !*/
1206/* under construction !*/
1207/* under construction !*/
1208/* under construction !*/
1209/* under construction !*/
1210/* under construction !*/
1211/* under construction !*/
1212/* under construction !*/
1213/* under construction !*/
1214/* under construction !*/
1215/* under construction !*/
1216/* under construction !*/
1217/* under construction !*/
1218/* under construction !*/
1219/* under construction !*/
1220/* under construction !*/
1221/* under construction !*/
1222/* under construction !*/
1223/* under construction !*/
1224/* under construction !*/
1225/* under construction !*/
1226/* under construction !*/
1227/* under construction !*/
1228/* under construction !*/
1229/* under construction !*/
1230/* under construction !*/
1231/* under construction !*/
1232/* under construction !*/
1233/* under construction !*/
1234/* under construction !*/
1235/* under construction !*/
1236/* under construction !*/
1237/* under construction !*/
1238/* under construction !*/
1239/* under construction !*/
1240/* under construction !*/
1241/* under construction !*/
1242/* under construction !*/
1243/* under construction !*/
1244/* under construction !*/
1245/* under construction !*/
1246/* under construction !*/
1247/* under construction !*/
1248/* under construction !*/
1249/* under construction !*/
1250/* under construction !*/
1251/* under construction !*/
1252/* under construction !*/
1253/* under construction !*/
1254/* under construction !*/
1255/* under construction !*/
1256/* under construction !*/
1257/* under construction !*/
1258/* under construction !*/
1259/* under construction !*/
1260/* under construction !*/
1261/* under construction !*/
1262/* under construction !*/
1263/* under construction !*/
1264/* under construction !*/
1265/* under construction !*/
1266/* under construction !*/
1267/* under construction !*/
1268/* under construction !*/
1269/* under construction !*/
1270/* under construction !*/
1271/* under construction !*/
1272/* under construction !*/
1273/* under construction !*/
1274/* under construction !*/
1275/* under construction !*/
1276/* under construction !*/
1277/* under construction !*/
1278/* under construction !*/
1279/* under construction !*/
1280/* under construction !*/
1281/* under construction !*/
1282/* under construction !*/
1283/* under construction !*/
1284/* under construction !*/
1285/* under construction !*/
1286/* under construction !*/
1287/* under construction !*/
1288/* under construction !*/
1289/* under construction !*/
1290/* under construction !*/
1291/* under construction !*/
1292/* under construction !*/
1293/* under construction !*/
1294/* under construction !*/
1295/* under construction !*/
1296/* under construction !*/
1297/* under construction !*/
1298/* under construction !*/
1299/* under construction !*/
1300/* under construction !*/
1301/* under construction !*/
1302/* under construction !*/
1303/* under construction !*/
1304/* under construction !*/
1305/* under construction !*/
1306/* under construction !*/
1307/* under construction !*/
1308/* under construction !*/
1309/* under construction !*/
1310/* under construction !*/
1311/* under construction !*/
1312/* under construction !*/
1313/* under construction !*/
1314/* under construction !*/
1315/* under construction !*/
1316/* under construction !*/
1317/* under construction !*/
1318/* under construction !*/
1319/* under construction !*/
1320/* under construction !*/
1321/* under construction !*/
1322/* under construction !*/
1323/* under construction !*/
1324/* under construction !*/
1325/* under construction !*/
1326/* under construction !*/
1327/* under construction !*/
1328/* under construction !*/
1329/* under construction !*/
1330/* under construction !*/
1331/* under construction !*/
1332/* under construction !*/
1333/* under construction !*/
1334/* under construction !*/
1335/* under construction !*/
1336/* under construction !*/
1337/* under construction !*/
1338/* under construction !*/
1339/* under construction !*/
1340/* under construction !*/
1341/* under construction !*/
1342/* under construction !*/
1343/* under construction !*/
1344/* under construction !*/
1345/* under construction !*/
1346/* under construction !*/
1347/* under construction !*/
1348/* under construction !*/
1349/* under construction !*/
1350/* under construction !*/
1351/* under construction !*/
1352#endif
1353#if 0 //__CTM_SUPPORT__
1354/* under construction !*/
1355/* under construction !*/
1356/* under construction !*/
1357/* under construction !*/
1358/* under construction !*/
1359/* under construction !*/
1360/* under construction !*/
1361#endif
1362
1363typedef enum
1364{
1365 L4C_NO_INSERTED,
1366 L4C_INSERTED,
1367 L4C_SINGLE_SIM_INSERTED_STATUS_NONE = 0xFF
1368}l4c_single_sim_inserted_enum;
1369
1370typedef enum
1371{
1372 L4C_SMU_START,
1373 L4C_SMU_SECURITY,
1374 L4C_RAC_SEARCH
1375}l4c_dual_sim_power_on_state_enum;
1376
1377typedef enum
1378{
1379 TYPE_PHB_SMS_PARAM_ONLY_INIT,
1380 TYPE_PHB_NORMAL_INIT,
1381 TYPE_SMS_NORMAL_INIT
1382}l4c_cancel_lock_poweron_type_enum;
1383
1384typedef enum
1385{
1386 USSD_VERSION_PHASE2,
1387 USSD_VERSION_PHASE1,
1388 USSD_VERSION_NONE
1389}l4c_ussd_version_enum;
1390
1391typedef enum
1392{
1393 CPI_REPORT_NONE,
1394 CPI_REPORT_NW_MSG_ONLY,
1395 CPI_REPORT_CALL_STATE_ONLY,
1396 CPI_REPORT_FULL
1397}l4c_cpi_report_mode_enum;
1398
1399#define INFO_REPORT_MASK (kal_uint32)0x00000001
1400
1401// MAUI_01652364
1402typedef enum
1403{
1404 USSD_RETURN_RESULT,
1405 USSD_RETURN_RESULT_WITH_EMPTY_STRING,
1406 USSD_RETURN_ERROR,
1407 USSD_RETURN_REJECT,
1408 USSD_RETURN_FAILED, //in local check
1409 USSD_RETURN_WITHOUT_COMPONENT
1410} l4c_ussd_return_type_enum;
1411
1412typedef enum
1413{
1414 ATCI_STATE_UART_OWNER_ATCI,
1415 ATCI_STATE_UART_OWNER_ATCI2,
1416 ATCI_STATE_UART_OWNER_DT,
1417 ATCI_STATE_PLUGOUT,
1418 ATCI_STATE_NONE
1419}l4c_dt_state_enum;
1420
1421typedef enum
1422{
1423 RMMI_SWITCH_ATCI_TO_DT,
1424 RMMI_SWITCH_ATCI_TO_ATCI2,
1425 RMMI_SWITCH_ATCI2_TO_DT,
1426 RMMI_SWITCH_ATCI2_TO_ATCI,
1427 RMMI_SWITCH_DT_TO_ATCI,
1428 RMMI_SWITCH_DT_TO_ATCI2,
1429 RMMI_PLUGOUT,
1430 RMMI_NONE
1431}l4c_dt_transfer_ind_state_enum;
1432
1433
1434typedef enum
1435{
1436 CSM_STATE_NOT_INITIATED,
1437 CSM_STATE_CC_READY,
1438 CSM_STATE_CISS_READY //replace ciss_ready_flag
1439}l4c_csm_state_enum;
1440
1441// for parallel SS
1442/*
1443The following is the range definition:
1444CISS: SS_ID_CISS_BASE+0 ~ SS_ID_CISS_BASE+6
1445LCS: SS_ID_LCS_BASE+0 ~ SS_ID_LCS_BASE+6
1446*/
1447#define SS_ID_MAX_NUM 7 //there is no more 7 SSs in parallel for MO or MT
1448typedef enum {
1449 SS_ID_MT_BASE = 8,
1450 SS_ID_MT_END = SS_ID_MT_BASE + SS_ID_MAX_NUM-1,
1451 SS_ID_LCS_BASE = 16, //for LCS(AGPS)
1452 SS_ID_LCS_END = SS_ID_LCS_BASE + SS_ID_MAX_NUM-1, //LCS: SS_ID_LCS_BASE+0~SS_ID_LCS_BASE+6
1453 SS_ID_CISS_BASE = 32, //for common SS and USS service
1454 SS_ID_CISS_END = SS_ID_CISS_BASE + SS_ID_MAX_NUM-1, //CISS: SS_ID_CISS_BASE+0~SS_ID_CISS_BASE+6
1455 SS_ID_INVALID = 255
1456} l4c_ss_id_enum;
1457
1458//ALPS00029231
1459typedef enum
1460{
1461 SAT_USSR_NONE, //initial state
1462 SAT_SS_USSR, //USSR triggered by SAT send SS
1463 SAT_USSD_USSR //USSR triggered by SAT send USSD
1464}l4c_sat_ussr_enum;
1465
1466typedef enum {
1467 PDP_ACT,
1468 PDP_MOD,
1469 PDP_DEACT,
1470 ENTER_DATA,
1471 SET_REQ,
1472 SET_CONTEXT_REQ,
1473 ACTION_MAX
1474} l4ctcm_action_enum;
1475
1476typedef enum {
1477 SIB_FIELD_REQUEST_TYPE,
1478} l4ctcm_session_info_block_field_enum;
1479
1480typedef enum {
1481 L4C_ACT_REASON_NORMAL,
1482 L4C_ACT_REASON_ATTACH_1ST_PDN,
1483 L4C_ACT_REASON_REVIVE_HANDOVER_PDN,
1484 L4C_ACT_REASON_REESTABLISH_WITHOUT_N26_HANDOVER_PDN,
1485 L4C_ACT_REASON_MAX
1486} l4ctcm_act_reason;
1487
1488typedef enum {
1489 EGACT_SUPPORT_ALL_RAT = 0,
1490 EGACT_SUPPORT_23G = 1,
1491 EGACT_SUPPORT_4G = 2,
1492 EGACT_SUPPORT_234G = EGACT_SUPPORT_23G | EGACT_SUPPORT_4G,
1493 EGACT_SUPPORT_5G = 4,
1494 EGACT_SUPPORT_235G = EGACT_SUPPORT_23G | EGACT_SUPPORT_5G,
1495 EGACT_SUPPORT_45G = EGACT_SUPPORT_4G | EGACT_SUPPORT_5G,
1496 EGACT_SUPPORT_MAX,
1497} l4ctcm_egact_support_rat_enum;
1498
1499typedef enum {
1500 EGACT_CAUSE_DONT_CARE = 0,
1501 EGACT_CAUSE_DEACT_NORMAL,
1502 EGACT_CAUSE_DEACT_RA_ERROR,
1503 EGACT_CAUSE_DEACT_RA_INITIAL_ERROR,
1504 EGACT_CAUSE_DEACT_RA_REFRESH_ERROR,
1505 EGACT_CAUSE_DEACT_NO_PCSCF,
1506 EGACT_CAUSE_DEACT_USER_FORCE_TO_LOCAL_RELEASE,
1507 EGACT_CAUSE_DEACT_AOSP_SHUTDOWN,
1508 EGACT_CAUSE_DEACT_AOSP_HANDOVER,
1509 EGACT_CAUSE_DEACT_APN_CHANGED,
1510 EGACT_CAUSE_DEACT_IMS_HANDOVER
1511} l4ctcm_egact_cause_enum;
1512
1513typedef enum {
1514 NO_CONFLICT,
1515 CONFLICT_CHANNEL_BUSY,
1516 CONFLICT_CID_BUSY,
1517// CONFLICT_C2K_IRAT,
1518 CONFLICT_CFUN,
1519 CONFLICT_TCM_NOT_READY,
1520 CONFLICT_RAC_STATE,
1521 CONFLICT_ATTACH_ONGOING,
1522} l4c_gprs_cmd_conflict_cause_enum;
1523
1524typedef enum {
1525 CHECK_CONFLICT_FLAG_CFUN = 0x0001,
1526 CHECK_CONFLICT_FLAG_TCM_READ_NVRAM_COMPLETE = 0x0002,
1527 CHECK_CONFLICT_FLAG_RAC_STATE = 0x0004,
1528// CHECK_CONFLICT_FLAG_C2K_IRAT = 0x0008,
1529 CHECK_CONFLICT_FLAG_SRC_CID_TABLE = 0x0010,
1530 CHECK_CONFLICT_FLAG_ATTACH_BY_CID_TABLE = 0x0020,
1531 CHECK_CONFLICT_FLAG_ALL = 0xFFFF,
1532} l4c_cmd_conflict_bitmap_flag_enum;
1533
1534typedef enum {
1535 L4C_NOT_CHECK_CMD_CONFLICT,
1536 L4C_CHECK_CMD_CONFLICT,
1537} l4c_cmd_conflict_check_option_enum;
1538
1539
1540typedef enum {
1541 LTE_ATTACH_PDN_ESM_NOT_BLOCK_INVALID_APN,
1542 LTE_ATTACH_PDN_ESM_BLOCK_INVALID_APN
1543} lte_attach_pdn_esm_block_invalid_apn_enum;
1544
1545typedef enum
1546{
1547 L4C_TIMER_ID_KEYPAD = 0, // 0: keypad
1548 L4C_TIMER_ID_DT = 1, // 1: DT
1549 L4C_TIMER_ID_GPRS = 2, // 2: gprs
1550 L4C_TIMER_ID_RETRY = 3, // 3: retry
1551 L4C_TIMER_ID_HZ = 4, // 4: hz
1552 L4C_TIMER_ID_DIALUP = 5, // 5: dialup
1553 L4C_TIMER_ID_RING = 6, // 6: RING repeat timer
1554 L4C_TIMER_ID_SAT = 7, // 7: SAT redial duration timer
1555 L4C_TIMER_ID_PWOF = 8, // 8: Power off timer
1556 L4C_TIMER_ID_ECBM, // obsoleted.
1557 L4C_TIMER_ID_VOLTE_HYS = 11, // 11: VzW T_VoLTE_hys
1558 L4C_TIMER_ID_TXRXTIME = 12, // 12: txrx active time
1559 L4C_TIMER_ID_RSIM_PLUGIN = 13, //13: RSIM plugin timer
1560 L4C_TIMER_ID_SBP = 14, // 14: SBP guard timer
1561 L4C_TIMER_ID_UPPER_THRESHOLD = 15, //15: Power Lever Upper Threshold timer
1562 L4C_TIMER_ID_LOWER_THRESHOLD = 16, //16: Power Lever Lower Threshold timer
1563 L4C_TIMER_ID_OP12_LOCK_TIMER = 17, // 17 op12 reg lock to send dereg if needed
1564 L4C_TIMER_ID_OP12_UNLOCK_TIMER = 18, // 18 op12 reg unlock to send reg if needed
1565 L4C_TIMER_ID_ERSIMAUTH = 19, // 19: RSIM AUTH timer
1566 L4C_TIMER_ID_EPSNLTE = 20, // 20: EPSNLTE URC timer
1567 L4C_TIMER_ID_NON_PS_OCCUPY_TIMER = 21, // 21 Occupy RSVAS for non-ps SIM regist first
1568 L4C_TIMER_ID_CALL_RETRY_MAX_TIMER = 22, // 22: call retry max timer
1569 L4C_TIMER_ID_ANTENNA_STATE = 23, // 23: for antenna state reporting
1570 L4C_TIMER_ID_OP129_LTE_ONLY_TIMER = 24, // 24: for switching RAT mode to 23G from KDDI LTE
1571 L4C_TIMER_ID_WAIT_LTE_PAGING_TIMER = 25, // 25: wait for MT paging in LTE RAT.
1572 L4C_TIMER_ID_5GUW_TUW_1 = 26, // 26: VzW 5GUW TUW 1
1573 L4C_TIMER_ID_5GUW_TUW_2 = 27, // 27: VzW 5GUW TUW 2
1574 L4C_TIMER_ID_5GUW_TUW_3 = 28, // 28: VzW 5GUW TUW 3
1575 L4C_TIMER_ID_MAX
1576} l4c_timer_id_enum;
1577
1578typedef enum{
1579 L4C_SIM_STATE_ON,
1580 L4C_SIM_STATE_TURNING_OFF,
1581 L4C_SIM_STATE_OFF
1582}l4c_sim_state_enum;
1583
1584// C2K MD power off state, for MD1/MD3 EPOF procedure
1585typedef enum
1586{
1587 C2K_MD_POWER_OFF_NOT_START = 0,
1588 C2K_MD_POWER_OFF_STARTED,
1589 C2K_MD_POWER_OFF_DONE
1590} l4c_c2k_power_off_state_enum;
1591
1592/* for sim_status_bitmask
1593 TODO: replacce l4c_single_sim_inserted_enum
1594*/
1595typedef enum
1596{
1597 /*
1598 * initial state, L4 doesn't know any information about SIM
1599 */
1600 L4C_SIM_FLAG_UNKNOWN = 0,
1601
1602 /*
1603 * L4C has received SIM_ERROR_IND(plug_in) or SIM_RESET_CNF(sim_exist),
1604 * i.e. there is a card in the SIM slot, but not initialized yet
1605 * the inserted card maybe SIM, USIM, CSIM, UIM...etc
1606 */
1607 // TODO: this flag is to replace single_sim_exist_status
1608 L4C_SIM_FLAG_DETECTED = 0x01,
1609
1610 /*
1611 * L4C has received SIM_RESET_CNF(sim_inserted) or START_CNF(SMU_RES_OK)
1612 * i.e. there is a SIM or USIM in the SIM slot, but not initialized yet
1613 */
1614 // TODO: this flag is to replace single_sim_inserted_status
1615 L4C_SIM_FLAG_3GPP_SIM_INSERTED = 0x02,
1616
1617 /*
1618 * L4(SMU) has received SIM_START_CNF(SIM_CMD_SUCCESS)
1619 * i.e. SIM is initialized and can be access, excluding PIN1 required file
1620 * e.g. ICCID is readable when this bit is set
1621 */
1622 L4C_SIM_FLAG_STARTED_SUCCESS = 0x04,
1623
1624 /*
1625 * L4C has received SECURITY_CNF(TYPE_NO_REQUIRED)
1626 * i.e. PIN1 and SML check are all passed, IMSI can be read
1627 * currently we don't provide PIN1 verified but SML not passed flag,
1628 * because no special requirement for this condition
1629 */
1630 L4C_SIM_FLAG_PIN1_SML_VERIFIED= 0x08
1631} l4c_sim_flag_enum;
1632
1633typedef enum
1634{
1635 /* This ENUM was defined by MUSE project for VzW hVoLTE interface */
1636
1637 STATUS_LTE_CONN_NONE = 0,
1638 STATUS_LTE_RACH_REJECT_W_WAIT = 11,
1639 STATUS_LTE_RACH_FAILED_T300 = 12,
1640 STATUS_LTE_SR_REJECT_EMM_9_10 = 13,
1641 STATUS_LTE_ACCESS_BARRED = 16,
1642 STATUS_LTE_EMM_NET_REJECT = 17,
1643 STATUS_LTE_NAS_CONGESTION = 22,
1644 STATUS_LTE_DEDI_BEAR_QCI_RESP = 31,
1645 STATUS_LTE_TRIGGER_IMS_DEREG = 32,
1646 STATUS_LTE_IMS_CALL_FAIL_1X_SILENT_REDIAL_START = 35,
1647
1648 //Also for VzW hVoLTE, but defined by MTK
1649 STATUS_LTE_EMERGENCY_ATTACH_REJECT = 129,
1650 STATUS_LTE_NORMAL_DETACH = 130,
1651 STATUS_LTE_EMERGENCY_ATTACH = 131,
1652 STATUS_LTE_NORMAL_ATTACH = 132,
1653 STATUS_LTE_EMERGENCY_DETACH = 133,
1654 STATUS_LTE_EMERGENCY_PDN_ACT_REJ_IN_ATTACH_STATE = 134,
1655 STATUS_LTE_EPS_ONLY_ATTACH = 135
1656} l4c_lte_conn_status_enum;
1657
1658/* bitmap type */
1659typedef enum
1660{
1661 L4C_GUTI = 1,
1662 L4C_PTMSI = 2,
1663 L4C_LOCI = L4C_PTMSI, // Used by Titan
1664 L4C_5GSLOCI = 4
1665} l4c_msid_enum;
1666
1667typedef enum
1668{
1669 L4C_USIM_TYPE_IS_SIM = 0,
1670 L4C_USIM_TYPE_IS_USIM = 1,
1671 L4C_USIM_TYPE_NO_SIM_NO_USIM = 2
1672} l4c_usim_type_enum;
1673
1674typedef enum
1675{
1676 L4C_CSIM_TYPE_IS_UIM = 0,
1677 L4C_CSIM_TYPE_IS_CSIM = 1,
1678 L4C_CSIM_TYPE_NO_UIM_NO_CSIM = 2,
1679 L4C_CSIM_TYPE_IS_UIM_AND_CSIM = 3
1680} l4c_csim_type_enum;
1681
1682typedef enum
1683{
1684 L4C_DIAL_C2K_IDLE = 0x00,
1685 L4C_DIAL_C2K_CMD_RCVD = 0x01,//received AT+EHVOLTE=0,1
1686 L4C_DIAL_C2K_CSFB_START_IND_RCVD= 0x02,
1687 L4C_DIAL_C2K_VOLTE_UNREG_RCVD = 0x04,
1688 L4C_DIAL_C2K_CSFB_START_VOLTE_UNREG_RCVD =
1689 L4C_DIAL_C2K_CMD_RCVD|L4C_DIAL_C2K_CSFB_START_IND_RCVD|L4C_DIAL_C2K_VOLTE_UNREG_RCVD,
1690} l4c_dial_c2k_state_enum;
1691
1692typedef enum
1693{
1694 L4C_TX_INTERRUPTION_TIMER_EXPIRY = 0, // Obsolete
1695 L4C_EVENT_SCHEDULER_TIMER_ID,
1696 L4C_EVENT_SCHEDULER_MAX_DELAY_TIMER_ID /* delay tolerant: evt_scheduler_max_delay_ptr */
1697} l4c_timer_index_id_enum;
1698
1699typedef enum
1700{
1701 L4C_GSM_RSSI = 0,
1702 L4C_UTRAN_RSCP = 1,
1703 L4C_UTRAN_ECNO = 2,
1704 L4C_LTE_RSRP = 3,
1705 L4C_LTE_RSRQ = 4,
1706 L4C_LTE_RSSNR = 5,
1707 L4C_1X_RSSI = 6, // not used in l4c, align iwlan-l4c interface
1708 L4C_1X_ECIO = 7, // not used in l4c, align iwlan-l4c interface
1709 L4C_EVDO_RSSI = 8, // not used in l4c, align iwlan-l4c interface
1710 L4C_EVDO_ECIO = 9, // not used in l4c, align iwlan-l4c interface
1711 L4C_NR_SS_RSRP = 10,
1712 L4C_NR_SS_RSRQ = 11,
1713 L4C_NR_SS_SINR = 12,
1714 L4C_NR_CSI_RSRP = 13,
1715 L4C_NR_CSI_RSRQ = 14,
1716 L4C_NR_CSI_SINR = 15,
1717 L4C_MAX_SIG,
1718} l4c_sig_type_enum;
1719
1720
1721typedef enum{
1722 L4C_SIM_DUPLEX_MODE_STATE_NONE,
1723 L4C_SIM_DUPLEX_MODE_STATE_RESET,
1724 L4C_SIM_DUPLEX_MODE_STATE_RESET_DONE,
1725 L4C_SIM_DUPLEX_MODE_STATE_SET
1726}l4c_sim_duplex_mode_reset_state_enum;
1727
1728typedef enum
1729{
1730 L4C_PWL_THRHD_TIMER_ID_GSM_RSSI_THRESHOLD, //0: Power Lever Threshold timer for GSM RSSI
1731 L4C_PWL_THRHD_TIMER_ID_UTRAN_RSCP_THRESHOLD, //1: Power Lever Threshold timer for UTRAN RSCP
1732 L4C_PWL_THRHD_TIMER_ID_UTRAN_ECNO_THRESHOLD, //2: Power Lever Threshold timer for UTRAN_ECNO
1733 L4C_PWL_THRHD_TIMER_ID_LTE_RSRP_THRESHOLD, //3: Power Lever Threshold timer for LTE RSRP
1734 L4C_PWL_THRHD_TIMER_ID_LTE_RSRQ_THRESHOLD, //4: Power Lever Threshold timer for LTE_RSRQ
1735 L4C_PWL_THRHD_TIMER_ID_LTE_RSSNR_THRESHOLD, //5: Power Lever Threshold timer for LTE_RSSNR
1736 L4C_PWL_THRHD_TIMER_ID_NR_SS_RSRP_THRESHOLD, //6: Power Lever Threshold timer for NR_SS_RSRP
1737 L4C_PWL_THRHD_TIMER_ID_NR_SS_RSRQ_THRESHOLD, //7: Power Lever Threshold timer for NR_SS_RSRQ
1738 L4C_PWL_THRHD_TIMER_ID_NR_SS_SINR_THRESHOLD, //8: Power Lever Threshold timer for NR_SS_SINR
1739 L4C_PWL_THRHD_TIMER_ID_NR_CSI_RSRP_THRESHOLD, //9: Power Lever Threshold timer for NR_CSI_RSRP
1740 L4C_PWL_THRHD_TIMER_ID_NR_CSI_RSRQ_THRESHOLD, //10: Power Lever Threshold timer for NR_CSI_RSRQ
1741 L4C_PWL_THRHD_TIMER_ID_NR_CSI_SINR_THRESHOLD, //11: Power Lever Threshold timer for NR_CSI_SINR
1742 L4C_PWL_THRHD_TIMER_ID_MAX
1743} l4c_pwl_thrhd_timer_id_enum;
1744
1745//#ifdef __REMOTE_SIM__
1746typedef enum
1747{
1748 L4C_RSVA_AKA_NO_RESOURCE_OCCUPIED,
1749 L4C_RSVA_AKA_RESOURCE_TO_BE_OCCUPIED,
1750 L4C_RSVA_AKA_RESOURCE_OCCUPIED,
1751 L4C_RSVA_AKA_RESOURCE_RELEASING,
1752} l4c_rsva_aka_resource_occupy_enum;
1753
1754typedef enum
1755{
1756 L4C_ACTION_NONE,
1757 L4C_ACTION_EPOF,
1758 L4C_ACTION_EFUN,
1759} l4c_rsim_pending_action_enum;
1760//#endif
1761
1762
1763typedef enum
1764{
1765 L4_SMU = 0x01,
1766 L4_RAC = (0x01 << 1),
1767 L4_PHB = (0x01 << 2),
1768 L4_SMSAL = (0x01 << 3),
1769 L4_UEM = (0x01 << 4),
1770 L4_TCM = (0x01 << 5),
1771 L4_CSMCC = (0x01 << 6),
1772 L4_CSMSS = (0x01 << 7),
1773}l4c_sub_module_enum;
1774
1775typedef enum
1776{
1777 OP01_ACTION_NULL,
1778 OP01_SIM_LOCK_DETACH,
1779 OP01_SIM_UNLOCK_ATTACH,
1780 OP01_RAT_LOCK,
1781 OP01_RAT_UNLOCK
1782}l4_op01_action_enum;
1783
1784typedef enum
1785{
1786 L4C_IMEI_MEID_ACTION_NULL,
1787 L4C_IMEI_MEID_LOCK_DETACH,
1788 L4C_IMEI_MEID_LOCK_ATTACH_ANY,
1789 L4C_IMEI_MEID_UNLOCK_ATTACH
1790} l4c_imei_meid_action_enum;
1791
1792typedef enum
1793{
1794 L4C_LOCK_TYPE_OP01,
1795 L4C_LOCK_TYPE_IMEI_MEID
1796} l4c_lock_type_enum;
1797
1798typedef enum
1799{
1800 L4C_RAT_GROUP_3GPP,
1801 L4C_RAT_GROUP_3GPP2,
1802 L4C_RAT_GROUP_3GPP_3GPP2
1803} l4c_rat_group_enum;
1804
1805typedef enum
1806{
1807 L4C_DSS_ONGOING_STATE_NONE = 0,
1808 L4C_DSS_ONGOING_STATE_ESIMMAP = 1,
1809 L4C_DSS_ONGOING_STATE_EPSMAP = 2,
1810} l4c_dss_ongoing_state_enum;
1811
1812typedef enum
1813{
1814 L4C_CT_VOLTE_NOT_SUPPORT = 0,
1815 L4C_CT_VOLTE_SUPPORT_MANUAL = 1,//CT original VoLTE, L4 operates in HVOLTE_MANUAL_MODE
1816 L4C_CT_VOLTE_SUPPORT_AUTO = 2,//CT hVoLTE, L4 operates in HVOLTE_AUTO_MODE
1817 L4C_CT_VOLTE_SUPPORT_ENUM_MAX
1818} l4c_ct_volte_support_enum;
1819
1820typedef enum
1821{
1822 L4C_PHB_APPROVE_SRC_CALL_SETUP,
1823 L4C_PHB_APPROVE_SRC_L4CPS,
1824 L4C_PHB_APPROVE_SRC_SMS,
1825 L4C_PHB_APPROVE_SRC_PARSE_SS,
1826 L4C_PHB_APPROVE_SRC_CUSD,
1827 L4C_PHB_APPROVE_SRC_EAPPROVE,
1828
1829 /* NOTICE!! Please add l4c_phb_approve_src_enum above this line! */
1830 L4C_PHB_APPROVE_SRC_TOTAL,
1831} l4c_phb_approve_src_enum;
1832
1833typedef enum
1834{
1835 L4C_SERVICE_MODE_NONE = 0,
1836 L4C_SERVICE_MODE_UPGRADE, // upgrade the service (when legal SIM is available)
1837 L4C_SERVICE_MODE_DOWNGRADE // dowgrade the service (when legal SIM is lost)
1838} l4c_service_mode_op_enum;
1839
1840typedef enum
1841{
1842 L4C_PWR_LEVEL_RANGE_NONE = 0,//Power level threshold timer is not running
1843 L4C_PWR_LEVEL_RANGE_LOW = 1,//Power level threshold timer is running and signal value is less than the 1st threshold
1844 L4C_PWR_LEVEL_RANGE_ONE = 2,//Power level threshold timer is running and signal value is between 1st and 2nd threshold
1845 L4C_PWR_LEVEL_RANGE_TWO = 3,//Power level threshold timer is running and signal value is between 2nd and 3rd threshold
1846 L4C_PWR_LEVEL_RANGE_THREE = 4,//Power level threshold timer is running and signal value is between 3rd and 4th threshold
1847 L4C_PWR_LEVEL_RANGE_FOUR = 5,//Power level threshold timer is running and signal value is between 4th and 5th threshold
1848 L4C_PWR_LEVEL_RANGE_FIVE = 6,//Power level threshold timer is running and signal value is between 5th and 6th threshold
1849 L4C_PWR_LEVEL_RANGE_SIX = 7,//Power level threshold timer is running and signal value is between 6th and 7th threshold
1850 L4C_PWR_LEVEL_RANGE_SEVEN = 8,//Power level threshold timer is running and signal value is between 7th and 8th threshold
1851 L4C_PWR_LEVEL_RANGE_HIGH = 9,//Power level threshold timer is running and signal value is greater than the 8st threshold
1852 L4C_PWR_LEVEL_RANGE_INVALID = 10,//Power level threshold timer is running and signal value is Invalid currently
1853 L4C_PWR_LEVEL_RANGE_MAX
1854} l4c_power_level_threshold_range_enum;
1855
1856typedef enum
1857{
1858 L4C_SAR_IGNORE_ACTION = -1,
1859 L4C_SAR_MODEM_TO_AP_DISABLE_ACTION = 0,
1860 L4C_SAR_MODEM_TO_AP_ENABLE_ACTION,
1861 L4C_SAR_AP_TO_MODEM_REBOOT_NOTIFY_ACTION,
1862 L4C_SAR_AP_TO_MODEM_DATA_ACTION,
1863 L4C_SAR_UNDEFINED_ACTION
1864}l4c_sar_action_enum;
1865
1866typedef enum
1867{
1868 L4C_SAR_NEAR = 0,
1869 L4C_SAR_FAR = 1,
1870 L4C_SAR_STATE_UNKNOWN_SAR_DISABLE = 253,
1871 L4C_SAR_STATE_UNKNOWN_SAR_ENABLE = 254,
1872 L4C_SAR_STATE_UNKNOWN_SAR_NOT_SUPPORTED = 255
1873}l4c_sar_data_enum;
1874
1875typedef enum
1876{
1877 L4C_SCP_DISABLE,
1878 L4C_SCP_ENABLE
1879} l4c_scp_monitor_enum;
1880
1881typedef enum {
1882 L4C_RAT_NO_CUSTOMIZATION,
1883 L4C_RAT_NL_CUSTOMIZATION,
1884 L4C_RAT_NLWG_CUSTOMIZATION
1885} l4c_rat_mode_custom_type_enum;
1886
1887typedef enum{
1888 L4C_SIM_LGU,
1889 L4C_SIM_KT_SKT,
1890 L4C_SIM_AUSA_H,
1891 L4C_SIM_AUSA_R,
1892 L4C_SIM_OTHER
1893} l4c_sim_oper_enum;
1894
1895typedef enum
1896{
1897 L4C_PLMN_TYPE_ARRAY,
1898 L4C_PLMN_TYPE_PLMN_STRUCT
1899} l4c_plmn_type_enum;
1900
1901#ifdef __TC01__
1902typedef enum
1903{
1904 L4C_ECC_CALL_CONNNECTED_STATUS_NONE = 0,
1905 L4C_ECC_CALL_NOT_CONNECTED,
1906 L4C_ECC_CALL_CONNECTED
1907} l4c_ecc_connected_status_enum;
1908#endif /* __TC01__ */
1909
1910#if defined(__ECALL_SUPPORT__) || defined(__NG_ECALL_SUPPORT__)
1911typedef enum
1912{
1913 L4C_ECALL_CUSTOMER_URI = 1,
1914 L4C_ECALL_USIM_URI,
1915 L4C_ECALL_CUSTOMER_NUM,
1916 L4C_ECALL_USIM_NUM,
1917} l4c_ecall_num_type_enum;
1918#endif /* __ECALL_SUPPORT__ || __NG_ECALL_SUPPORT__*/
1919typedef enum {
1920 L4C_DISABLE_NONE_ROAMING_MODE = 0x00,
1921 L4C_DISABLE_INTERNATIONAL_ROAMING = 0x01,
1922 L4C_DISABLE_NATIONAL_ROAMING = 0x02,
1923 L4C_DISABLE_HPPLMN_SEARCH = 0x04,
1924 L4C_DISABLE_ALL_ROAMING_MODE = 0x07
1925
1926} l4c_roaming_setting_enum;
1927
1928
1929#endif /* l4c_common_enum.h */