blob: 7472ca710372c03186f58da1918e74357233522f [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) 2016
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 CONSKAL_TRUED 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* This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc.
38*
39* Any unauthorized use inconsistent with the terms of such license is strictly prohibited.
40*
41* Copyright (c) 2009-2010 VIA Telecom, Inc. All rights reserved.
42*
43*************************************************************/
44#ifndef _CSSCUST_H_
45#define _CSSCUST_H_
46
47/****************************************************************************
48 *
49 * Module: csscust.h
50 *
51 * Purpose: CSS Customizations
52 *
53* HISTORY :
54* See Log at end of file
55*
56*****************************************************************************
57***************************************************************************/
58
59/*****************************************************************************
60 * CSS Customizations *
61 ****************************************************************************/
62
63/*-----------------------------------------------------------------------------*/
64/* Roaming indicator for Non-PRL system that is found in NAM Home SID/NID list */
65/* and Home and International Roam ERI definitions */
66/*-----------------------------------------------------------------------------*/
67/* Roaming Indicators */
68#define ROAMING_IND_ON 0
69#define ROAMING_IND_OFF 1
70#define ROAMING_IND_FLASHING 2
71#define ROAMING_IND_OUT_OF_NEIGHBORHOOD 3
72#define ROAMING_IND_OUT_OF_BUILDING 4
73#define ROAMING_IND_PREFERRED_SYSTEM 5
74#define ROAMING_IND_AVAILABLE_SYSTEM 6
75#define ROAMING_IND_ALLIANCE_PARTNER 7
76#define ROAMING_IND_PREMIUM_PARTNER 8
77#define ROAMING_IND_FULL_SERV_FUNC 9
78#define ROAMING_IND_PART_SERV_FUNC 10
79#define ROAMING_IND_BANNER_ON 11
80#define ROAMING_IND_BANNER_OFF 12
81#define ROAM_IND_UNKNOWN 255
82
83#define NON_STANDARD_ENHANCED_ROAMING_IND_START 64
84
85#ifndef MTK_CBP
86#ifdef VERIZON_EXTENSIONS
87#define ROAM_IND_FOR_NON_PRL_SYS_BUT_HOME_IN_NAM ROAMING_IND_FLASHING
88static const kal_uint16 Home_eriValues[] = {1, 64, 65, 76, 77, 78, 79, 80, 81, 82, 83};
89static const kal_uint16 International_eriValues[] = {65535}; /* i.e. none */
90
91#elif (defined(SPRINT_EXTENSIONS))
92#define ROAM_IND_FOR_NON_PRL_SYS_BUT_HOME_IN_NAM ROAMING_IND_OFF
93static const kal_uint16 Home_eriValues[] = {1};
94static const kal_uint16 International_eriValues[] = {74,
95 124, 125, 126,
96 157, 158, 159,
97 193, 194, 195, 196, 197, 198,
98 228, 229, 230, 231, 232, 233, 234, 235};
99
100#else
101#define ROAM_IND_FOR_NON_PRL_SYS_BUT_HOME_IN_NAM ROAMING_IND_OFF
102static const kal_uint16 Home_eriValues[] = {1};
103static const kal_uint16 International_eriValues[] = {65535}; /* i.e. none */
104#endif
105#endif
106
107/*-----------------------------------------------------------------------------*/
108/* Better service rescan timers (in seconds) */
109/*-----------------------------------------------------------------------------*/
110#if 0 /* defined(VERIZON_EXTENSIONS) */
111#ifdef MTK_DEV_C2K_IRAT
112/* under construction !*/
113/* under construction !*/
114/* under construction !*/
115#endif /* MTK_DEV_C2K_IRAT */
116/* under construction !*/
117/* under construction !*/
118/* under construction !*/
119/* under construction !*/
120/* under construction !*/
121/* under construction !*/
122/* under construction !*/
123/* under construction !*/
124/* under construction !*/
125/* under construction !*/
126/* under construction !*/
127/* under construction !*/
128/* under construction !*/
129/* under construction !*/
130/* under construction !*/
131/* under construction !*/
132/* under construction !*/
133/* under construction !*/
134/* under construction !*/
135/* under construction !*/
136/* under construction !*/
137/* under construction !*/
138/* under construction !*/
139/* under construction !*/
140/* under construction !*/
141/* under construction !*/
142/* under construction !*/
143#endif
144
145#if (defined(KDDI_EXTENSIONS))
146#define CSS_1X_T_BSR_1_DEFAULT 1800 /* 30 min */
147#define CSS_1X_T_BSR_2_DEFAULT 1800 /* 30 min */
148#define CSS_1X_T_BSR_NEWSYS_DEFAULT 125 /* 2 min 5 s */
149#define CSS_1X_T_BSR_CALL_DEFAULT 125 /* 2 min 5 s */
150#define CSS_1X_T_BSR_REDIR_DEFAULT 86340 /* 23 h 59 min */
151
152#define CSS_DO_T_BSR_1_DEFAULT 3600
153#define CSS_DO_T_BSR_2_DEFAULT 120
154#define CSS_DO_T_BSR_REDIR_DEFAULT 5
155#define CSS_DO_T_BSR_CALL_DEFAULT 190
156#define CSS_DO_T_BSR_HYBRID_DEFAULT 600
157#define CSS_DO_T_BSR_HOLD_DEFAULT 30
158
159#else // default (no carrier extension defined)
160#define CSS_1X_T_BSR_1_DEFAULT 180
161#ifdef MTK_DEV_C2K_IRAT
162#define CSS_1X_T_BSR_1_DEFAULT_VZW 120
163#else
164#define CSS_1X_T_BSR_1_DEFAULT_VZW CSS_1X_T_BSR_1_DEFAULT
165#endif
166#define CSS_1X_T_BSR_2_DEFAULT 180
167#ifdef MTK_DEV_C2K_IRAT
168#define CSS_1X_T_BSR_2_DEFAULT_VZW 120
169#else
170#define CSS_1X_T_BSR_2_DEFAULT_VZW CSS_1X_T_BSR_2_DEFAULT
171#endif
172#define CSS_1X_T_BSR_HOLD_DEFAULT 15 /*old MPSS_ADDITIONAL_TIME, default is 15s*/
173
174
175#define CSS_1X_T_BSR_1_DEFAULT_SPRINT 60
176#define CSS_1X_T_BSR_2_DEFAULT_SPRINT 120
177#define CSS_1X_T_BSR_NEWSYS_DEFAULT_SPRINT 5
178#define CSS_1X_T_BSR_CALL_DEFAULT_SPRINT 5
179#define CSS_1X_T_BSR_REDIR_DEFAULT_SPRINT 5
180#define CSS_1X_T_BSR_HOLD_DEFAULT_SPRINT 5
181
182#define CSS_DO_T_BSR_1_DEFAULT_SPRINT 60
183#define CSS_DO_T_BSR_2_DEFAULT_SPRINT 120
184#define CSS_DO_T_BSR_REDIR_DEFAULT_SPRINT 5
185#define CSS_DO_T_BSR_CALL_DEFAULT_SPRINT 30
186#define CSS_DO_T_BSR_HYBRID_DEFAULT_SPRINT 600
187#define CSS_DO_T_BSR_HOLD_DEFAULT_SPRINT 30
188
189
190
191#define CSS_1X_T_BSR_NEWSYS_DEFAULT 1
192#define CSS_1X_T_BSR_NEWSYS_DEFAULT_VZW 5
193#define CSS_1X_T_BSR_CALL_DEFAULT 5
194#define CSS_1X_T_BSR_REDIR_DEFAULT 180
195#define CSS_1X_T_BSR_REDIR_DEFAULT_VZW 5
196
197#define CSS_DO_T_BSR_1_DEFAULT 120
198#define CSS_DO_T_BSR_2_DEFAULT 120
199#define CSS_DO_T_BSR_REDIR_DEFAULT 5
200#define CSS_DO_T_BSR_CALL_DEFAULT 30
201#define CSS_DO_T_BSR_HYBRID_DEFAULT 600
202#define CSS_DO_T_BSR_HOLD_DEFAULT 30
203#define CSS_1X_HOME_MAPE_AVOIDANCE_DURATION_DEFAULT_SPRINT 600 /* default HOME Systeme Avoidance of Sprint is 10min */
204#endif
205
206#if (defined(KDDI_EXTENSIONS))
207#define CSS_1X_MPSS_PILOT_STRENGTH_THRESH_DEFAULT 4135 /* -12 dB*/
208#else
209#define CSS_1X_MPSS_PILOT_STRENGTH_THRESH_DEFAULT 0 /* no threshold */
210#endif
211
212#define CSS_1X_PS_DELAY_DEFAULT 22 /* in seconds */
213/*-----------------------------------------------------------------------------*/
214/* 1x Avoidance customization (timers in seconds) */
215/*-----------------------------------------------------------------------------*/
216#define CSS_1X_REDIR_AVOIDANCE_DURATION_DEFAULT 30 /* Avoidance time of system from which the MS was redirected */
217#if defined (KDDI_EXTENSIONS)
218#define CSS_1X_HOME_MAPE_AVOIDANCE_DURATION_DEFAULT 60 /* HOME Systeme Avoidance */
219#define MULTI_MAPE_EXIT 2
220#else
221#define CSS_1X_HOME_MAPE_AVOIDANCE_DURATION_DEFAULT 900 /* HOME Systeme Avoidance */
222#define MULTI_MAPE_EXIT 4
223#endif
224#define MULTI_REG_REJ_EXIT 3
225#define MAX_REG_REJ_TIME (4 * 180000)
226#define MULTI_RELEASE_REJ_EXIT 9
227#define MAX_RELEASE_REJ_TIME (4 * 180000)
228#define MAX_RELEASE_REJ_BLOCK_TIME (2 *180000)
229
230#define MAX_MAPE_TIME (MULTI_MAPE_EXIT * 180000) /* Max Time (in ms) during which consecutive MAPE must occur, starting at first failure */
231
232/*-----------------------------------------------------------------------------*/
233/* Lost channel Ping frequency */
234/*-----------------------------------------------------------------------------*/
235
236#if 0 /* #ifdef SPRINT_EXTENSIONS system lost algorithm of Sprient is waived, obsolete it*/
237/* under construction !*/
238/* under construction !*/
239/* under construction !*/
240/* under construction !*/
241/* under construction !*/
242/* under construction !*/
243#endif
244#define DEFAULT_CSS_GEO_SCAN_PING_FREQUENCY 5
245#define DEFAULT_CSS_NON_GEO_SCAN_PING_FREQUENCY 5
246#define DEFAULT_CSS_1X_LOSS_DO_CONN_SCAN_PING_FREQUENCY 3
247
248/*-----------------------------------------------------------------------------*/
249/* Emergency mode system lost scan time */
250/*-----------------------------------------------------------------------------*/
251#define CSS_1X_EMERGENCY_SYS_LOST_SCAN_TIME 200L /* 200 ms; short so that MS will scan last channel only 1 time */
252#define CSS_1X_EMERGENCY_SYS_LOST_SCAN_TIME_VZW 15000L /* Will dwell on last channel for 15 seconds. */
253
254#define MAX_CYCLE 255 /*means from then on(including this phase), always keep the same scannign scheme and do fast acq for power saving*/
255/*#define SYS_OPTION_COMMIT_1XMRU 0 */
256
257
258/*-----------------------------------------------------------------------------*/
259/* 1x lost while DO connected scan parameters */
260/*-----------------------------------------------------------------------------*/
261/* Initial interval between scans if 1X system is lost while DO is connected. Units of mili-sec. */
262#ifdef MTK_CBP
263/*Shorten the timer to 1s to accelerate 1x system recovery.*/
264#define CPSM_1X_LOST_WHILE_DO_CONN_SCAN_TIME_INIT 1000
265#else
266#define CPSM_1X_LOST_WHILE_DO_CONN_SCAN_TIME_INIT 5000
267#endif
268/* Prolonged scan interval if initial 1X lost while DO connected scan is unsuccessful. Units of mili-sec */
269#define CPSM_1X_LOST_WHILE_DO_CONN_SCAN_TIME_DELAY 10000
270/* Number of channels to scan before transitioning from initial scan interval to prolonged scan interval. */
271#define CPSM_1X_LOST_WHILE_DO_CONN_NUM_INIT_CHANNELS 4
272
273
274/*-----------------------------------------------------------------------------*/
275/* 1x OOSA Parameter customization */
276/*-----------------------------------------------------------------------------*/
277#if 0 /*#ifdef SPRINT_EXTENSIONS*/
278/* under construction !*/
279/* under construction !*/
280/* under construction !*/
281/* under construction !*/
282/* under construction !*/
283/* under construction !*/
284/* under construction !*/
285/* under construction !*/
286/* under construction !*/
287/* under construction !*/
288/* under construction !*/
289/* under construction !*/
290/* under construction !*/
291/* under construction !*/
292/* under construction !*/
293/* under construction !*/
294/* under construction !*/
295/* under construction !*/
296/* under construction !*/
297/* under construction !*/
298/* under construction !*/
299/* under construction !*/
300/* under construction !*/
301/* under construction !*/
302/* under construction !*/
303/* under construction !*/
304/* under construction !*/
305/* under construction !*/
306/* under construction !*/
307/* under construction !*/
308/* under construction !*/
309/* under construction !*/
310/* under construction !*/
311/* under construction !*/
312/* under construction !*/
313/* under construction !*/
314/* under construction !*/
315/* under construction !*/
316/* under construction !*/
317/* under construction !*/
318/* under construction !*/
319/* under construction !*/
320/* under construction !*/
321/* under construction !*/
322/* under construction !*/
323/* under construction !*/
324/* under construction !*/
325/* under construction !*/
326/* under construction !*/
327/* under construction !*/
328/* under construction !*/
329/* under construction !*/
330/* under construction !*/
331/* under construction !*/
332/* under construction !*/
333/* under construction !*/
334/* under construction !*/
335/* under construction !*/
336/* under construction !*/
337/* under construction !*/
338/* under construction !*/
339/* under construction !*/
340/* under construction !*/
341/* under construction !*/
342/* under construction !*/
343/* under construction !*/
344/* under construction !*/
345/* under construction !*/
346/* under construction !*/
347/* under construction !*/
348/* under construction !*/
349/* under construction !*/
350/* under construction !*/
351/* under construction !*/
352/* under construction !*/
353/* under construction !*/
354/* under construction !*/
355/* under construction !*/
356/* under construction !*/
357/* under construction !*/
358/* under construction !*/
359/* under construction !*/
360/* under construction !*/
361/* under construction !*/
362/* under construction !*/
363/* under construction !*/
364/* under construction !*/
365/* under construction !*/
366/* under construction !*/
367/* under construction !*/
368/* under construction !*/
369/* under construction !*/
370/* under construction !*/
371/* under construction !*/
372/* under construction !*/
373/* under construction !*/
374/* under construction !*/
375/* under construction !*/
376/* under construction !*/
377/* under construction !*/
378/* under construction !*/
379/* under construction !*/
380/* under construction !*/
381/* under construction !*/
382/* under construction !*/
383/* under construction !*/
384/* under construction !*/
385/* under construction !*/
386/* under construction !*/
387/* under construction !*/
388/* under construction !*/
389/* under construction !*/
390/* under construction !*/
391/* under construction !*/
392#endif
393
394#if defined(LGT_EXTENSIONS)
395
396/*-----------------------------------*/
397/* LGT Power Up OOSA Scan pattern */
398/*-----------------------------------*/
399#define CPSM_1X_OOSA_POWER_UP_NUMPHASES 3
400
401#define CPSM_1X_OOSA_POWER_UP_PHASE0_SCANMETHOD CPSM_OOSA_SCAN_LIST
402#define CPSM_1X_OOSA_POWER_UP_PHASE0_SCANTIME 0
403#define CPSM_1X_OOSA_POWER_UP_PHASE0_CYCLE 2 /*Scan twice, with no delay between scans*/
404#define CPSM_1X_OOSA_POWER_UP_PHASE0_DELAY 0
405
406#define CPSM_1X_OOSA_POWER_UP_PHASE1_SCANMETHOD CPSM_OOSA_SCAN_TIMER
407#define CPSM_1X_OOSA_POWER_UP_PHASE1_SCANTIME 180 /*3 Minutes in seconds*/
408#define CPSM_1X_OOSA_POWER_UP_PHASE1_CYCLE 1
409#define CPSM_1X_OOSA_POWER_UP_PHASE1_DELAY 60 /*Sleep for 1 minutes*/
410
411#define CPSM_1X_OOSA_POWER_UP_PHASE2_SCANMETHOD CPSM_OOSA_SCAN_LIST /*Scan once*/
412#define CPSM_1X_OOSA_POWER_UP_PHASE2_SCANTIME 0
413#define CPSM_1X_OOSA_POWER_UP_PHASE2_CYCLE 100
414#define CPSM_1X_OOSA_POWER_UP_PHASE2_DELAY 60 /*Sleep for 1 minutes*/
415
416#define CPSM_1X_OOSA_POWER_UP_PHASE3_SCANMETHOD CPSM_OOSA_SCAN_LIST
417#define CPSM_1X_OOSA_POWER_UP_PHASE3_SCANTIME 0
418#define CPSM_1X_OOSA_POWER_UP_PHASE3_CYCLE 0
419#define CPSM_1X_OOSA_POWER_UP_PHASE3_DELAY 0
420
421#define CPSM_1X_OOSA_POWER_UP_PHASE4_SCANMETHOD CPSM_OOSA_SCAN_LIST
422#define CPSM_1X_OOSA_POWER_UP_PHASE4_SCANTIME 0
423#define CPSM_1X_OOSA_POWER_UP_PHASE4_CYCLE 0
424#define CPSM_1X_OOSA_POWER_UP_PHASE4_DELAY 0
425
426#define CPSM_1X_OOSA_POWER_UP_PHASE5_SCANMETHOD CPSM_OOSA_SCAN_LIST
427#define CPSM_1X_OOSA_POWER_UP_PHASE5_SCANTIME 0
428#define CPSM_1X_OOSA_POWER_UP_PHASE5_CYCLE 0
429#define CPSM_1X_OOSA_POWER_UP_PHASE5_DELAY 0
430
431#define CPSM_1X_OOSA_POWER_UP_PHASE6_SCANMETHOD CPSM_OOSA_SCAN_LIST
432#define CPSM_1X_OOSA_POWER_UP_PHASE6_SCANTIME 0
433#define CPSM_1X_OOSA_POWER_UP_PHASE6_CYCLE 0
434#define CPSM_1X_OOSA_POWER_UP_PHASE6_DELAY 0
435
436#define CPSM_1X_OOSA_POWER_UP_PHASE7_SCANMETHOD CPSM_OOSA_SCAN_LIST
437#define CPSM_1X_OOSA_POWER_UP_PHASE7_SCANTIME 0
438#define CPSM_1X_OOSA_POWER_UP_PHASE7_CYCLE 0
439#define CPSM_1X_OOSA_POWER_UP_PHASE7_DELAY 0
440
441#define CPSM_1X_OOSA_POWER_UP_PHASE8_SCANMETHOD CPSM_OOSA_SCAN_LIST
442#define CPSM_1X_OOSA_POWER_UP_PHASE8_SCANTIME 0
443#define CPSM_1X_OOSA_POWER_UP_PHASE8_CYCLE 0
444#define CPSM_1X_OOSA_POWER_UP_PHASE8_DELAY 0
445
446#define CPSM_1X_OOSA_POWER_UP_PHASE9_SCANMETHOD CPSM_OOSA_SCAN_LIST
447#define CPSM_1X_OOSA_POWER_UP_PHASE9_SCANTIME 0
448#define CPSM_1X_OOSA_POWER_UP_PHASE9_CYCLE 0
449#define CPSM_1X_OOSA_POWER_UP_PHASE9_DELAY 0
450
451/*------------------------------------*/
452/* LGT Sys Lost OOSA Scan pattern */
453/*------------------------------------*/
454#define CPSM_1X_OOSA_SYSTEM_LOST_NUMPHASES 3
455
456#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_SCANMETHOD CPSM_OOSA_SCAN_LIST
457#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_SCANTIME 0
458#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_CYCLE 1 /*Scan once, with no delay before time-based scan*/
459#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_DELAY 0
460
461#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_SCANMETHOD CPSM_OOSA_SCAN_TIMER
462#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_SCANTIME 180 /*Scan for 3 Minutes in seconds*/
463#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_CYCLE 1
464#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_DELAY 60 /*Sleep for 1 minutes */
465
466#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_SCANMETHOD CPSM_OOSA_SCAN_LIST /*Scan the list once*/
467#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_SCANTIME 0
468#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_CYCLE 3
469#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_DELAY 60 /*Sleep for 1 minutes */
470
471#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_SCANMETHOD CPSM_OOSA_SCAN_LIST
472#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_SCANTIME 0
473#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_CYCLE 0
474#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_DELAY 0
475
476#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_SCANMETHOD CPSM_OOSA_SCAN_LIST
477#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_SCANTIME 0
478#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_CYCLE 0
479#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_DELAY 0
480
481#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_SCANMETHOD CPSM_OOSA_SCAN_LIST
482#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_SCANTIME 0
483#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_CYCLE 0
484#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_DELAY 0
485
486#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_SCANMETHOD CPSM_OOSA_SCAN_LIST
487#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_SCANTIME 0
488#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_CYCLE 0
489#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_DELAY 0
490
491#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_SCANMETHOD CPSM_OOSA_SCAN_LIST
492#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_SCANTIME 0
493#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_CYCLE 0
494#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_DELAY 0
495
496#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_SCANMETHOD CPSM_OOSA_SCAN_LIST
497#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_SCANTIME 0
498#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_CYCLE 0
499#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_DELAY 0
500
501#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_SCANMETHOD CPSM_OOSA_SCAN_LIST
502#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_SCANTIME 0
503#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_CYCLE 0
504#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_DELAY 0
505
506#else
507/*-----------------------------------*/
508/* Default Power Up OOSA Scan pattern */
509/*-----------------------------------*/
510#ifdef MTK_DEV_C2K_IRAT
511#define CPSM_1X_OOSA_POWER_UP_NUMPHASES 8
512
513#define CPSM_1X_OOSA_POWER_UP_PHASE0_SCANMETHOD CPSM_OOSA_SCAN_LIST
514#define CPSM_1X_OOSA_POWER_UP_PHASE0_SCANTIME 0
515#define CPSM_1X_OOSA_POWER_UP_PHASE0_CYCLE 4 /*Scan twice, with no delay between scans*/
516#define CPSM_1X_OOSA_POWER_UP_PHASE0_DELAY 2
517
518#define CPSM_1X_OOSA_POWER_UP_PHASE1_SCANMETHOD CPSM_OOSA_SCAN_LIST
519#define CPSM_1X_OOSA_POWER_UP_PHASE1_SCANTIME 0 /*15 Minutes in seconds*/
520#define CPSM_1X_OOSA_POWER_UP_PHASE1_CYCLE 4
521#define CPSM_1X_OOSA_POWER_UP_PHASE1_DELAY 4 /*Sleep for 3 minutes*/
522
523#define CPSM_1X_OOSA_POWER_UP_PHASE2_SCANMETHOD CPSM_OOSA_SCAN_LIST /*Scan once*/
524#define CPSM_1X_OOSA_POWER_UP_PHASE2_SCANTIME 0
525#define CPSM_1X_OOSA_POWER_UP_PHASE2_CYCLE 4
526#define CPSM_1X_OOSA_POWER_UP_PHASE2_DELAY 8 /*Sleep for 3 minutes*/
527
528#define CPSM_1X_OOSA_POWER_UP_PHASE3_SCANMETHOD CPSM_OOSA_SCAN_LIST
529#define CPSM_1X_OOSA_POWER_UP_PHASE3_SCANTIME 0
530#define CPSM_1X_OOSA_POWER_UP_PHASE3_CYCLE 4
531#define CPSM_1X_OOSA_POWER_UP_PHASE3_DELAY 10
532
533#define CPSM_1X_OOSA_POWER_UP_PHASE4_SCANMETHOD CPSM_OOSA_SCAN_LIST
534#define CPSM_1X_OOSA_POWER_UP_PHASE4_SCANTIME 0
535#define CPSM_1X_OOSA_POWER_UP_PHASE4_CYCLE 2
536#define CPSM_1X_OOSA_POWER_UP_PHASE4_DELAY 20
537
538#define CPSM_1X_OOSA_POWER_UP_PHASE5_SCANMETHOD CPSM_OOSA_SCAN_LIST
539#define CPSM_1X_OOSA_POWER_UP_PHASE5_SCANTIME 0
540#define CPSM_1X_OOSA_POWER_UP_PHASE5_CYCLE 2
541#define CPSM_1X_OOSA_POWER_UP_PHASE5_DELAY 30
542
543#define CPSM_1X_OOSA_POWER_UP_PHASE6_SCANMETHOD CPSM_OOSA_SCAN_LIST
544#define CPSM_1X_OOSA_POWER_UP_PHASE6_SCANTIME 0
545#define CPSM_1X_OOSA_POWER_UP_PHASE6_CYCLE 30
546#define CPSM_1X_OOSA_POWER_UP_PHASE6_DELAY 50
547
548#define CPSM_1X_OOSA_POWER_UP_PHASE7_SCANMETHOD CPSM_OOSA_SCAN_LIST
549#define CPSM_1X_OOSA_POWER_UP_PHASE7_SCANTIME 0
550#define CPSM_1X_OOSA_POWER_UP_PHASE7_CYCLE 100
551#define CPSM_1X_OOSA_POWER_UP_PHASE7_DELAY 180
552
553#define CPSM_1X_OOSA_POWER_UP_PHASE8_SCANMETHOD CPSM_OOSA_SCAN_LIST
554#define CPSM_1X_OOSA_POWER_UP_PHASE8_SCANTIME 0
555#define CPSM_1X_OOSA_POWER_UP_PHASE8_CYCLE 0
556#define CPSM_1X_OOSA_POWER_UP_PHASE8_DELAY 0
557
558#define CPSM_1X_OOSA_POWER_UP_PHASE9_SCANMETHOD CPSM_OOSA_SCAN_LIST
559#define CPSM_1X_OOSA_POWER_UP_PHASE9_SCANTIME 0
560#define CPSM_1X_OOSA_POWER_UP_PHASE9_CYCLE 0
561#define CPSM_1X_OOSA_POWER_UP_PHASE9_DELAY 0
562
563/*------------------------------------*/
564/* Default Sys Lost OOSA Scan pattern */
565/*------------------------------------*/
566#define CPSM_1X_OOSA_SYSTEM_LOST_NUMPHASES 8
567
568#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_SCANMETHOD CPSM_OOSA_SCAN_LIST
569#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_SCANTIME 0
570#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_CYCLE 4 /*Scan once, with no delay before time-based scan*/
571#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_DELAY 2
572
573#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_SCANMETHOD CPSM_OOSA_SCAN_LIST
574#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_SCANTIME 0 /*Scan for 15 Minutes in seconds*/
575#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_CYCLE 4
576#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_DELAY 4 /*Sleep for 3 minutes */
577
578#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_SCANMETHOD CPSM_OOSA_SCAN_LIST /*Scan the list once*/
579#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_SCANTIME 0
580#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_CYCLE 4
581#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_DELAY 8 /*Sleep for 3 minutes */
582
583#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_SCANMETHOD CPSM_OOSA_SCAN_LIST
584#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_SCANTIME 0
585#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_CYCLE 4
586#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_DELAY 10
587
588#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_SCANMETHOD CPSM_OOSA_SCAN_LIST
589#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_SCANTIME 0
590#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_CYCLE 2
591#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_DELAY 20
592
593#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_SCANMETHOD CPSM_OOSA_SCAN_LIST
594#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_SCANTIME 0
595#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_CYCLE 2
596#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_DELAY 30
597
598#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_SCANMETHOD CPSM_OOSA_SCAN_LIST
599#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_SCANTIME 0
600#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_CYCLE 100
601#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_DELAY 180
602
603#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_SCANMETHOD CPSM_OOSA_SCAN_LIST
604#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_SCANTIME 0
605#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_CYCLE 100
606#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_DELAY 180
607
608#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_SCANMETHOD CPSM_OOSA_SCAN_LIST
609#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_SCANTIME 0
610#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_CYCLE 0
611#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_DELAY 0
612
613#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_SCANMETHOD CPSM_OOSA_SCAN_LIST
614#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_SCANTIME 0
615#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_CYCLE 0
616#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_DELAY 0
617
618#else /* if (defined(MTK_DEV_C2K_IRAT) && defined(MTK_DEV_C2K_SRLTE)) */
619#define CPSM_1X_OOSA_POWER_UP_NUMPHASES 2
620
621#define CPSM_1X_OOSA_POWER_UP_PHASE0_SCANMETHOD CPSM_OOSA_SCAN_LIST
622#define CPSM_1X_OOSA_POWER_UP_PHASE0_SCANTIME 0
623#define CPSM_1X_OOSA_POWER_UP_PHASE0_CYCLE 15 /*Scan twice, with no delay between scans*/
624#define CPSM_1X_OOSA_POWER_UP_PHASE0_DELAY 2
625
626#define CPSM_1X_OOSA_POWER_UP_PHASE1_SCANMETHOD CPSM_OOSA_SCAN_LIST
627#define CPSM_1X_OOSA_POWER_UP_PHASE1_SCANTIME 0 /*15 Minutes in seconds*/
628#define CPSM_1X_OOSA_POWER_UP_PHASE1_CYCLE 100
629#define CPSM_1X_OOSA_POWER_UP_PHASE1_DELAY 180 /*Sleep for 3 minutes*/
630
631#define CPSM_1X_OOSA_POWER_UP_PHASE2_SCANMETHOD CPSM_OOSA_SCAN_LIST /*Scan once*/
632#define CPSM_1X_OOSA_POWER_UP_PHASE2_SCANTIME 0
633#define CPSM_1X_OOSA_POWER_UP_PHASE2_CYCLE 0
634#define CPSM_1X_OOSA_POWER_UP_PHASE2_DELAY 0 /*Sleep for 3 minutes*/
635
636#define CPSM_1X_OOSA_POWER_UP_PHASE3_SCANMETHOD CPSM_OOSA_SCAN_LIST
637#define CPSM_1X_OOSA_POWER_UP_PHASE3_SCANTIME 0
638#define CPSM_1X_OOSA_POWER_UP_PHASE3_CYCLE 0
639#define CPSM_1X_OOSA_POWER_UP_PHASE3_DELAY 0
640
641#define CPSM_1X_OOSA_POWER_UP_PHASE4_SCANMETHOD CPSM_OOSA_SCAN_LIST
642#define CPSM_1X_OOSA_POWER_UP_PHASE4_SCANTIME 0
643#define CPSM_1X_OOSA_POWER_UP_PHASE4_CYCLE 0
644#define CPSM_1X_OOSA_POWER_UP_PHASE4_DELAY 0
645
646#define CPSM_1X_OOSA_POWER_UP_PHASE5_SCANMETHOD CPSM_OOSA_SCAN_LIST
647#define CPSM_1X_OOSA_POWER_UP_PHASE5_SCANTIME 0
648#define CPSM_1X_OOSA_POWER_UP_PHASE5_CYCLE 0
649#define CPSM_1X_OOSA_POWER_UP_PHASE5_DELAY 0
650
651#define CPSM_1X_OOSA_POWER_UP_PHASE6_SCANMETHOD CPSM_OOSA_SCAN_LIST
652#define CPSM_1X_OOSA_POWER_UP_PHASE6_SCANTIME 0
653#define CPSM_1X_OOSA_POWER_UP_PHASE6_CYCLE 0
654#define CPSM_1X_OOSA_POWER_UP_PHASE6_DELAY 0
655
656#define CPSM_1X_OOSA_POWER_UP_PHASE7_SCANMETHOD CPSM_OOSA_SCAN_LIST
657#define CPSM_1X_OOSA_POWER_UP_PHASE7_SCANTIME 0
658#define CPSM_1X_OOSA_POWER_UP_PHASE7_CYCLE 0
659#define CPSM_1X_OOSA_POWER_UP_PHASE7_DELAY 0
660
661#define CPSM_1X_OOSA_POWER_UP_PHASE8_SCANMETHOD CPSM_OOSA_SCAN_LIST
662#define CPSM_1X_OOSA_POWER_UP_PHASE8_SCANTIME 0
663#define CPSM_1X_OOSA_POWER_UP_PHASE8_CYCLE 0
664#define CPSM_1X_OOSA_POWER_UP_PHASE8_DELAY 0
665
666#define CPSM_1X_OOSA_POWER_UP_PHASE9_SCANMETHOD CPSM_OOSA_SCAN_LIST
667#define CPSM_1X_OOSA_POWER_UP_PHASE9_SCANTIME 0
668#define CPSM_1X_OOSA_POWER_UP_PHASE9_CYCLE 0
669#define CPSM_1X_OOSA_POWER_UP_PHASE9_DELAY 0
670
671/*------------------------------------*/
672/* Default Sys Lost OOSA Scan pattern */
673/*------------------------------------*/
674#define CPSM_1X_OOSA_SYSTEM_LOST_NUMPHASES 2
675
676#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_SCANMETHOD CPSM_OOSA_SCAN_LIST
677#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_SCANTIME 0
678#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_CYCLE 15 /*Scan once, with no delay before time-based scan*/
679#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE0_DELAY 2
680
681#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_SCANMETHOD CPSM_OOSA_SCAN_LIST
682#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_SCANTIME 0 /*Scan for 15 Minutes in seconds*/
683#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_CYCLE 100
684#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE1_DELAY 180 /*Sleep for 3 minutes */
685
686#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_SCANMETHOD CPSM_OOSA_SCAN_LIST /*Scan the list once*/
687#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_SCANTIME 0
688#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_CYCLE 0
689#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE2_DELAY 0 /*Sleep for 3 minutes */
690
691#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_SCANMETHOD CPSM_OOSA_SCAN_LIST
692#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_SCANTIME 0
693#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_CYCLE 0
694#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE3_DELAY 0
695
696#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_SCANMETHOD CPSM_OOSA_SCAN_LIST
697#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_SCANTIME 0
698#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_CYCLE 0
699#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE4_DELAY 0
700
701#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_SCANMETHOD CPSM_OOSA_SCAN_LIST
702#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_SCANTIME 0
703#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_CYCLE 0
704#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE5_DELAY 0
705
706#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_SCANMETHOD CPSM_OOSA_SCAN_LIST
707#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_SCANTIME 0
708#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_CYCLE 0
709#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE6_DELAY 0
710
711#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_SCANMETHOD CPSM_OOSA_SCAN_LIST
712#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_SCANTIME 0
713#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_CYCLE 0
714#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE7_DELAY 0
715
716#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_SCANMETHOD CPSM_OOSA_SCAN_LIST
717#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_SCANTIME 0
718#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_CYCLE 0
719#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE8_DELAY 0
720
721#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_SCANMETHOD CPSM_OOSA_SCAN_LIST
722#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_SCANTIME 0
723#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_CYCLE 0
724#define CPSM_1X_OOSA_SYSTEM_LOST_PHASE9_DELAY 0
725#endif /*#if ( defined(MTK_DEV_C2K_IRAT) && defined(MTK_DEV_C2K_SRLTE))*/
726
727#endif
728
729
730/*-----------------------------------------------------------------------------*/
731/* DO OOSA Parameter customization */
732/*-----------------------------------------------------------------------------*/
733#ifdef MTK_DEV_C2K_IRAT
734/*begin: DO OOSA Scanning parameter while IxInit&DOInit*/
735#define CURRENT_DO_POWERUP_OOSA_PHASES 7
736
737#define CP_DO_SELECTION_PHASE0_DELAY 2 /* delay between phase 1 attempts, time = DELAY * TIME_SCALE */
738#define CP_DO_SELECTION_PHASE1_DELAY 4 /* delay between phase 2 attempts */
739#define CP_DO_SELECTION_PHASE2_DELAY 8 /* delay between phase 3 attempts */
740#define CP_DO_SELECTION_PHASE3_DELAY 10 /* delay between phase 4 attempts */
741#define CP_DO_SELECTION_PHASE4_DELAY 30 /* delay between phase 5 attempts */
742#define CP_DO_SELECTION_PHASE5_DELAY 60 /* delay between phase 6 attempts */
743#define CP_DO_SELECTION_PHASE6_DELAY 300 /* delay between phase 7 attempts */
744
745#define CP_DO_SELECTION_PHASE0_SCANTIME 0 /* Phase 1 time to scan per cycle, time = SCANTIME * TIME_SCALE */
746#define CP_DO_SELECTION_PHASE1_SCANTIME 0 /* Phase 2 scan time */
747#define CP_DO_SELECTION_PHASE2_SCANTIME 0 /* Phase 3 scan time */
748#define CP_DO_SELECTION_PHASE3_SCANTIME 0 /* Phase 4 scan time */
749#define CP_DO_SELECTION_PHASE4_SCANTIME 0 /* Phase 4 scan time */
750#define CP_DO_SELECTION_PHASE5_SCANTIME 0 /* Phase 4 scan time */
751#define CP_DO_SELECTION_PHASE6_SCANTIME 30 /* Phase 4 scan time */
752
753#define CP_DO_SELECTION_PHASE0_CYCLE 1 /* # of phase 1 tries which */
754#define CP_DO_SELECTION_PHASE1_CYCLE 3 /* # of phase 2 tries which */
755#define CP_DO_SELECTION_PHASE2_CYCLE 4 /* # of phase 3 tries which */
756#define CP_DO_SELECTION_PHASE3_CYCLE 4 /* # of phase 3 tries which */
757#define CP_DO_SELECTION_PHASE4_CYCLE 4 /* # of phase 3 tries which */
758#define CP_DO_SELECTION_PHASE5_CYCLE 4 /* # of phase 3 tries which */
759#define CP_DO_SELECTION_PHASE6_CYCLE MAX_CYCLE /* # of phase 3 tries which */
760
761#define CP_DO_SELECTION_PHASE0_METHOD CPSM_OOSA_SCAN_LIST
762#define CP_DO_SELECTION_PHASE1_METHOD CPSM_OOSA_SCAN_LIST
763#define CP_DO_SELECTION_PHASE2_METHOD CPSM_OOSA_SCAN_LIST
764#define CP_DO_SELECTION_PHASE3_METHOD CPSM_OOSA_SCAN_LIST
765#define CP_DO_SELECTION_PHASE4_METHOD CPSM_OOSA_SCAN_LIST
766#define CP_DO_SELECTION_PHASE5_METHOD CPSM_OOSA_SCAN_LIST
767#define CP_DO_SELECTION_PHASE6_METHOD CPSM_OOSA_SCAN_LIST
768
769/*end: DO OOSA Scanning parameter while IxInit&DOInit*/
770
771#else/*#if ( defined(MTK_DEV_C2K_IRAT) && defined(MTK_DEV_C2K_SRLTE))*/
772
773/*begin: DO OOSA Scanning parameter while IxInit&DOInit*/
774#define CURRENT_DO_POWERUP_OOSA_PHASES 5
775
776#define CP_DO_SELECTION_PHASE0_DELAY 480 /* delay between phase 1 attempts, time = DELAY * TIME_SCALE */
777#define CP_DO_SELECTION_PHASE1_DELAY 10 /* delay between phase 2 attempts */
778#define CP_DO_SELECTION_PHASE2_DELAY 30 /* delay between phase 3 attempts */
779#define CP_DO_SELECTION_PHASE3_DELAY 60 /* delay between phase 4 attempts */
780#define CP_DO_SELECTION_PHASE4_DELAY 300 /* delay between phase 4 attempts */
781
782#define CP_DO_SELECTION_PHASE0_SCANTIME 120 /* Phase 1 time to scan per cycle, time = SCANTIME * TIME_SCALE */
783#define CP_DO_SELECTION_PHASE1_SCANTIME 30 /* Phase 2 scan time */
784#define CP_DO_SELECTION_PHASE2_SCANTIME 30 /* Phase 3 scan time */
785#define CP_DO_SELECTION_PHASE3_SCANTIME 30 /* Phase 4 scan time */
786#define CP_DO_SELECTION_PHASE4_SCANTIME 30 /* Phase 4 scan time */
787
788
789#define CP_DO_SELECTION_PHASE0_CYCLE 1 /* # of phase 1 tries which */
790#define CP_DO_SELECTION_PHASE1_CYCLE 3 /* # of phase 2 tries which */
791#define CP_DO_SELECTION_PHASE2_CYCLE 4 /* # of phase 3 tries which */
792#define CP_DO_SELECTION_PHASE3_CYCLE 4 /* # of phase 3 tries which */
793#define CP_DO_SELECTION_PHASE4_CYCLE MAX_CYCLE /* # of phase 3 tries which */
794
795#define CP_DO_SELECTION_PHASE0_METHOD CPSM_OOSA_SCAN_TIMER
796#define CP_DO_SELECTION_PHASE1_METHOD CPSM_OOSA_SCAN_LIST
797#define CP_DO_SELECTION_PHASE2_METHOD CPSM_OOSA_SCAN_LIST
798#define CP_DO_SELECTION_PHASE3_METHOD CPSM_OOSA_SCAN_LIST
799#define CP_DO_SELECTION_PHASE4_METHOD CPSM_OOSA_SCAN_LIST
800/*end: DO OOSA Scanning parameter while IxInit&DOInit*/
801#endif /*#if ( defined(MTK_DEV_C2K_IRAT) && defined(MTK_DEV_C2K_SRLTE))*/
802
803
804
805#if 0 /*#ifdef SPRINT_EXTENSIONS*/
806/* under construction !*/
807/* under construction !*/
808/* under construction !*/
809/* under construction !*/
810/* under construction !*/
811/* under construction !*/
812/* under construction !*/
813/* under construction !*/
814/* under construction !*/
815/* under construction !*/
816/* under construction !*/
817/* under construction !*/
818/* under construction !*/
819/* under construction !*/
820/* under construction !*/
821/* under construction !*/
822/* under construction !*/
823/* under construction !*/
824/* under construction !*/
825/* under construction !*/
826/* under construction !*/
827/* under construction !*/
828/* under construction !*/
829/* under construction !*/
830/* under construction !*/
831/* under construction !*/
832/* under construction !*/
833/* under construction !*/
834/* under construction !*/
835/* under construction !*/
836/* under construction !*/
837/* under construction !*/
838/* under construction !*/
839/* under construction !*/
840/* under construction !*/
841/* under construction !*/
842/* under construction !*/
843/* under construction !*/
844/* under construction !*/
845/* under construction !*/
846/* under construction !*/
847/* under construction !*/
848/* under construction !*/
849/* under construction !*/
850/* under construction !*/
851/* under construction !*/
852/* under construction !*/
853/* under construction !*/
854/* under construction !*/
855/* under construction !*/
856/* under construction !*/
857#endif
858/*begin: DO OOSA Scanning parameter while IxIdle&DOInit*/
859#define CURRENT_DO_LOST_OOSA_PHASES 7
860
861#define CP_DO_LOST_SELECTION_PHASE0_DELAY 0 /* delay between phase 1 attempts, time = DELAY * TIME_SCALE */
862#define CP_DO_LOST_SELECTION_PHASE1_DELAY 2 /* delay between phase 2 attempts */
863#define CP_DO_LOST_SELECTION_PHASE2_DELAY 4 /* delay between phase 3 attempts */
864#define CP_DO_LOST_SELECTION_PHASE3_DELAY 10 /* delay between phase 4 attempts */
865#define CP_DO_LOST_SELECTION_PHASE4_DELAY 30 /* delay between phase 4 attempts */
866#define CP_DO_LOST_SELECTION_PHASE5_DELAY 60 /* delay between phase 4 attempts */
867#define CP_DO_LOST_SELECTION_PHASE6_DELAY 300 /* delay between phase 4 attempts */
868
869#define CP_DO_LOST_SELECTION_PHASE0_SCANTIME 90 /* Phase 1 time to scan per cycle, time = SCANTIME * TIME_SCALE */
870#define CP_DO_LOST_SELECTION_PHASE1_SCANTIME 0 /* Phase 2 scan time */
871#define CP_DO_LOST_SELECTION_PHASE2_SCANTIME 0 /* Phase 3 scan time */
872#define CP_DO_LOST_SELECTION_PHASE3_SCANTIME 0 /* Phase 4 scan time */
873#define CP_DO_LOST_SELECTION_PHASE4_SCANTIME 0 /* Phase 4 scan time */
874#define CP_DO_LOST_SELECTION_PHASE5_SCANTIME 0 /* Phase 4 scan time */
875#define CP_DO_LOST_SELECTION_PHASE6_SCANTIME 30 /* Phase 4 scan time */
876
877
878#define CP_DO_LOST_SELECTION_PHASE0_CYCLE 1 /* # of phase 1 tries which */
879#define CP_DO_LOST_SELECTION_PHASE1_CYCLE 1 /* # of phase 2 tries which */
880#define CP_DO_LOST_SELECTION_PHASE2_CYCLE 1 /* # of phase 3 tries which */
881#define CP_DO_LOST_SELECTION_PHASE3_CYCLE 4 /* # of phase 3 tries which */
882#define CP_DO_LOST_SELECTION_PHASE4_CYCLE 4 /* # of phase 3 tries which */
883#define CP_DO_LOST_SELECTION_PHASE5_CYCLE 4 /* # of phase 3 tries which */
884#define CP_DO_LOST_SELECTION_PHASE6_CYCLE MAX_CYCLE /* # of phase 3 tries which */
885
886#define CP_DO_LOST_SELECTION_PHASE0_CYCLE_SPRINT 1 /* # of phase 1 tries which */
887#define CP_DO_LOST_SELECTION_PHASE1_CYCLE_SPRINT 3 /* # of phase 2 tries which */
888#define CP_DO_LOST_SELECTION_PHASE2_CYCLE_SPRINT 3 /* # of phase 3 tries which */
889#define CP_DO_LOST_SELECTION_PHASE6_CYCLE_SPRINT MAX_CYCLE /* # of phase 3 tries which */
890
891#define CP_DO_LOST_SELECTION_PHASE1_DELAY_SPRINT 20
892#define CP_DO_LOST_SELECTION_PHASE2_DELAY_SPRINT 60
893
894
895
896#define CP_DO_LOST_SELECTION_PHASE0_METHOD CPSM_OOSA_SCAN_LIST
897#define CP_DO_LOST_SELECTION_PHASE1_METHOD CPSM_OOSA_SCAN_LIST
898#define CP_DO_LOST_SELECTION_PHASE2_METHOD CPSM_OOSA_SCAN_LIST
899#define CP_DO_LOST_SELECTION_PHASE3_METHOD CPSM_OOSA_SCAN_LIST
900#define CP_DO_LOST_SELECTION_PHASE4_METHOD CPSM_OOSA_SCAN_LIST
901#define CP_DO_LOST_SELECTION_PHASE5_METHOD CPSM_OOSA_SCAN_LIST
902#define CP_DO_LOST_SELECTION_PHASE6_METHOD CPSM_OOSA_SCAN_LIST
903/*end: DO OOSA Scanning parameter while IxIdle&DOInit*/
904
905
906#endif
907/**Log information: \main\CBP80\cbp8_gdeng_scbp10126\1 2012-08-09 06:02:39 GMT gdeng
908** HREF#10126**/
909/**Log information: \main\Trophy\Trophy_yni_href22337\1 2013-12-23 02:56:20 GMT yni
910** HREF#22337 adjust OOSA strategy **/
911/**Log information: \main\Trophy\1 2013-12-23 03:08:19 GMT jzwang
912** href#22337**/
913