blob: 06797c6c89e303e5cb50214f117bf16fc965bccf [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
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 * rrm_enums.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 *
48 * Author:
49 * -------
50 * -------
51 *
52 *=============================================================================
53 * HISTORY
54 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
55 *------------------------------------------------------------------------------
56 * removed!
57 *
58 * removed!
59 * removed!
60 * removed!
61 *
62 * removed!
63 * removed!
64 * removed!
65 * removed!
66 *
67 * removed!
68 * removed!
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 * removed!
75 *
76 * removed!
77 * removed!
78 * removed!
79 * removed!
80 *
81 * removed!
82 * removed!
83 * removed!
84 *
85 * removed!
86 * removed!
87 * removed!
88 *
89 * removed!
90 * removed!
91 * removed!
92 *
93 * removed!
94 * removed!
95 * removed!
96 *
97 * removed!
98 * removed!
99 * removed!
100 *
101 * removed!
102 * removed!
103 * removed!
104 * removed!
105 *
106 * removed!
107 * removed!
108 * removed!
109 * removed!
110 *
111 * removed!
112 * removed!
113 * removed!
114 * removed!
115 *
116 * removed!
117 * removed!
118 * removed!
119 *
120 * removed!
121 * removed!
122 * removed!
123 *
124 * removed!
125 * removed!
126 * removed!
127 * removed!
128 *
129 * removed!
130 * removed!
131 * removed!
132 *
133 * removed!
134 * removed!
135 * removed!
136 *
137 * removed!
138 * removed!
139 * removed!
140 *
141 * removed!
142 * removed!
143 * removed!
144 *
145 * removed!
146 * removed!
147 * removed!
148 *
149 * removed!
150 * removed!
151 * removed!
152 *
153 * removed!
154 * removed!
155 * removed!
156 *
157 * removed!
158 * removed!
159 * removed!
160 *
161 * removed!
162 * removed!
163 * removed!
164 *
165 * removed!
166 * removed!
167 * removed!
168 *
169 * removed!
170 * removed!
171 * removed!
172 *
173 * removed!
174 * removed!
175 * removed!
176 *
177 * removed!
178 * removed!
179 * removed!
180 *
181 * removed!
182 * removed!
183 * removed!
184 *
185 * removed!
186 * removed!
187 * removed!
188 *
189 * removed!
190 * removed!
191 * removed!
192 *
193 * removed!
194 * removed!
195 * removed!
196 *
197 *------------------------------------------------------------------------------
198 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
199 *=============================================================================
200 ******************************************************************************/
201
202/********************************************************************************
203* Copyright Statement:
204* --------------------
205*
206* This product has been developed using a protocol stack
207* developed by Sasken Communication Technologies Limited.
208*
209********************************************************************************/
210
211#ifndef _RRM_ENUMS_H
212#define _RRM_ENUMS_H
213
214/* new add RMC_TIMER enum */
215typedef enum
216{
217 RMC_T3162_TIMER_EXPIRY = 0,
218 RMC_T3178_TIMER_EXPIRY,
219 RMC_T3186_TIMER_EXPIRY,
220 RMC_T3170_TIMER_EXPIRY,
221 RMC_T3172_TIMER_EXPIRY,
222 RMC_T3174_TIMER_EXPIRY,
223 RMC_T3176_TIMER_EXPIRY,
224 RMC_SERV_CELL_SI_TIMER_EXPIRY,
225 RMC_PSI_SI_TIMER_EXPIRY,
226 /* Austin 040402: attempt to receive all PSI before packet access */
227 RMC_PSI_READING_TIMER_EXPIRY,
228 RMC_RESEL_PROCESS_TIMER_EXPIRY,
229
230 /* Adeline 2008.11.12 */
231#ifndef __GERAN_R5__
232 RMC_ABNOR_RESEL_PROCESS_TIMER_EXPIRY,
233#endif /* __GERAN_R5__ */
234 RMC_OLD_CELL_TIMER_EXPIRY,
235 RMC_MAC_TIMER_EXPIRY,
236 RMC_PENALTY_BASE_TIMER_EXPIRY,
237 RMC_LAST_RESEL_TIMER_EXPIRY,
238 RMC_NON_DRX_TIMER_EXPIRY,
239 RMC_NC_NON_DRX_TIMER_EXPIRY,
240 RMC_MM_NON_DRX_TIMER_EXPIRY,
241 RMC_T3200_TIMER_EXPIRY,
242 RMC_EMO_TIMER_EXPIRY,
243 RMC_T3142_TIMER_EXPIRY,
244 RMC_T3146_TIMER_EXPIRY,
245 RMC_TMA_TIMER_EXPIRY,
246
247#if defined(__UMTS_RAT__) || defined(__LTE_RAT__)
248 RMC_CCO_TIMER_EXPIRY,
249 RMC_WAITTIME_TIMER_EXPIRY,
250 RMC_STANDBY_GSM_EVAL_TIMER_EXPIRY,
251#endif /* defined(__UMTS_RAT__) || defined(__LTE_RAT__) */
252#ifdef __UMTS_RAT__
253 RMC_ACTIVATIOM_TIME_TIMER_EXPIRY,
254#if defined(__PREFER_HIGH_PRIO_3G_IN_23G_MODE__)
255 RMC_WAITTIME_TIMER2_EXPIRY,
256#endif /* __WCDMA_PREFERRED__ || __PREFER_HIGH_PRIO_3G_IN_23G_MODE__ */
257#endif /* __UMTS_RAT__ */
258#if defined(__LTE_RAT__) || defined(__23G_PRI_RESEL_SUPPORT__)
259 RMC_T3230_TIMER_EXPIRY,
260#endif /* defined(__LTE_RAT__) || defined(__23G_PRI_RESEL_SUPPORT__) */
261
262#ifdef __3G_CSG_SUPPORT__
263 RRM_UMTS_CSG_AUTO_SEARCH_TIMER_EXPIRY,
264 RRM_UMTS_CSG_CELL_EVALUATION_TIMER_EXPIRY,
265#endif /* __3G_CSG_SUPPORT__ */
266
267#ifdef __LTE_RAT__
268 RRM_LTE_CSG_AUTO_SEARCH_TIMER_EXPIRY,
269 RRM_LTE_CSG_CELL_EVALUATION_TIMER_EXPIRY,
270#endif /* __LTE_RAT__ */
271
272 /* __AUTH_FAIL_BAR_CELL__ */
273 RRM_BAR_CELL_TIMER_ID,
274
275 /* REDIRECTION */
276#if defined(__GERAN_R6__) || defined (__FDD_REDIRECTION__)
277 RCS_REDIRECTION_LIST_SEARCH_TIMER_ID,
278#endif /* defined(__GERAN_R6__) || defined (__FDD_REDIRECTION__) */
279 RCS_FULL_BAND_SEARCH_SEGMENTATION_TIMER_ID,
280#ifdef __GERAN_R6__
281 RMC_SI2N_TIMER_EXPIRY,
282#endif /* __GERAN_R6__ */
283
284 /* FAST RECOVERY */
285 RRM_FAST_RECOVERY_TIMER_ID,
286
287 /* ================ RMC-CSRR Part =============== */
288 RMC_T3122_TIMER_EXPIRY,
289 RMC_T3126_TIMER_EXPIRY,
290 RMC_REEST_TIMER_EXPIRY,
291
292#ifdef __AGPS_CONTROL_PLANE__
293 RMC_APDU_CHECK_TIMER_EXPIRY,
294#endif /* __AGPS_CONTROL_PLANE__ */
295
296#ifdef __ETWS_SUPPORT__
297 RMC_T3232_TIMER_EXPIRY,
298#endif /* __ETWS_SUPPORT__ */
299
300 /* William :20070619 : Add timer for NACC */
301#ifdef __GERAN_R4__
302 RMC_T3206_EXPIRY,
303 RMC_T3208_EXPIRY,
304 RMC_T3210_EXPIRY,
305 RMC_PSS_TIMER_EXPIRY,
306 RMC_PNCD0_TIMER_EXPIRY,
307 RMC_PNCD1_TIMER_EXPIRY,
308 RMC_PNCD2_TIMER_EXPIRY,
309 RMC_PNCD3_TIMER_EXPIRY,
310 // Chris, nacc_coding
311 RMC_PPS_TIMER_EXPIRY,
312#endif /* __GERAN_R4__ */
313
314#if defined(__LTE_RAT__) || defined(__UMTS_RAT__)
315 /* Event scheduler timer ID for IR barred info. */
316 RMC_IR_BARRED_BASE_TIMER_ID,
317#endif /* defined(__LTE_RAT__) || defined(__UMTS_RAT__) */
318
319#if defined(__LTE_RAT__) || defined(__NR_RAT__)
320/* __4G_BACKGROUND_SEARCH__ || __5G_BACKGROUND_SEARCH__ begin */
321 RMC_BG_SEARCH_RESEL_TIMER_EXPIRY,
322 RMC_BG_SEARCH_AVOID_IR_MEAS_TIMER_EXPIRY,
323/* __4G_BACKGROUND_SEARCH__ || __5G_BACKGROUND_SEARCH__ end */
324#endif /* defined(__LTE_RAT__) || defined(__NR_RAT__) */
325
326#ifdef __LTE_RAT__
327 RMC_T325_TIMER_EXPIRY,
328#endif /* __LTE_RAT__ */
329
330#if defined(__UMTS_RAT__) || defined(__LTE_RAT__)
331 RMC_RAU_PROTECT_TIMER_EXPIRY,
332 RMC_ATP_GUARD_TIMER_EXPIRY,
333#endif
334
335#ifdef __LTE_RAT__
336 RMC_DELAY_HPS_TIMER_EXPIRY,
337#endif
338
339#ifdef __CMCC_23G_PINGPONG_RESTRAIN__
340 RMC_2G3CR_PING_PONG_TIMER_EXPIRY,
341 RMC_VIRTUAL_PING_PONG_TIMER_EXPIRY,
342#endif
343
344/* should add new timer before TDD only timer below */
345#ifdef __2G_PS_REJ_BAR_CELL__
346 RMC_PS_BAR_TIMER_EXPIRY,
347#endif
348#ifdef __2G_CS_REJ_BAR_CELL__
349 RMC_CS_BAR_TIMER_EXPIRY,
350#endif
351
352#if defined(__TC01__) && defined(__MODEM_EM_MODE__)
353 RRM_EM_GAS_SEARCH_INFO_TIMER_ID,
354#endif /*__TC01__ && __MODEM_EM_MODE__*/
355
356 RRM_FAKE_CELL_AUTO_REPORT_TIMER_EXPIRY,
357
358 RMC_PAGING_RETRY_TIMER_EXPIRY,
359 /* Should add new timer before RRM_BASE_TIMER_ID */
360 RRM_ELEVATOR_MODE_TIMER_ID,
361
362 RRM_ELEVATOR_MODE_TIMER_EXPIRY,
363 RRM_MD_ONLY_ELEVATOR_MODE_TIMER_ID,
364 RRM_MD_ONLY_ELEVATOR_MODE_TIMER_EXPIRY,
365 RRM_MD_ONLY_ELEVATOR_MODE_LTE_CAMPING_TIMER_ID,
366 RRM_MD_ONLY_ELEVATOR_MODE_LTE_CAMPING_TIMER_EXPIRY,
367
368#if defined(__NR_RAT__)
369 RRM_MD_ONLY_ELEVATOR_MODE_NR_CAMPING_TIMER_ID,
370 RRM_MD_ONLY_ELEVATOR_MODE_NR_CAMPING_TIMER_EXPIRY,
371#endif
372
373#if defined(__MTK_TARGET__) && defined( __MD97__)
374 RRM_EFUSE_TIMER_ID,
375#endif /* defined(__MTK_TARGET__) && defined( __MD97__) */
376
377#ifdef __NR_RAT__
378 RMC_5G_BG_SEARCH_RESEL_TIMER_EXPIRY,
379#endif /* __NR_RAT__ */
380
381 /* total number of TIMER */
382 RRM_BASE_TIMER_ID
383} rmpc_timer_id_enum;
384
385typedef enum {
386 UMTS_TECH_FDD = 0,
387 UMTS_TECH_TDD = 1
388} umts_tech_enum;
389
390/* the camped on cell type */
391typedef enum
392{
393 RRM_SUITABLE_CELL = 0,
394 RRM_ACCEPTABLE_CELL = 1,
395 RRM_NO_CELL = 2
396} rrm_cell_type_enum;
397
398/* rrm_la_type_enum should match forbidden_la_type_enum */
399typedef enum
400{
401 RRM_FORBID_LA_FOR_REG_PROV_OF_SERV = 0,
402 RRM_FORBID_LA_FOR_ROAMING = 1,
403 RRM_UNKNOWN_LA = 2,
404 RRM_ALLOWED_LA = 3
405/* __ARA_FOR_CELL_SELECTION__ begin */
406 ,RRM_FORBID_LA_FOR_NOT_ARA = 4
407/* __ARA_FOR_CELL_SELECTION__ end */
408} rrm_la_type_enum;
409
410typedef enum
411{
412 PLMN_LEVEL = 0,
413 LA_LEVEL = 1,
414 CELL_LEVEL = 2
415} rrm_match_cell_level_enum;
416
417
418typedef enum
419{
420 RRM_NO_PENDING_ACTION = 0,
421 RRM_RATCM_RF_ON_ACTION = 1,
422 RRM_RATCM_RF_OFF_ACTION = 2,
423 RRM_RATCM_DEACTIVATE_ACTION = 3,
424 RRM_RATCM_PLMN_SEARCH_ACTION = 4,
425 RRM_RATCM_PLMN_LIST_ACTION = 5,
426 RRM_RATCM_PLMN_LIST_STOP_ACTION = 6,
427 RRM_RATCM_PLMN_LIST_AFTER_SEARCH_ACTION = 7,
428 RRM_RATCM_PLMN_LIST_STOP_AFTER_SEARCH_ACTION = 8,
429 RRM_RATCM_REL_SEMA_BEFORE_DEACTIVATE_ACTION = 9, /* __GEMINI__ */
430 RRM_RSVA_FREQ_SCAN_PREEMPT_ACTION = 10, /* for RSVA */
431 RRM_RSVA_PREEMPT_SERVICE_ACTION = 11, /* for RSVA */
432 RRM_RCS_REDIRECTION_LIST_TIMEOUT = 12, /* R5R6 */
433 RRM_RCS_SUSPEND_FULL_BAND_PLMN_SEARCH = 13, /* __FAST_ROAMING_SEARCH__ */
434 RRM_RATCM_GAS_SET_ACTIVE_RAT_ACTION = 14, /* for Fast recovery */
435 RRM_RATCM_CONN_ABORT_ACTION = 15,
436 RRM_RATCM_PLMNLIST_ABORT_ACTION = 16, /*Manually report currently recorded PLMNs*/
437} rrm_pending_action_enum;
438
439typedef enum
440{
441 RRM_WAIT_FOR_SIM_POWER_ON_READY = 0,
442 RRM_SIM_IS_READY = 1,
443 RRM_WAIT_FOR_SIM_READY_IND = 2,
444 RRM_PENDING_SIM_READY_IND = 3
445} rrm_sim_ready_status_enum;
446
447/* ZY: purpose for composing ucell list */
448typedef enum
449{
450 IR_LIST_NBR_CELL_LIST,
451 IR_LIST_NBR_CELL_LIST_PLUS_RESEL_LIST_EXCLUDE_2TER_FOR_IR_MEAS,
452 IR_LIST_NBR_CELL_LIST_PLUS_RESEL_LIST_INCLUDE_2TER_FOR_IR_MEAS,
453 IR_LIST_NBR_CELL_LIST_PLUS_RESEL_LIST_INCLUDE_2TER_FOR_UPDATE_SCSI,
454 IR_LIST_REDIRECTION_LIST /* ZY : R6 redirection */
455} compose_ucell_list_purpose_enum;
456
457#ifdef __BAND_BLOCK__
458/* For LG band block feature */
459
460typedef enum
461{
462 BLOCK_GSM_BAND_850 = 0,
463 BLOCK_GSM_BAND_900 = 1,
464 BLOCK_GSM_BAND_1800 = 2,
465 BLOCK_GSM_BAND_1900 = 3
466} blocked_band_enum;
467
468typedef enum
469{
470 RRM_BARRED_CELL_FOR_BAND_BLOCK,
471 RRM_ACCEPTABLE_CELL_FOR_BAND_BLOCK,
472 RRM_SUITABLE_CELL_FOR_BAND_BLOCK
473} rrm_cell_type_for_band_block_enum;
474
475typedef enum
476{
477 RRM_BAND_BLOCK_INVALID = 0,
478 RRM_BAND_BLOCK_SPECIFIC_MNC = 1,
479 RRM_BAND_BLOCK_ALL_MNC_IN_SPECIFIC_MCC = 2,
480 RRM_BAND_BLOCK_ALL_MCC = 3
481} rrm_band_block_type_enum;
482
483#endif /* __BAND_BLOCK__ */
484
485typedef enum
486{
487 BG_PLMN_LIST_NULL_STATE = 0,
488 BG_PLMN_LIST_POWER_SCAN_STATE = 1,
489 BG_PLMN_LIST_BEGIN_SEARCH_STATE = 2,
490 BG_PLMN_LIST_NBR_BURST_ACCESS_STATE = 3,
491 BG_PLMN_LIST_SYNC_FIRST_CELL_BSIC_STATE = 4,
492 BG_PLMN_LIST_BURST_ACCESS_STATE = 5,
493 BG_PLMN_LIST_REACH_LAST_ARFCN_STATE = 6,
494 BG_PLMN_LIST_SUSPEND_STATE = 7,
495 BG_PLMN_LIST_PENDING_TO_WAIT_MSG_STATE = 8 /* for RSVA */
496} rcs_bg_plmn_list_state_enum;
497
498typedef enum
499{
500 RCS_UNKNOWN_FREQ = 0,
501 RCS_JUST_GET_BSIC = 1,
502 RCS_WAIT_SI3 = 2,
503 RCS_INVALID_CELL = 3,
504 RCS_BARRED_CELL = 4,
505 RCS_LOW_PRIO_CELL = 5,
506 RCS_NORM_PRIO_CELL = 6,
507 RCS_EXCEED_BAND_LIMIT_CELL = 7
508} rcs_arfcn_type_enum;
509
510typedef enum
511{
512 RCS_UNKNOWN = 0,
513 RCS_LOW_QUALITY = 1,
514 RCS_HIGH_QUALITY = 2
515} rcs_plmn_quality_enum;
516
517typedef enum
518{
519 RCS_NO_POWER_SCAN = 0,
520 RCS_STORED_LIST_POWER_SCAN = 1,
521 RCS_FULL_BAND_POWER_SCAN = 2,
522 RCS_WORKING_BAND_POWER_SCAN = 3,
523 RCS_BG_FULL_BAND_POWER_SCAN = 4,
524 RCS_CGI_REPORTING_POWER_SCAN = 5
525} rcs_power_scan_mode_enum;
526
527typedef enum
528{
529 RCS_MODE_NULL = 0,
530 RCS_MODE_I_SEQ_ACCESS_MODE = 1,
531 RCS_MODE_II_BURST_ACCESS_MODE = 2,
532 RCS_MODE_III_BG_BURST_ACCESS_MODE = 3,
533 RCS_MODE_IV_BG_NBR_BURST_ACCESS_MODE = 4,
534 RCS_MODE_V_CAMP_ORIG_CELL_MODE = 5 /* __FAST_RESUME__ */
535} rcs_cell_sel_mode_enum;
536
537typedef enum
538{
539 ANY_PRIORITY_CELL = 0,
540 HIGH_PRIORITY_CELL = 1,
541 LOW_PRIORITY_CELL = 2
542} rcs_cell_priority_enum;
543
544typedef enum
545{
546 /* the PLMN index less than RCS_MAX_PLMN_INDEX is a valid value */
547 RCS_MAX_PLMN_INDEX = MAX_NUM_PLMN_PER_RAT,
548 RCS_INVALID_PLMN_INDEX = 0xfe,
549 RCS_PLMN_UNKNOWN_INDEX = 0xff
550} rcs_plmn_index_enum;
551
552typedef enum
553{
554 RCS_TRIG_NULL = 0,
555 RCS_TRIG_BY_RATCM_PLMN_SEARCH = 1,
556 RCS_TRIG_BY_RATCM_PLMN_LIST = 2, /* Refer to PLMN list trig source */
557 /* cell reselection failure triggers cell selection */
558 RCS_TRIG_BY_CELL_RESEL_FAIL = 3,
559 RCS_TRIG_BY_PLMN_LIST_AND_CELL_RESEL_FAIL = 4,
560 /* redirection: 3G->2G, or 4G->2G, ..., etc. */
561 RCS_TRIG_BY_IR_REDIRECTION = 5,
562 RCS_TRIG_BY_PLMN_LIST_AND_IR_REDIRECTION = 6,
563 /* redirection 2G->2G */
564 RCS_TRIG_BY_2G_REDIRECTION = 7,
565 RCS_TRIG_BY_PLMN_LIST_AND_2G_REDIRECTION = 8,
566 /* fast recovery */
567 RCS_TRIG_BY_FAST_RECOVERY_TIMER_EXPIRED = 9
568} rcs_trig_source_enum;
569
570typedef enum
571{
572 RCS_PLMN_LIST_TRIG_NULL = 0x00,
573 RCS_PLMN_LIST_TRIG_BY_NAS = 0x01, /* User PLMN list or MM list*/
574 RCS_PLMN_LIST_TRIG_BY_AS = 0x02, /* CSG fingerprint collection */
575 RCS_PLMN_LIST_TRIG_BY_NAS_AND_AS = 0x03
576} rcs_plmn_list_trig_source_enum;
577
578#ifdef __GEMINI__
579typedef enum
580{
581 /* after resuming, RRM(RCS) should ... */
582 RCS_QUEUE_NULL_EVENT = 0, /* do nothing */
583 RCS_QUEUE_PLMN_SEARCH_EVENT = 1, /* do PLMN search in cell selection state */
584 RCS_QUEUE_FG_PLMN_LIST_EVENT = 2, /* do PLMN list in cell seleciton state */
585 RCS_QUEUE_BG_PLMN_LIST_EVENT = 3 /* do PLMN list in inactive state */
586} rcs_queued_plmn_event_enum;
587
588/* __GEMINI_IMPROVE__ */
589typedef enum
590{
591 RCS_SHARE_NO_SHARING = 0x0000,
592 RCS_SHARE_USING_PEER_SIM1_RESULT = 0x0001, /* the bit map of sharing SIM1 result, i.e., 0x 0000 0000 0000 0001 */
593 RCS_SHARE_USING_PEER_SIM2_RESULT = 0x0002, /* the bit map of sharing SIM2 result, i.e., 0x 0000 0000 0000 0010 */
594 RCS_SHARE_USING_PEER_SIM3_RESULT = 0x0004, /* the bit map of sharing SIM3 result, i.e., 0x 0000 0000 0000 0100 */
595 RCS_SHARE_USING_PEER_SIM4_RESULT = 0x0008, /* the bit map of sharing SIM4 result, i.e., 0x 0000 0000 0000 1000 */
596 RCS_SHARE_WILL_SHARE_TO_PEER = 0x8000 /* the bit map for sharing to peer, i.e., 0x 1000 0000 0000 0000 */
597} rcs_share_scan_status_enum;
598
599#ifdef __UMTS_RAT__
600typedef enum
601{
602 RCS_CELL_SRCH_NULL = 0, /* there is no RCS procedure shall process */
603 RCS_CELL_SRCH_REQUESTING = 1, /* some RCS procedure shall process, asking RSVA for reserv resource */
604 RCS_CELL_SRCH_WAITING = 2, /* the RCS procedure can't process, it must wait the L1 resource */
605 RCS_CELL_SRCH_RUNNING = 3, /* the RCS procedure is processing */
606 RCS_CELL_SRCH_STOPPING = 4 /* the RCS procedure is stopping for release the L1 resource */
607} rcs_rsva_cell_srch_status_enum;
608#endif /* __UMTS_RAT__ */
609
610#endif /* __GEMINI__ */
611
612typedef enum
613{
614 RCS_WAIT_NULL = 0,
615 RCS_WAIT_SET_RAT_SERVICE_CNF = 1, /* for DEACTIVATE_REQ and PLMN_List_stop action !!! */
616 RCS_WAIT_CELL_SELECTION_INIT_CNF = 2,
617 RCS_WAIT_SEARCH_RF_CNF = 3, /* pending to wait SEARCH_RF_CNF */
618 RCS_WAIT_BSIC_SYNC_CNF = 4, /* pending to wait BSIC_SYNC_CNF */
619
620/* for RSVA */
621 RCS_WAIT_FS_START_CNF = 5, /* pending to wait FREQ_SCAN_START_CNF */
622 RCS_WAIT_FS_ACCEPT_IND = 6, /* pending to wait FREQ_SCAN_ACCEPT_IND */
623
624 RCS_WAIT_OTHERS = 7 /* reserve for feature use */
625} rcs_wait_cnf_type_enum;
626
627typedef enum
628{
629 RCS_PLMN_LIST_NONE = 0,
630 RCS_PLMN_LIST_STORED = 1,
631 RCS_PLMN_LIST_NORMAL = 2
632} rcs_list_type_enum;
633
634typedef enum
635{
636 RCS_FULL_BAND_SCAN_INVALID,
637 RCS_FULL_BAND_SCAN_IN_PROGRESS,
638 RCS_FULL_BAND_SCAN_SUSPENDED,
639 RCS_FULL_BAND_SCAN_FINISHED,
640} rcs_full_band_scan_status_enum;
641
642typedef enum
643{
644 APP_UPLINK_SENDING_NOT_ALLOWED = 0, /* initial value or RR connection is released */
645 APP_UPLINK_SENDING_ALLOWED = 1, /* when receiving first DL app data */
646 APP_UPLINK_SENDING_SUSPEND = 2 /* when receiving RR manage. mesg */
647} app_uplink_sending_status_enum;
648
649typedef enum
650{
651 GSM_MODE,
652 GPRS_CCCH_MODE,
653 GPRS_PMO_CCCH_MODE,
654 GPRS_PCCCH_MODE
655} meas_mode_enum;
656
657typedef enum
658{
659 GPRS_NC_MEAS,
660 GPRS_EXT_MEAS,
661 GPRS_ENH_MEAS
662} meas_type_enum;
663
664typedef enum
665{
666 ENH_MR,
667 NORMAL_MR
668} meas_rp_enum;
669
670#define _ENH_PARAMS_SRC_ENUM
671typedef enum
672{
673 SRC_INVALID,
674 SRC_SI,
675 SRC_MI,
676 SRC_PSI,
677 SRC_PMO,
678 SRC_DEFAULT
679} enh_params_src_enum;
680
681typedef enum
682{
683 LAYER_DEFAULT,
684 LAYER_BROADCAST,
685 LAYER_INDIVIDUAL
686} meas_params_layer_enum;
687
688typedef enum
689{
690 CS_CONTEXT = 0,
691 PS_CONTEXT,
692 CS_AND_PS_CONTEXT
693} DES_CONTEXT; /* destination context */
694
695typedef enum NC_MODE
696{
697 NC0 = 0,
698 NC1,
699 NC2,
700 NC_RESET,
701
702 /* StanleyHY: the initial value of SI2Q (only used by SI2Q) */
703 NC_NULL
704} NC_MODE;
705
706typedef enum NC_PARAM_SRC
707{
708 NC_DAFAULT_VALUE = 0,
709 NC_SI2Q,
710 NC_SI13,
711 NC_PSI5,
712 NC_PMO_PCCO
713} NC_PARAM_SRC;
714
715typedef enum EM_MODE
716{
717 EM0 = 0,
718 EM1,
719 EM_RESERV,
720 EM_RESET
721} EM_MODE;
722
723typedef enum BSIC_MODE /* 03-29-2003, add */
724{
725 PRIORITY_MODE = 0,
726 REASSERT_MODE,
727 SECOND_PRIORITY_MODE
728} BSIC_MODE;
729
730typedef enum
731{
732 SORT_PURPOSE_BSIC_GENERAL = 0,
733 SORT_PURPOSE_MEAS_REP,
734 SORT_PURPOSE_ENH_MEAS_REP,
735 SORT_PURPOSE_BSIC_DEDI_RECONFIRM
736 /*QJZH:[D][2010.05.22] redundant code*/
737 //SORT_PURPOSE_ATTEMP_COUNTER
738} SORT_PURPOSE;
739
740typedef enum RMC_INDIV_PARA_SRC
741{
742 RMC_INDIV_PARA_SRC_PMO,
743 RMC_INDIV_PARA_SRC_PCCO
744} RMC_INDIV_PARA_SRC;
745
746typedef enum INDIV_PARA_HDL_STATUS
747{
748 INDIV_PARA_HDL_NOT_DECODE = 0,
749 INDIV_PARA_HDL_NOT_APPLIED,
750 INDIV_PARA_HDL_PARTIAL_APPLIED_WO_SI2T,
751 INDIV_PARA_HDL_PARTIAL_APPLIED_WITH_SI2T,
752 INDIV_PARA_HDL_ALL_APPLIED
753} INDIV_PARA_HDL_STATUS;
754
755typedef enum RMPC_MEAS_TRANS_ID
756{
757 RMPC_TRANSACTION_ID_0 = 0,
758 RMPC_TRANSACTION_ID_1
759} RMPC_MEAS_TRANS_ID;
760
761typedef enum EXT_REPORTING_TYPE
762{
763 EXT_REPORTING_TYPE1 = 0,
764 EXT_REPORTING_TYPE2,
765 EXT_REPORTING_TYPE3,
766 EXT_REPORTING_TYPE_RESERV
767} EXT_REPORTING_TYPE;
768
769typedef enum RMPC_IS_HOPPING
770{
771 RMPC_NOT_HOPPING = 0,
772 RMPC_HOPPING
773} RMPC_IS_HOPPING;
774
775typedef enum BA_UPDATE_TYPE
776{
777 RESEL_START,
778 RESEL_END,
779 NORM_BA_UPDATE
780} BA_UPDATE_TYPE;
781
782typedef enum
783{
784 UMTS_PARA_FROM_SI2T = 0,
785 UMTS_PARA_FROM_SI2Q = 1,
786 UMTS_PARA_FROM_PSI3Q = 2,
787 UMTS_PARA_FROM_PSI5 = 3,
788 UMTS_PARA_FROM_MI = 4,
789 UMTS_PARA_FROM_PMO = 5,
790 UMTS_PARA_FROM_PCCO = 6
791} umts_para_src_enum;
792
793#if defined(__LTE_RAT__) || defined(__23G_PRI_RESEL_SUPPORT__)
794typedef enum
795{
796 PRIO_COMPARISON_INVALID,
797 PRIO_COMPARISON_LOWER,
798 PRIO_COMPARISON_HIGHER
799} prio_comparison_enum;
800
801#endif /* defined(__LTE_RAT__) || defined(__23G_PRI_RESEL_SUPPORT__) */
802
803typedef enum
804{
805 EMR_CAUSE_NULL,
806 EMR_CAUSE_NO_BSIC_INFO,
807 EMR_CAUSE_BSIC_INFO_NOT_COMPLETE,
808 EMR_CAUSE_BA_NOT_FULL,
809 EMR_CAUSE_BA_IND_NOT_MATCH
810} emr_not_allow_cause_enum;
811
812typedef enum NBR_RESET_CAUSE
813{
814 BSIC_CHANGE,
815 BSIC_DECODE_FAILURE,
816 BSIC_EXCEEDING_ATTEMPT_COUNTER,
817 NBCCH_DECODE_FAILURE
818} NBR_RESET_CAUSE;
819
820typedef enum
821{
822 NCELL_SRC_INVALID,
823 NCELL_SRC_SI2, /* SEL_PARAM: 0 */
824 NCELL_SRC_SI5, /* SEL_PARAM: 0 */
825 NCELL_SRC_SI2N, /* SEL_PARAM: 1 */
826 NCELL_SRC_PSI, /* SEL_PARAM: 1 */
827 NCELL_SRC_PMO_PCCO /* SEL_PARAM: 1 */
828} NCELL_PARAM_SRC;
829
830#if defined(__GAS_INTERNAL_IT__) || (defined(__MODEM_EM_MODE__) && defined(__CHANNEL_LOCK__))
831typedef enum
832{
833 RR_REDIRECTION_OFF,
834 RR_REDIRECTION_GSM,
835 RR_REDIRECTION_FDD,
836 RR_REDIRECTION_TDD, /* TDD current is not supported */
837 RR_REDIRECTION_LTE
838} redirection_it_test_enum;
839
840typedef enum
841{
842 RR_CCO_OFF = 0,
843 RR_CCO_GSM_WITH_IM_REL = 1,
844 RR_CCO_GSM_WO_IM_REL = 2,
845 RR_CCO_FDD_WITH_IM_REL = 3,
846 RR_CCO_FDD_WO_IM_REL = 4,
847 RR_CCO_TDD_WITH_IM_REL = 5, /* TDD current is not supported */
848 RR_CCO_TDD_WO_IM_REL = 6, /* TDD current is not supported */
849 RR_CCO_LTE_WITH_IM_REL = 7,
850 RR_CCO_LTE_WO_IM_REL = 8
851} cco_it_test_enum;
852#endif /* defined(__GAS_INTERNAL_IT__) || (defined(__MODEM_EM_MODE__) && defined(__CHANNEL_LOCK__)) */
853
854typedef enum
855{
856 REPORT_TYPE_VALID_BSIC_GSM_CELL
857 , REPORT_TYPE_INVALID_BSIC_GSM_CELL
858#ifdef __UMTS_RAT__
859 , REPORT_TYPE_UMTS_CELL
860 , REPORT_TYPE_UMTS_FREQ
861#endif /* __UMTS_RAT__ */
862#ifdef __LTE_RAT__
863 , REPORT_TYPE_LTE_CELL
864#endif /* __LTE_RAT__ */
865} report_candidate_type_enum;
866
867typedef enum
868{
869 MEAS_REPORT_INFO_TYPE_INVALID
870 , MEAS_REPORT_INFO_TYPE_MR
871 , MEAS_REPORT_INFO_TYPE_EMR
872#ifdef __PS_SERVICE__
873 , MEAS_REPORT_INFO_TYPE_PMR
874 , MEAS_REPORT_INFO_TYPE_PEMR
875 , MEAS_REPORT_INFO_TYPE_PCCN
876#endif /* __PS_SERVICE__ */
877} meas_report_info_type_enum;
878
879typedef enum
880{
881 PCCN_TARGET_CELL_INVALID
882 , PCCN_GSM_TARGET_CELL
883#ifdef __UMTS_RAT__
884 , PCCN_UMTS_NORMAL_TARGET_CELL
885#endif /* __UMTS_RAT__ */
886#ifdef __LTE_RAT__
887 , PCCN_LTE_NORMAL_TARGET_CELL
888#endif /* __LTE_RAT__ */
889} pccn_target_cell_type_enum;
890
891#if 0
892/* under construction !*/
893/* under construction !*/
894/* under construction !*/
895/* under construction !*/
896/* under construction !*/
897/* under construction !*/
898/* under construction !*/
899/* under construction !*/
900/* under construction !*/
901/* under construction !*/
902/* under construction !*/
903#endif /* 0 */
904
905typedef enum
906{
907 RMC_TBF_UPLINK_ASSIGN,
908 RMC_TBF_DOWNLINK_ASSIGN
909}
910rmc_assign_type;
911
912typedef enum
913{
914 RMC_INVALID_CHANNEL,
915 RMC_FIRST_HR_CHANNEL,
916 RMC_SEC_HR_CHANNEL
917}
918rmc_partial_rel_chan_enum;
919
920typedef enum
921{
922 CS_CONN_NONE,
923 CS_CONN_L2_REL_IND,
924 CS_CONN_RR_REL_REQ,
925 CS_CONN_T3110_EXP,
926 CS_CONN_L2_ERROR_REEST,
927 CS_CONN_NW_REL,
928 /* ZY, revise RR rel/abort scheme in access state */
929 CS_CONN_ABORT_REQ,
930 /* Adeline 2009.4.24: for PCCO procedure */
931 T3174_TIMER_EXPIRY,
932 CCO_TIMER_EXPIRY,
933 DEACTIVATE_REQ,
934 PLMN_SEARCH_REQ,
935 PEER_AS_ABORT_REQ
936} cs_conn_disc_cause_enum;
937
938#if defined(__CS_SERVICE__) && defined(__PS_SERVICE__)
939typedef enum
940{
941 RMC_EMERGENCY_CALL = 0,
942 RMC_MO_CALL = 0,
943 RMC_CALL_RE_ESTABLISHMENT = 0,
944 RMC_LOCATION_AREA_UPDATE,
945 RMC_MO_SMS,
946 RMC_OTHER_PROCEDURE_ON_SDCCH,
947 RMC_MO_VOICE_BROADCAST_OR_GROUP_CALL,
948 RMC_MT_CS_CONNECTION,
949 RMC_DTM_NO_SUPPORTED
950} gprs_suspension_cause_enum;
951#endif /* defined(__CS_SERVICE__) && defined(__PS_SERVICE__) */
952
953typedef enum
954{
955 RMC_DL,
956 RMC_BI
957}
958DIRECTION;
959
960typedef enum
961{
962 S_RMC_CIPHERING_OFF = 0,
963 S_RMC_CIPHER_ALGO_5_1,
964 S_RMC_CIPHER_ALGO_5_2,
965 S_RMC_CIPHER_ALGO_5_3,
966 S_RMC_CIPHER_ALGO_5_4,
967 S_RMC_CIPHER_ALGO_5_5,
968 S_RMC_CIPHER_ALGO_5_6,
969 S_RMC_CIPHER_ALGO_5_7
970}
971CIPHER_ALGO_TYPE;
972
973typedef enum
974{
975 RMC_NOT_CIPHERED_MODE = 0,
976 RMC_CIPHERED_MODE
977}
978MS_CIPHER_MODE_ENUM;
979
980/* Use channel_mode_enum in mpal_common_interface.h */
981#if 0 /* Claire del */
982/* under construction !*/
983/* under construction !*/
984/* under construction !*/
985/* under construction !*/
986/* under construction !*/
987/* under construction !*/
988/* under construction !*/
989/* under construction !*/
990/* under construction !*/
991/* under construction !*/
992/* under construction !*/
993/* under construction !*/
994/* under construction !*/
995/* under construction !*/
996/* under construction !*/
997/* under construction !*/
998/* under construction !*/
999/* under construction !*/
1000/* under construction !*/
1001/* under construction !*/
1002/* under construction !*/
1003#endif /* 0 */
1004
1005typedef enum
1006{
1007 RMC_FIRST_CHANNEL,
1008 RMC_SECOND_CHANNEL,
1009 RMC_BOTH_CHANNELS
1010}
1011CHAN_NUMBER_ENUM;
1012
1013/* End Claire add */
1014
1015#if 0
1016/* under construction !*/
1017/* under construction !*/
1018/* under construction !*/
1019/* under construction !*/
1020/* under construction !*/
1021/* under construction !*/
1022/* under construction !*/
1023/* under construction !*/
1024/* under construction !*/
1025/* under construction !*/
1026/* under construction !*/
1027/* under construction !*/
1028/* under construction !*/
1029/* under construction !*/
1030/* under construction !*/
1031/* under construction !*/
1032/* under construction !*/
1033#ifndef __GERAN_R5__
1034/* under construction !*/
1035#endif /* __GERAN_R5__ */
1036/* under construction !*/
1037/* under construction !*/
1038/* under construction !*/
1039/* under construction !*/
1040/* under construction !*/
1041/* under construction !*/
1042/* under construction !*/
1043/* under construction !*/
1044/* under construction !*/
1045/* under construction !*/
1046/* under construction !*/
1047/* under construction !*/
1048/* under construction !*/
1049#ifdef __UMTS_RAT__
1050/* under construction !*/
1051/* under construction !*/
1052/* under construction !*/
1053/* under construction !*/
1054#ifdef __23G_PRI_RESEL_SUPPORT__
1055/* under construction !*/
1056#endif /* __23G_PRI_RESEL_SUPPORT__ */
1057/* under construction !*/
1058#endif /* __UMTS_RAT__ */
1059/* under construction !*/
1060#ifdef __3G_CSG_SUPPORT__
1061/* under construction !*/
1062/* under construction !*/
1063#endif /* __3G_CSG_SUPPORT__ */
1064/* under construction !*/
1065/* under construction !*/
1066/* under construction !*/
1067/* under construction !*/
1068/* under construction !*/
1069#ifdef __GERAN_R6__
1070/* under construction !*/
1071/* under construction !*/
1072#endif /* __GERAN_R6__ */
1073/* under construction !*/
1074/* under construction !*/
1075/* under construction !*/
1076/* under construction !*/
1077/* under construction !*/
1078/* under construction !*/
1079/* under construction !*/
1080/* under construction !*/
1081/* under construction !*/
1082#ifdef __AGPS_CONTROL_PLANE__
1083/* under construction !*/
1084#endif /* __AGPS_CONTROL_PLANE__ */
1085/* under construction !*/
1086#ifdef __ETWS_SUPPORT__
1087/* under construction !*/
1088#endif /* __ETWS_SUPPORT__ */
1089/* under construction !*/
1090/* under construction !*/
1091#ifdef __GERAN_R4__
1092/* under construction !*/
1093/* under construction !*/
1094/* under construction !*/
1095/* under construction !*/
1096/* under construction !*/
1097/* under construction !*/
1098/* under construction !*/
1099/* under construction !*/
1100/* under construction !*/
1101/* under construction !*/
1102#endif /* __GERAN_R4__ */
1103/* under construction !*/
1104/* under construction !*/
1105/* under construction !*/
1106/* under construction !*/
1107/* under construction !*/
1108#endif
1109
1110/* Adeline 2008.12.30 */
1111typedef enum
1112{
1113 CC_NULL,
1114 CC_NORMAL_BEGIN = CC_NULL,
1115 CC_NORMAL_C1_BASED,
1116 CC_NORMAL_C2_BASED,
1117 CC_NORMAL_C32_BASED,
1118 CC_NORMAL_RLC_TRIGGER,
1119 CC_NORMAL_END,
1120 CC_ABNORMAL_BEGIN = CC_NORMAL_END,
1121 CC_ABNORMAL_DSF_TRIGGER,
1122 CC_ABNORMAL_CBA_TRIGGER,
1123 CC_ABNORMAL_SI_TRIGGER,
1124 CC_ABNORMAL__T3126_TRIGGER,
1125 CC_ABNORMAL_RLC_TRIGGER,
1126 CC_ABNORMAL_END,
1127 CC_NW_CTRL_BEGIN = CC_ABNORMAL_END,
1128 CC_NW_CTRL_PCCO,
1129 CC_NW_CTRL_PS_HO,
1130 CC_NW_CTRL_END,
1131 CC_CALL_RE_EST_TRIGGER
1132 /* ZY : R6 redirection */
1133#if defined(__FDD_REDIRECTION__) || defined(__UMTS_R6__)
1134 , CC_NW_CTRL_REDIRECTION
1135#endif /* defined(__FDD_REDIRECTION__) || defined(__UMTS_R6__) */
1136#if defined(__UMTS_RAT__)&& defined(__CMCC_STD_FR__)
1137 ,CC_NW_CTRL_STD_FR
1138#endif
1139#ifdef __LTE_RAT__
1140 , CC_MS_CTRL_LTE_AUTO_FAST_RETURN
1141 , CC_NW_CTRL_REDIRECTION_AFTER_CSFB
1142 , CC_MS_CTRL_LTE_BG_SRCH
1143 , CC_IR_HSR_CR
1144#endif /* __LTE_RAT__ */
1145#if defined(__UMTS_RAT__) && defined(__TC7__CS__SUPPORT__)
1146 , CC_MS_CTRL_UMTS_FAST_RETURN
1147#endif
1148#ifdef __NR_RAT__
1149 , CC_MS_CTRL_NR_BG_SRCH
1150 , CC_MS_CTRL_NR_AUTO_FAST_RETURN
1151#endif /* __NR_RAT__ */
1152
1153} CELL_CHANGE_TYPE_ENUM;
1154
1155typedef enum
1156{
1157 CELL_CHANGE_NULL_PHASE = 0,
1158 CELL_CHANGE_SERV_BSIC_REQ_PHASE,
1159 CELL_CHANGE_ABORTING_PHASE,
1160 CELL_CHANGE_NEIGHBOUR_BSIC_REQ_PHASE,
1161 CELL_CHANGE_NEIGHBOUR_SI_COLLECTION_PHASE,
1162 /* for PCCO only */
1163 CELL_CHANGE_SERV_SI_COLLECTION_PHASE,
1164 CELL_CHANGE_WAIT_FOR_CONTENTION_PHASE
1165} CELL_CHANGE_PHASE_ENUM;
1166
1167#if 0
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/* under construction !*/
1353/* under construction !*/
1354/* under construction !*/
1355/* under construction !*/
1356/* under construction !*/
1357/* under construction !*/
1358/* under construction !*/
1359/* under construction !*/
1360/* under construction !*/
1361/* under construction !*/
1362/* under construction !*/
1363/* under construction !*/
1364/* under construction !*/
1365/* under construction !*/
1366/* under construction !*/
1367/* under construction !*/
1368/* under construction !*/
1369/* under construction !*/
1370/* under construction !*/
1371/* under construction !*/
1372/* under construction !*/
1373/* under construction !*/
1374/* under construction !*/
1375/* under construction !*/
1376#endif
1377
1378#ifdef __CB__
1379
1380/* 040116 , we need to isolate the enum value from
1381 RR to MPAL for bug fix: error memory write ( CB data
1382 for CBCH_MODE_NORMAL and CBCH_MODE_EXTENDED */
1383enum
1384{
1385 CBCH_MODE_NORMAL = 0,
1386 CBCH_MODE_EXTENDED,
1387 CBCH_MODE_INVALID
1388}; /* CBCh mode */
1389
1390enum
1391{
1392 CBCH_MODE_INVALID_TO_MPAL = 0,
1393 CBCH_MODE_NORMAL_TO_MPAL,
1394 CBCH_MODE_EXTENDED_TO_MPAL
1395}; /* CBCh mode */
1396
1397enum
1398{
1399 CBCH_START = 0,
1400 CBCH_STOP
1401}; /* The definition of cb action */
1402
1403enum
1404{
1405 CBCH_ACCEPT = 0,
1406 CBCH_IGNORE
1407};
1408
1409enum
1410{
1411 CB_STATE_OFF = 0,
1412 CB_STATE_ON
1413}; /* The definition of cbchState */
1414
1415enum
1416{
1417 CB_NO_DRX_MODE = 0,
1418 CB_DRX_MODE,
1419 /* Peter:[CB] The following two enum is not used ?? */
1420 CB_FIRST_DRX_MODE,
1421 CB_SECOND_DRX_MODE
1422}; /* The definition of scheduleMode */
1423
1424enum
1425{
1426 CB_1CB = 0,
1427 CB_2B,
1428 CB_3B,
1429 CB_4B,
1430 CB_1SB = 8,
1431 CB_NB = 15
1432}; /* The definition of sequence number coding */
1433
1434enum
1435{
1436 CB_CB_MESSAGE = 0,
1437 CB_SCHEDULE_MESSAGE
1438}; /* CBS Message Type1 */
1439
1440enum
1441{
1442 CB_DWNLD = 0,
1443 CB_DISPLAY
1444}; /* CBS Message Type2 */
1445
1446/* Byron: 2005/12/14: For schedule CB message handling */
1447typedef enum
1448{
1449 CB_NO_SCB_RECEIVED = 0,
1450 CB_FIRST_SCB_RECEIVED,
1451 CB_SCB_CAN_BE_USED
1452} scb_enum; /* CBS Message Type2 */
1453
1454#endif /* __CB__ */
1455
1456/* ZY: add for AMR-WB */
1457typedef enum
1458{
1459 AMR_NON = 0, /* for non-AMR channel mode */
1460 AMR_NB /* for AMR narrow band channel mode */
1461#ifdef __AMRWB_LINK_SUPPORT__
1462 , AMR_WB /* for AMR wide band channel mode */
1463#endif
1464} channel_mode_status_enum; /* it is used for checking multirate configuration */
1465
1466/* ZY : R6 redirection */
1467#if defined(__GERAN_R6__) || defined(__UMTS_R6__) || defined (__FDD_REDIRECTION__) || defined(__LTE_RAT__)
1468typedef enum
1469{
1470 REDIRECT_TO_GSM = 0,
1471 REDIRECT_TO_UTRAN_FDD = 1,
1472 REDIRECT_TO_UTRAN_TDD = 2,
1473 REDIRECT_TO_LTE = 3
1474} redirection_enum;
1475#endif /* defined(__GERAN_R6__) || defined(__UMTS_R6__) || defined (__FDD_REDIRECTION__) || defined(__LTE_RAT__) */
1476
1477typedef enum
1478{
1479 IMM_ASGN_VALID_SUCCESS,
1480 IMM_ASGN_VALID_FAIL,
1481 IMM_ASGN_VALID_IGNORE
1482} imm_asgn_valid_enum;
1483
1484/* ACS refactoring: trace with enum */
1485typedef enum
1486{
1487 /* Ignore Message */
1488 ACS_IGNORE_MSG_FOR_SUBSTATE_NOT_MATCH,
1489 ACS_IGNORE_IA_FOR_TBF_DEDI_NOT_MATCH,
1490 ACS_IGNORE_IA_FOR_ALLOC_TYPE_NOT_MATCH,
1491 ACS_IGNORE_IA_FOR_MEAS_MODE_NOT_MATCH,
1492 ACS_IGNORE_IA_FOR_REQ_REF_NOT_MATCH,
1493 ACS_IGNORE_IA_FOR_EXT_RA_NOT_MATCH,
1494 ACS_IGNORE_IA_FOR_PKT_CHANNEL_DESC_NOT_VALID,
1495 ACS_IGNORE_IA_FOR_MA_NOT_VALID,
1496 ACS_IGNORE_IA_FOR_1ST_TMA_NOT_VALID,
1497 ACS_IGNORE_IA_FOR_2ND_TMA_NOT_VALID,
1498 ACS_IGNORE_IA_FOR_FREQ_PARM_NOT_VALID,
1499 ACS_IGNORE_IA_FOR_ESSENTIAL_SI_ACQUIRING,
1500 ACS_IGNORE_PAR_FOR_PUAS_RECEIVED,
1501 ACS_IGNORE_PUAS_FOR_PERSISTANCE_LEVEL_NOT_VALID,
1502 ACS_IGNORE_PUAS_FOR_MSG_LEN_NOT_VALID,
1503
1504 /* Abort Access Proc */
1505 ACS_ABORT_ACS_PROC_FOR_FREQUENCY_NOT_VALID,
1506
1507 /* Deny Access Request */
1508 ACS_DENY_ACS_REQ_FOR_WAIT_IND_TIMER_IS_RUNNING,
1509 ACS_DENY_ACS_REQ_FOR_RP_OR_CTRL_CLASS_NOT_ALLOW,
1510
1511 /* Error */
1512 ACS_ERROR_RACH_MAX_RETRANS,
1513
1514 /* Other Info */
1515 ACS_CMP_EXT_RA_MATCH,
1516 ACS_CMP_EXT_RA_NOT_MATCH,
1517 ACS_STORE_1ST_TMA,
1518 ACS_RECEIVE_DL_IA,
1519 ACS_RECEIVE_EGPRS_PUAS
1520} acs_trace_cause_enum;
1521
1522#ifdef __ETWS_SUPPORT__
1523typedef enum
1524{
1525 ETWS_EARTHQUAKE = 0,
1526 ETWS_TSUNAMI = 1,
1527 ETWS_BOTH = 2,
1528 ETWS_TEST = 3,
1529 ETWS_OTHERS = 4,
1530 ETWS_RESERVED
1531} warning_type_enum;
1532
1533typedef enum
1534{
1535 ETWS_STOP = 0,
1536 ETWS_START
1537} etws_recv_status_enum;
1538
1539#endif /* __ETWS_SUPPORT__ */
1540
1541typedef enum
1542{
1543 RMC_NORMAL_MEASUREMENT,
1544 RMC_EXT_MEASUREMENT
1545}
1546rmc_measurement_type;
1547
1548typedef enum
1549{
1550 RMC_RR_NORMAL_EVENT,
1551 RMC_ABNORM_REL_UNSPECIFIED,
1552 RMC_ABNORM_REL_CHL_UNACCEPTABLE,
1553 RMC_ABNORM_REL_TIMER_EXPIRED,
1554 RMC_ABNORM_REL_NO_ACTIVITY_ON_RADIO_PATH,
1555 RMC_PREEMPTVE_REL,
1556 RMC_UTRAN_PRECONF_UNKNOWN,
1557 RMC_HO_IMPOS_TIM_ADV_OUT_OF_RANGE = 0x08,
1558 RMC_CH_MODE_UNACCEP,
1559 RMC_FREQ_NOT_IMPLEMENTED,
1560 RMC_LOWER_LAYER_FAILURE = 0x0c,
1561 RMC_CALL_ALREADY_CLEARED = 0x41,
1562 RMC_SEMANTIC_INCORR_MSG = 0x5f,
1563 RMC_INVALID_MAND_INF = 0x60,
1564 RMC_MT_NON_EXIS_OR_NOT_IMP,
1565 RMC_MT_NOT_COMPAT_WITH_PROT_STATE,
1566 RMC_COND_IE_ERROR = 0x64,
1567 RMC_NO_CELL_ALLOC_AVAILABLE,
1568 RMC_PROTOCOL_ERROR_UNSPECIFIED = 0x6f
1569} rmc_rr_cause;
1570
1571typedef enum
1572{
1573 RMC_ASGN_CMD,
1574 RMC_PDCH_ASGN,
1575 RMC_IMM_ASGN,
1576 RMC_IMM_ASGN_EXT,
1577 RMC_ADDTNL_ASGN,
1578 //RMC_PRTL_REL,
1579 RMC_HO_CMD,
1580 RMC_FREQ_REDEF,
1581 RMC_CHMODE_CHNG,
1582 RMC_CIPHER_MODE,
1583 RMC_HO_CMD_FROM_UTRAN,
1584 RMC_HO_CMD_TO_UTRAN,
1585 RMC_HO_CMD_FROM_EUTRAN
1586} rmc_ded_asgn_type;
1587
1588#if (defined(__MODEM_EM_MODE__) || defined(__SLIM_MODEM_EM_MODE__))
1589typedef enum
1590{
1591 EM_ASSGN_CMD_MSG_TYPE,
1592 EM_CHANNEL_RELEASE_MSG_TYPE,
1593 EM_ADDTNL_ASSGN_MSG_TYPE,
1594 EM_CLASSMARK_ENQUIRY_MSG_TYPE,
1595 EM_CIPHER_MODE_CMD_MSG_TYPE,
1596 EM_CONFIG_CHANGE_MSG_TYPE,
1597 EM_HANDOVER_CMD_MSG_TYPE,
1598 EM_FREQ_REDEF_MSG_TYPE,
1599 EM_CHAN_MODE_MOD_MSG_TYPE,
1600 EM_CELL_SELECTION
1601}
1602rr_em_ded_asgn_type;
1603#endif /* (defined(__MODEM_EM_MODE__) || defined(__SLIM_MODEM_EM_MODE__)) */
1604
1605/* info type 5 codes used in scheduling info of SI 9 */
1606typedef enum
1607{
1608 SI_1_SCHEDULE,
1609 SI_2_SCHEDULE,
1610 SI_2_BIS_SCHEDULE,
1611 SI_2_TER_SCHEDULE,
1612 SI_3_SCHEDULE,
1613 SI_4_SCHEDULE,
1614 SI_7_SCHEDULE,
1615 SI_8_SCHEDULE,
1616 SI_9_SCHEDULE,
1617 SI_13_SCHEDULE
1618}
1619rr_info_type_5_schd_type;
1620
1621typedef enum
1622{
1623 RR_MEAS_INFO_MSG_TYPE = 0x05,
1624 RR_ENH_MEAS_REP_MSG_TYPE = 0x04
1625} rr_short_peer_msg_type;
1626
1627typedef enum
1628{
1629 TEST_CLOSE_TCH_LOOP_MSG_TYPE = 0x0,
1630 TEST_CLOSE_TCH_LOOP_ACK_MSG_TYPE = 0x01,
1631 TEST_CLOSE_MULTI_LOOP_MSG_TYPE = 0x20,
1632 TEST_CLOSE_MULTI_LOOP_ACK_MSG_TYPE = 0x21,
1633 TEST_OPEN_LOOP_MSG_TYPE = 0x06,
1634 TEST_OPEN_MULTI_LOOP_MSG_TYPE = 0x22,
1635 TEST_OPEN_MULTI_LOOP_ACK_MSG_TYPE = 0x23,
1636 TEST_DAI_TEST_MSG_TYPE = 0x14,
1637 TEST_RESET_MS_POSITIONING_STORED_INFO_MSG_TYPE = 0x26,
1638 TEST_RESET_UE_POSITIONING_STORED_INFO_MSG_TYPE = 0x48
1639}
1640rr_test_peer_msg_type;
1641
1642typedef enum
1643{
1644 rr_single_slot_cmd,
1645 rr_multi_slot_cmd
1646}
1647rr_loop_cmd_type;
1648
1649typedef enum
1650{
1651 RR_PAGE_RESPONSE_LEN = 16,
1652 RR_CLASSMARK_CHANGE_LEN = 10,
1653 RR_GPRS_SUSPEND_REQUEST_LEN = 13,
1654 RR_CLASSMARK_IE_LEN = 5
1655}
1656rr_peer_ie_len_type;
1657
1658typedef enum
1659{
1660 /* MS->NW */
1661 RR__CIPHER_MODE_COMPLETE,
1662 RR__ASSIGNMENT_COMPLETE,
1663 RR__ASSIGNMENT_FAILURE,
1664 RR__HANDOVER_COMPLETE,
1665 RR__HANDOVER_FAILURE,
1666 RR__EXTENDED_MEASUREMENT_REPORT,
1667 RR__MEASUREMENT_REPORT,
1668 RR__ENHANCED_MEASUREMENT_REPORT,
1669 RR__CHANNEL_MODE_MODIFY_ACKNOWLEDGE,
1670 RR__CHANNEL_REQUEST,
1671 RR__CLASSMARK_CHANGE,
1672 RR__UTRAN_CLASSMARK_CHANGE,
1673 RR__RR_STATUS,
1674 RR__GPRS_SUSPEND_REQUEST,
1675 RR__PAGING_RESPONSE,
1676
1677 /* NW->MS */
1678 RR__ADDITIONAL_ASSIGNMENT,
1679 RR__IMMEDIATE_ASSIGNMENT,
1680 RR__IMMEDIATE_ASSIGNMENT_EXTENDED,
1681 RR__IMMEDIATE_ASSIGNMENT_REJ,
1682 RR__CIPHER_MODE_COMMAND,
1683 RR__ASSIGNMENT_COMMAND,
1684 RR__PDCH_ASSIGNMENT_COMMAND,
1685 RR__HANDOVER_COMMAND,
1686 RR__PHYSICAL_INFORMATION,
1687 RR__CHANNEL_RELEASE,
1688 RR__PAGING_REQUEST_TYPE_1,
1689 RR__PAGING_REQUEST_TYPE_2,
1690 RR__PAGING_REQUEST_TYPE_3,
1691 RR__EXTENDED_MEASUREMENT_ORDER,
1692 RR__MEASUREMENT_INFORMATION,
1693 RR__CHANNEL_MODE_MODIFY,
1694 RR__CLASSMARK_ENQUIRY,
1695 RR__FREQUENCY_REDEFINITION,
1696 RR__INTER_SYSTEM_TO_UTRAN_HANDOVER_COMMAND,
1697 /* NW->MS, system information */
1698 RR__SI_1,
1699 RR__SI_2,
1700 RR__SI_2BIS,
1701 RR__SI_2TER,
1702 RR__SI_2QUATER,
1703 RR__SI_2N,
1704 RR__SI_3,
1705 RR__SI_4,
1706 RR__SI_5,
1707 RR__SI_5BIS,
1708 RR__SI_5TER,
1709 RR__SI_6,
1710 RR__SI_7,
1711 RR__SI_8,
1712 RR__SI_9,
1713 RR__SI_13,
1714
1715 /* Both Direction */
1716 RR__APPLICATION_INFO
1717} rr_peer_msg_name_enum;
1718
1719typedef enum
1720{
1721 NO_VAL,
1722 SI_NO_MSG,
1723 SI_INVALID_LEN,
1724 SI_CELL_ALLOC,
1725 SI_RACH_CTRL_PARAMS,
1726 SI_NEIGHBOR_CELL_LIST,
1727 SI_NCC_PERMITTED,
1728 SI_EXT_NEIGHBOR_CELL_LIST,
1729 SI_CELL_ID,
1730 SI_LA_ID,
1731 SI_CTRL_CHAN_PARAMS,
1732 SI_BCCH_CELL_OPTIONS,
1733 SI_CELL_SEL_PARAMS,
1734 SI_3_REST_OCTETS,
1735 SI_CBCH_PARAMS,
1736 SI_4_REST_OCTETS,
1737 SI_SACCH_CELL_OPTIONS,
1738 SI_SKIP_IND,
1739 SI_PROTOCOL_DISCRIMINATOR,
1740 SI_GPRS_MA_IE,
1741 SI_NC_MEAS_ORDER,
1742 SI_GPRS_CELL_OPTIONS,
1743 SI_GPRS_PWR_CTRL_PARAMS,
1744 SI_PBCCH_DESCR,
1745 SI_FLD_ZERO_LEN,
1746 SI_SCHED_INFO,
1747 SI_9_REST_OCTETS
1748}
1749si_msg_fld_enum;
1750
1751typedef enum
1752{
1753 MSG_ALREADY_DECODED,
1754 MSG_DECODED_SUCCESS
1755}
1756si_msg_decode_status_enum;
1757
1758typedef enum
1759{
1760 RMC_TMA_NO_MEANING = 0,
1761 RMC_TMA_FIRST_MESSAGE
1762}
1763rmc_tma_value;
1764
1765typedef enum
1766{
1767 RMC_IAR_NONE = 0,
1768 RMC_IAR_EGPRS_UL_ASGN,
1769 RMC_IAR_BEF_TIME_FREQ_PRESENT,
1770 RMC_IAR_UL_ASGN
1771}
1772rmc_iar_first_two_bit_value;
1773
1774typedef enum
1775{
1776 RMC_IAR_PKT_UL_ASGN = 0xc,
1777 RMC_IAR_PKT_DL_ASGN,
1778
1779 /* Lanslo 20060413: fix Phx29 R99 phone fail in 41.2.3.1 and 41.2.3.2 (2nd part will be dropped) */
1780#ifdef __EGPRS_MODE__
1781 RMC_IAR_SEC_PART_PKT_ASGN2 =0xf,
1782 RMC_IAR_PKT_EGPRS_UL_ASGN = 0x4,
1783#else /* __EGPRS_MODE__ */
1784 RMC_IAR_SEC_PART_PKT_ASGN2 =0xf,
1785#endif /* __EGPRS_MODE__ */
1786
1787 RMC_IAR_SEC_PART_PKT_ASGN =0xe
1788
1789#if 0
1790#ifdef __EGPRS_MODE__
1791/* under construction !*/
1792/* under construction !*/
1793/* under construction !*/
1794#else /* __EGPRS_MODE__ */
1795/* under construction !*/
1796#endif /* __EGPRS_MODE__ */
1797#endif /* 0 */
1798 /* eo Lanslo 20060413 */
1799}
1800rmc_iar_pkt_asgn_type;
1801
1802typedef enum
1803{
1804 /* Only reset the serving cell parameters. Neighbor cell meas info and PCCO raw data are not reset */
1805 MEAS_RESET_SERV_PARAM,
1806
1807 /* Reset all meas parameters including the serving cell parameters, neighbor cell meas info, and PCCO raw data */
1808 MEAS_RESET_ALL_PARAM,
1809
1810 /* Used for UT to reset parameters but not send MSG_ID_RR_MPAL_SET_GISE_CONTEXT_REQ to MPAL. */
1811 MEAS_UNIT_TEST_RESET
1812} meas_reset_scope_enum;
1813
1814typedef enum
1815{
1816 GAS_AGPS_RESET,
1817 GAS_AGNSS_RESET
1818}
1819gas_reset_ms_positioning_tech;
1820
1821typedef enum
1822{
1823 RR_TIMER_NOT_RUNNING,
1824 RR_TIMER_TIME_OUT
1825}TIMER_STATE;
1826
1827#ifdef __CMCC_23G_PINGPONG_RESTRAIN__
1828typedef enum
1829{
1830 RRM_PING_PONG_INIT,
1831 RRM_PING_PONG_STAGE_1,
1832 RRM_PING_PONG_STAGE_2
1833}ping_pong_stage_enum;
1834
1835/*virtual pp exit*/
1836typedef enum
1837{
1838 IR_VIRTUAL_INIT,
1839 IR_VIRTUAL_FROM_2G_TO_3G,
1840 IR_VIRTUAL_FROM_3G_TO_2G
1841}virtual_ir_status_enum;
1842#endif
1843
1844#if defined(__MTK_TARGET__) && defined( __MD97__)
1845typedef enum
1846{
1847 RRM_SET_RAT_MODE,
1848 RRM_PLMN_SEARCH,
1849 RRM_STANDBY_MEAS,
1850 RRM_NONE
1851}rrm_efuse_enum;
1852#endif /* defined(__MTK_TARGET__) && defined( __MD97__) */
1853
1854#endif /* _RRM_ENUMS_H */