blob: 1d96ebbfaa306691ba68720af43e3d48e231ec01 [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 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* 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) 1997-2010 VIA Telecom, Inc. All rights reserved.
42*
43*************************************************************/
44#ifndef _PSWCUSTOM_H_
45#define _PSWCUSTOM_H_
46
47#include "kal_public_api.h"
48#include "kal_public_defs.h"
49#include "kal_general_types.h"
50
51/****************************************************************************
52 *
53 * Module: pswcustom.h
54 *
55 * Purpose: Customer specified compile switches
56 *
57* HISTORY :
58* See Log at end of file
59*
60***************************************************************************/
61
62/*****************************************************************************
63 * ------- Code-Build Options ... comment/uncomment as required ------- *
64 ****************************************************************************/
65
66
67#define IS2000_REV_0 1 /* Activate all IS2000 Rev.0 SW */
68#define IS2000_REV_A 1 /* Activate all IS2000 Rev.0 SW */
69#define DSCH_NEW 1
70
71/* Release A and beyond functionality remains supported in the CBP6
72 * baseline SW as indicated by IS2000_REV_A and DSCH_NEW both being defined.
73 * This decision stems from a mixing Rel0 and Rel > A logic that has not been
74 * clearly separated using the above #defines. However, CBP6 solution has
75 * not been verified on RelA networks and thus cannot be truly RelA compliant.
76 * Some of the RelA SW must be cleaned up in order for the SW to be optimized
77 * for Rel0 solutions. The REMOVE_IS2000_REL_A #define was created for this
78 * purpose. In the case where the CBP6 solution is targeted for a RelA system,
79 * REMOVE_IS2000_REL_A must be deleted or set to 0.
80 */
81#define REMOVE_IS2000_REL_A 1
82
83#ifdef IS95A
84#define T53_OR_IS95A 1
85#else /* !IS95A */
86#define T53_PLUS_OR_95B 1
87#endif
88
89/*****************************************************************************
90 * ------- Tune parameters - adjust as required *
91 ****************************************************************************/
92
93#ifdef MTK_PLT_ON_PC_UT
94/* Set default CCI to enabled in UT. */
95#define CP_QPCH_CCI_ENABLED_DEFAULT KAL_TRUE
96#else
97#define CP_QPCH_CCI_ENABLED_DEFAULT KAL_FALSE
98#endif
99
100/* Sim QPCH feature: when enabled, QPCH-like wake may occur before PCH wake
101 in networks where QPCH is disabled. QPCH PI is ignore, the QPCH wake is
102 only used for best PN selection before PCH wake. This is the default init
103 value. It can be changed at run-time and it is stored in PSW Misc DBM */
104#if defined(KDDI_EXTENSIONS)
105#define CP_SIM_QPCH_ENABLED_DEFAULT KAL_TRUE
106#else
107#define CP_SIM_QPCH_ENABLED_DEFAULT KAL_FALSE
108#endif
109/* dynamic QPCH enable/disable based on Pilot Ec/Io thresholds */
110#if defined(KDDI_EXTENSIONS)
111#define CP_QPCH_DYNAMIC_CTRL_ENABLED_DEFAULT KAL_TRUE
112#else
113#define CP_QPCH_DYNAMIC_CTRL_ENABLED_DEFAULT KAL_FALSE
114#endif
115#define CP_QPCH_DYNAMIC_CTRL_ECIO_THRESH_LOW 2609 /* -14 dB */
116#define CP_QPCH_DYNAMIC_CTRL_ECIO_THRESH_HIGH 5205 /* -11 dB */
117
118/* DFS EcIo Threshhold. DFS not started until active EcIo is weaker than threshhold */
119#if defined(KDDI_EXTENSIONS)
120#define CP_DEFAULT_DFS_ECIO_THRESH 24 /* -12.0 dB, Units -0.5dB */
121#else /* always do DFS */
122#define CP_DEFAULT_DFS_ECIO_THRESH 0
123#endif
124
125#define CP_IC_MODE_DEFAULT IC_NORMAL
126
127/* Min # of frames chipset must rx the action in advance of the action time */
128#if defined (MTK_CBP)
129#define CC_MIN_FRAMES_BEFORE_ACTION_TIME 1
130#else
131#define CC_MIN_FRAMES_BEFORE_ACTION_TIME 3
132#endif
133#define TC_MIN_FRAMES_BEFORE_ACTION_TIME 2
134
135/* Better service rescan after redirection in 5 minutes */
136#define REDIRECTION_END_TIME 300000L /* 300 seconds */
137
138/* default 1x Adv Enabled */
139#define CP_1XADV_ENABLED_DEFAULT KAL_TRUE
140/* default SO73 Control */
141#define CP_SO73_ENABLED_DEFAULT KAL_TRUE
142#define CP_SO73_WBENABLED_DEFAULT KAL_TRUE
143
144/**********************************************************************/
145/***************** END CUSTOM SYSTEM SELECTION ************************/
146/**********************************************************************/
147
148/* PCH Layer 2 */
149/* Increased to 6.2 seconds */
150#define ENG_MAX_BAD_PAGE_FRAME 310 /* 310 * 20 msec = 6.2 sec, for the access followed by idle supervsion 3 sec + 3 sec */
151
152/* this sets number of base stations for which
153 * overhead info is stored
154 */
155#define MAX_HISTORY_RECS 7
156
157/* new Idle Handoff Parameters */
158#define THR_SLOPE_RES 2 /* Q-precision resolution of specified line slopes.
159 (2^-THR_SLOPE_RES)*(SPEC integer slope in dB(thresh)
160 /dB(Active pwr)). */
161#define THR_SLOPE_MID 2 /* (2^THR_SLOPE_RES)/2 used for slope rounding. */
162
163#define MIN_ACT_IMMED 34 /* -17.0 dB active power below the "instant" test
164 threshold is THR_MIN_IMMED. */
165
166#define THR_SLOPE_IMMED 1 /* Slope of instant threshold above active power
167 MIN_ACT_IMMED in units of dB(thresh)/dB(Active pwr)/
168 2^THR_SLOPE_RES. */
169#define THR_MIN_IMMED 4 /* Minimum value of the "instant" test threshold.
170 Units -0.5dB. */
171#define MIN_ACT_DELAYED 34 /* Minimum value of the "persistance" test threshold.
172 Units -0.5dB. */
173#define THR_SLOPE_DELAYED 1 /* Active power below which the "persistance" test
174 threshold is THR_MIN_DELAYED. */
175#define THR_MIN_DELAYED 1 /* Slope of the instant threshold above active power of
176 MIN_ACT_DELAYED, in units of dB(thresh)/dB(active pwr)
177 /2^THR_SLOPE_RES. */
178#define HO_DELAYED_IHO_COUNT 2 /* Persistence test for delayed HO
179 ( default: 2 consecutive search results) */
180#define NOISE_THRESHOLD 50 /* Threshold below which no neighbor pilot will be
181 considered a valid target for handoff, units -0.5dB */
182#define MIN_NGHBR_THR 36 /* Idle Handoff Candidates must be atleast -18.0 dB . */
183
184#if defined(MTK_CBP)
185/* Access Entry HO Parameters */
186#define CP_ACCESS_ENTRY_HO_WEAK_PILOT_STRENGTH 24 /* -12 dB */
187#else
188/* Access Entry HO Parameters */
189#define CP_ACCESS_ENTRY_HO_WEAK_PILOT_STRENGTH 14 /* -7 dB */
190#endif
191
192/* Max # of Access Slots to delay due to persistence before transmit msg */
193#define ENG_MAX_PSIST_ACCESS_SLOTS 6
194
195
196/* Default Service Option */
197
198#define CP_CUSTOM_DEFAULT_SERVICE_OPTION 3 /* Rate set 1, EVRC */
199#define CP_CUSTOM_DEFAULT_HOME_MO_SO 3
200#define CP_CUSTOM_DEFAULT_ROAM_MO_SO 3
201#define CP_CUSTOM_DEFAULT_HOME_MT_SO 3
202
203/* Service Configuration - Maximum Number of Service Option Connections */
204#define CP_MAX_SERV_OPT_CONN_REC 2
205
206/* Maximum Service Option Control Message Record Length */
207#define MAX_SERV_OPT_CNTL_RECORD_LEN 128
208
209/* Maximum Mobile Station Supported Supplemental Code Channels */
210#define CP_MAX_SUP_CODE_CHANNELS 7
211
212/* Maximum Sizes for Messaging Elements */
213#define CP_MAX_CALLED_PARTY_NUMBER_SIZE 32 /* Called Party # record */
214#ifdef MTK_CBP
215#define CP_MAX_CALLING_PARTY_NUMBER_SIZE 50 /* Calling Party # record */
216#else
217#define CP_MAX_CALLING_PARTY_NUMBER_SIZE 32 /* Calling Party # record */
218#endif
219#define CP_MAX_REDIRECTING_NUMBER_SIZE 32 /* Redirecting # record */
220#define CP_MAX_EXTENDED_DISPLAY_SIZE 82 /* Extended Display record */
221#define CP_MAX_DISPLAY_SIZE 82 /* Display record */
222#define CP_MAX_KEYPAD_FACILITY_SIZE 32 /* Keypad Facility record */
223#ifdef MTK_CBP
224#define CP_MAX_SUBADDRESS_SIZE 50 /* Subaddress record */
225#else
226#define CP_MAX_SUBADDRESS_SIZE 32 /* Subaddress record */
227#endif
228#define CP_MAX_BURST_DTMF_DIGITS 255 /* Burst DTMF msg */
229#define CP_MAX_DATA_BURST_CHAR 249 /* Data Burst msg */
230 /* 255 - Data Burst header */
231#define CP_MAX_CADENCE_GROUPS_REC 16
232#define CP_MAX_EXTENDED_DISPLAY_REC 3
233
234/* Traffic Channel Message Transmitter (tc_mtx.c) */
235
236/* TC Transmitter Queue Sizes */
237#define ACKQ_SIZE 8 /* TC Ack Queue Size */
238#define MSGQ_SIZE 8 /* TC Msg Queue Size */
239
240/* Traffic Channel Transmit Window Size */
241#define TC_TX_WINDOW_SIZE 4
242#if ((TC_TX_WINDOW_SIZE == 0) || (TC_TX_WINDOW_SIZE > 4))
243#error "Bad TC Transmit Window Size!"
244#endif
245
246/* Minimum backoff time in frames from T2m to transmit an ACK */
247/* **
248** Have to take into account potential queuing delay of **
249** 1 frame, message passing, and one frame for insurance. **
250** Note: An Acknowledgement Message should fit in one frame: **
251** MSG_LENGTH + MSG_TYPE + ACK_FIELDS + ORDER + **
252** ADD_REC_LEN + RESERVED + CRC = 56 bits = 7 bytes **
253** **
254** Mux 1 9600 bps 1/2 rate - 88 signalling bits **
255** Mux 2 14400 bps 1/2 rate - 138 signalling bits **
256** */
257#define TC_TX_PIGGYBACK_BACKOFF 5
258#if ((TC_TX_PIGGYBACK_BACKOFF < 3) || (TC_TX_PIGGYBACK_BACKOFF > 10))
259#error "Bad TC Transmit Piggyback Backoff!"
260#endif
261
262/* Minimum Signaling Bits Per Frame */
263/* MUX OPTION 1 (RATE SET 1) 9600 bps, 1/2 rate, Dim & Burst */
264#define TC_TX_MIN_MUX1_SIG_BITS_PER_FRAME 88
265/* MUX OPTION 2 (RATE SET 2) 14400 bps, 1/2 rate, Dim & Burst */
266#define TC_TX_MIN_MUX2_SIG_BITS_PER_FRAME 138
267
268/* Minimum Closed Loop Power Control Step Size */
269#define CP_MIN_PWR_CNTL_STEP 2
270
271/* Traffic Channel Pilot Set Maintenance */
272#define CP_T_DROP_COUNT 1
273
274/* Amount of time to inhibit Registration after a failure */
275#define CP_REG_DELAY_AFTER_FAIL 5000 /* msec */
276
277#define ACCESS_FAIL_COUNT 5
278#define DELAYED_ORIG_WAITING_TIME 70000/* time wait before abort orig attempt */
279 /* 70sec (similar to silent retry) */
280/* SNR SR - Silent Retry defines. */
281#define MAX_SILENT_RETRIES 15 /* Max no of sub-attempt permitted */
282#define SILENT_RETRY_TIMEOUT 20L /* 20ms -> 1 frame delay before Reorig */
283#define SILENT_RETRY_RESET_TIMEOUT 30000L /* 45 Sec Failsafe Timeout to reset SR
284 * upon expiration.
285 */
286
287#ifndef OTA_MAX_MDN_DIGITS
288#define OTA_MAX_MDN_DIGITS 15
289#endif
290
291/* MAX_BCASTS is the number of broadcast messages that can be
292 * checked for duplicates.
293 * If more than MAX_BCASTS distinct messages are received within
294 * four broadcast cycles, messages will not be lost but duplicates
295 * may be reported.
296 */
297#define MAX_BCASTS 10
298
299/* MAX_SINGLE_AWI_SMS_WORDS is the maximum size of a
300 * SMS message that can be received in a single
301 * ALERT_WITH_INFO_SMS message. It is in units of FVC words
302 * (each of which has 3 bytes of user data)
303 * NOTE: This must not be greater than 127 !
304 */
305#define MAX_SINGLE_AWI_SMS_WORDS 64
306
307/* MAX_ALERT_WITH_INFO_SMS_SIZE is the maximum size of an
308 * SMS message that can be received via a series of
309 * ALERT_WITH_INFO_SMS messages.
310 */
311#define MAX_ALERT_WITH_INFO_SMS_SIZE 256
312
313/* R.Sattari, 9/6/00, added defines for capability fields of the capability */
314/* information record. Set to 1 for enabled, and to 0 for disabled */
315/* CR 6254
316 These macros are no longer needed. They are replaced by enums in
317 Ms_cap_db.h
318
319#define CP_ACCESS_ENTRY_HO_ENABLED 1
320#define CP_ACCESS_PROBE_HO_ENABLED 1
321#define CP_ANALOG_SEARCH_ENABLED 0
322#define CP_HOPPING_BEACON_ENABLED 0
323#define CP_MAHHO_ENABLED 0
324#define CP_PUF_ENABLED 0
325#define CP_ANALOG_553A_ENABLED 0
326*/
327
328/* PDCH params */
329#define CP_MAX_PDCCH_CH 8
330
331/* Default Customer Preferred Service Option */
332#define PSW_DEFAULT_LSD_SO_PREF SERVICE_OPTION_15
333#define PSW_DEFAULT_MSD_SO_PREF SERVICE_OPTION_33
334#define PSW_DEFAULT_ASYNC_SO SERVICE_OPTION_12
335#define PSW_DEFAULT_FAX_SO SERVICE_OPTION_13
336#define PSW_DEFAULT_IS126_SO SERVICE_OPTION_2
337#define PSW_DEFAULT_MARKOV_SO SERVICE_OPTION_32798
338#define PSW_DEFAULT_SUPL_LPBK_SO SERVICE_OPTION_30
339#if defined(MTK_CBP) || defined(SMARTFREN_EXTENSIONS)
340#define PSW_DEFAULT_SMS_SO SERVICE_OPTION_6
341#else
342#define PSW_DEFAULT_SMS_SO SERVICE_OPTION_14
343#endif
344#define PSW_DEFAULT_OTASP_SO SERVICE_OPTION_19
345#define PSW_DEFAULT_CSC_SO SERVICE_OPTION_35
346#define PSW_DEFAULT_VOICE_SO CP_CUSTOM_DEFAULT_SERVICE_OPTION
347
348
349#define PSW_OTAPA_NAM_LOCK_DEFAULT OTAPA_NAM_LOCK_KEEP_BS_SETTING
350#define PSW_OTASP_POWERUP_MODE_DEFAULT OTASP_COMPLETE_PSW_AUTO_POWERCYCLE
351
352/*****************************************************************************
353 * removed!
354 * removed!
355 * removed!
356 * removed!
357 * removed!
358 * removed!
359 * removed!
360 * removed!
361 * removed!
362 * removed!
363 * removed!
364 * removed!
365 * removed!
366 * removed!
367 * removed!
368 * removed!
369 * removed!
370 * removed!
371 * removed!
372 * removed!
373 * removed!
374 * removed!
375 * removed!
376 * removed!
377 * removed!
378 * removed!
379 * removed!
380 * removed!
381 * removed!
382 * removed!
383 * removed!
384 * removed!
385 * removed!
386 * removed!
387 * removed!
388 * removed!
389 * removed!
390 * removed!
391 * removed!
392 * removed!
393*
394 * removed!
395 * removed!
396 * removed!
397 * removed!
398 * removed!
399 * removed!
400 * removed!
401 * removed!
402 * removed!
403 * removed!
404 * removed!
405 * removed!
406 * removed!
407 * removed!
408 * removed!
409 * removed!
410 * removed!
411 * removed!
412 * removed!
413 * removed!
414 * removed!
415 * removed!
416 * removed!
417 * removed!
418 * removed!
419 * removed!
420 * removed!
421 * removed!
422 * removed!
423 * removed!
424 * removed!
425 * removed!
426 * removed!
427 * removed!
428*
429 * removed!
430 * removed!
431 * removed!
432 * removed!
433 * removed!
434 * removed!
435 * removed!
436 * removed!
437 * removed!
438 * removed!
439 * removed!
440 * removed!
441 * removed!
442 * removed!
443 * removed!
444 * removed!
445 * removed!
446*
447 * removed!
448 * removed!
449*****************************************************************************/
450
451/*****************************************************************************
452* End of File
453*****************************************************************************/
454#endif /* _CUSTOM_H_ */
455/**Log information: \main\CBP80\cbp80_cshen_scbp10283\cbp80_gdeng_scbp10309\1 2012-09-13 09:10:44 GMT gdeng
456** scbp10309**/
457/**Log information: \main\SMART\1 2013-04-23 06:23:00 GMT yxma
458** HREF#22166 , add default custom service option to SMARTFREN
459|
460|**/
461/**Log information: \main\SMART\2 2013-04-24 09:44:37 GMT yxma
462** HREF#22179,modify default smartfren sms option
463|**/
464/**Log information: \main\SMART\3 2013-04-27 08:09:18 GMT yxma
465** HREF#22188 , modify smartfren primary voice so**/
466/**Log information: \main\Trophy\Trophy_gdeng_href22222\1 2013-06-08 01:22:06 GMT gdeng
467** HREF#22222**/
468/**Log information: \main\Trophy\2 2013-06-08 01:27:18 GMT cshen
469** href#22222**/
470/**Log information: \main\Trophy\Trophy_SO73\1 2013-07-09 05:09:38 GMT gdeng
471** HREF#0000 **/
472/**Log information: \main\Trophy\Trophy_SO73\2 2013-07-18 05:11:58 GMT gdeng
473** HREF#0000 enable wb 73**/
474/**Log information: \main\Trophy\4 2013-07-18 05:32:44 GMT cshen
475** href#22222**/
476