blob: 52bf2b8c8d24381beb80746634917b9aff9b1dd1 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*******************************************************************************
37 *
38 * Filename:
39 * ---------
40 * libParserDbModem.c
41 *
42 * Project:
43 * --------
44 * MOLY
45 *
46 * Description:
47 * ------------
48 * This file collects primitve IDs and struct definition from the Modem
49 * application part for pre-processing.
50 *
51 * Author:
52 * -------
53 * -------
54 *
55 * =============================================================================
56 * $Log$
57 *
58 * 12 16 2021 changlong.chen
59 * [MOLY00774161] [mt2735][CS eCall][NG eCall][patch back] ecall patch back from NR15.R3.MD700.MP.ECAll.DEV
60 *
61 * .
62 * l5uecall patch(MPD domain) back from NR15.R3.MD700.MP.ECAll.DEV
63 *
64 * 01 22 2021 kiwi.zhang
65 * [MOLY00608850] NRTC CoEx command support is needed
66 *
67 * .L5 NRTC MPD Modify
68 *
69 * 12 03 2020 tongkun.zhang
70 * [MOLY00593154] [L5] patch back L5 from NR15.R3.MD700.MP to NR15.R3.MD700.MP
71 *
72 * [L5IO]unify AT handle
73 * 1. send ilm to replace recurse
74 * 2. handle mulit-at from CUST/MBCI/MIPC
75 * 3. meta_ctxt rearch...
76 *
77 * 11 16 2020 shih-yu.chen
78 * [MOLY00595245] [Colgin] TMC development
79 * [TMC] patch back to MD700.
80 *
81 * 11 13 2020 harold.liu
82 * [MOLY00594647] [MD700][L5]patch back L5 to NR15.R3.MD700.MP
83 * io track add cmd id
84 * FROM:CL13166290
85 *
86 * 11 11 2020 chih-ting.yeh
87 * [MOLY00590833] ICD JSON Auto Gen Feature
88 * [Enhance] ICD header package refinement
89 * ======
90 * - add new generated ICD header to DB
91 * - move including ICD code range from interface to internal header
92 * - add ICD mock header
93 *
94 * 11 11 2020 fengwen.weng
95 * [MOLY00543445] [Gen97][Colgin] TFWK Thermal Development
96 * .display structure info on ELT
97 *
98 * 11 10 2020 tongkun.zhang
99 * [MOLY00593154] [L5] patch back L5 from NR15.R3.MD700.MP to NR15.R3.MD700.MP
100 * [L5][MPD]libParseDbModem
101 *
102 * 09 24 2020 harold.liu
103 * [MOLY00560596] [T700][L5]patch back L5 to NR15.R3.T700.MP
104 *
105 * io track add cmd id
106 *
107 * 09 18 2020 cosmo.sung
108 * [MOLY00569501] [Gen97] TC10 patch back
109 *
110 * - L4 CC/SS
111 *
112 * 09 18 2020 cosmo.sung
113 * [MOLY00569501] [Gen97] TC10 patch back
114 *
115 * - L4 CC/SS
116 *
117 * 09 18 2020 cosmo.sung
118 * [MOLY00569501] [Gen97] TC10 patch back
119 *
120 * - L4 CC/SS
121 *
122 * 09 18 2020 cosmo.sung
123 * [MOLY00569501] [Gen97] TC10 patch back
124 *
125 * - L4 CC/SS
126 *
127 * 08 28 2020 tong.li
128 * [MOLY00562709] [5GHP][feature][Data&Call]game space mode
129 * .
130 *
131 * 08 19 2020 guo-huei.chang
132 * [MOLY00538247] ?�维测�?求�?�ICD??��?�modem 待机??�工作状?�相?��?��?��
133 *
134 * DHL part
135 *
136 * 08 13 2020 ken.li
137 * [MOLY00543497] [MT6873][Margaux][R0][MP5][in-house FTA][LTE][7.1.1.2]enable volte fail
138 *
139 * UPCM TESTMODE drops non-loopback data for obtaining IP address case (MPD, libParseDbModem)
140 *
141 * 07 27 2020 dennis.tsai
142 * [MOLY00549478] [Gen97][HE3.0]N3GPP offload over data feature
143 *
144 * patch back from dev for vodata feature.
145 *
146 * 07 27 2020 dennis.tsai
147 * [MOLY00549478] [Gen97][HE3.0]N3GPP offload over data feature
148 *
149 * patch back from dev for vodata feature.
150 *
151 * 07 23 2020 dennis.tsai
152 * [MOLY00546023] [Gen97][VoDATA] implement intctrl and feature for VoDATA
153 * add ddm_intctrl_struct.h to db.
154 *
155 * 07 17 2020 dennis.tsai
156 * [MOLY00546023] [Gen97][VoDATA] implement intctrl and feature for VoDATA
157 *
158 * add intctrl msgid to libparsedb, fix build error.
159 *
160 * 07 16 2020 ssu-hsien.wu
161 * [MOLY00545981] [Gen97][N3GPP_OVER_DATA] Add feature option and compile option for N3GPP offload over data.
162 *
163 * Rollback libParseDbModem.c to fix build error.
164 *
165 * 06 29 2020 lucien.li
166 * [MOLY00535120] [Gen97] Intra-Band DR-DSDS
167 *
168 * [L4C] DSDA rename
169 *
170 * 06 13 2020 yilun.yang
171 * [MOLY00530105] [MP5][SQC][MT6885][Petrus][Q0][MP2][AT&T][10776v20_1][R3MP][PTN][simulation][inhouse][RnS][ATTACH/RESTART][LTE-BTR-1-8212]Test case failed due to ## LTE ## EsmPdnConnectivityRequest TimeOut
172 * Route PS_EVENT_IND to DDM through L4BNW.
173 *
174 * 06 10 2020 yilun.yang
175 * [MOLY00530105] [MP5][SQC][MT6885][Petrus][Q0][MP2][AT&T][10776v20_1][R3MP][PTN][simulation][inhouse][RnS][ATTACH/RESTART][LTE-BTR-1-8212]Test case failed due to ## LTE ## EsmPdnConnectivityRequest TimeOut
176 * Send PS_EVENT_REPORT_IND to DDM through L4BNW.
177 *
178 * 03 06 2020 tim-yw.liu
179 * [MOLY00503552] [UESIM] Re-arch VMMI to support dummyAP and ATcmd multi-channel
180 *
181 * Add DummyAP and support ATcmd multi-channel
182 *
183 * 02 26 2020 willy-wj.chen
184 * [MOLY00501981] [Gen97][UPCM] TMO-US F4L data performance patch sync from Gen93
185 * [UPCM] put small UDP packet into pri-SIT upon channel lock.
186 *
187 * 02 14 2020 you-ren.chen
188 * [MOLY00466485] [Gen97][NWSIM][4G][LTE_01_07]Bearer Resource Modification Request Timeout
189 *
190 * Dedicated bearer clear mode should not be thought as dedicated bearer setting.
191 *
192 * 02 14 2020 you-ren.chen
193 * [MOLY00466485] [Gen97][NWSIM][4G][LTE_01_07]Bearer Resource Modification Request Timeout
194 *
195 * Dedicated bearer clear mode should not be thought as dedicated bearer setting.
196 *
197 * 02 14 2020 actory.ou
198 * [MOLY00499908] [MT6873][Margaux][Q0][MP2][SQC][Log profiling]LTE VoLTE PS Standard filter - W06 target fail - MOD_CCISMCORE
199 * [VMOLY][MPD] add ccci enum for log reduction
200 *
201 * 02 13 2020 chia-yu.ku
202 * [MOLY00488288] [FTAA][CNY][MT6873][Margaux][Q0][MP2][SQC][NSA][CU FT][China][Shanghai][Nokia][MDST][Static][SWIFT][SIM1:CU],mtkrild:AT command pending too long. assert!!! AT cmd: COPS
203 *
204 * .
205 *
206 * 02 13 2020 chia-yu.ku
207 * [MOLY00488288] [FTAA][CNY][MT6873][Margaux][Q0][MP2][SQC][NSA][CU FT][China][Shanghai][Nokia][MDST][Static][SWIFT][SIM1:CU],mtkrild:AT command pending too long. assert!!! AT cmd: COPS
208 *
209 * .
210 *
211 * 02 12 2020 kc.lin
212 * [MOLY00499183] [VMOLY][LADN-IT] LADN bugs check-in
213 * .
214 *
215 * 02 04 2020 allen.keh
216 * [MOLY00476273] [MT6297][gemini][VGMM] gemini phase 2 development
217 * .1. not perform gemini abort MRU during MSPM_IMS_CALL_ALT1 or MSPM_IMS_CALL_ALT2 session
218 * 2. paging period protect
219 * 3. paging DRB protect
220 * 4. DL data protect
221 *
222 * 01 21 2020 louis-tw.huang
223 * [MOLY00475688] [Gen97][VMOLY][UT][MRDC-IDC] enable dummy L1 IDC module for ERRC UT verification
224 * .
225 *
226 * 01 14 2020 yongjian.zhao
227 * [MOLY00469848] root certificate feature check in
228 *
229 * certificate refactoring
230 *
231 * 01 02 2020 icy.li
232 * [MOLY00469376] [VMOLY][WLC] correct WLC compile option
233 *
234 * .
235 *
236 * 12 24 2019 po-chun.lee
237 * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
238 *
239 * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
240 *
241 * .
242 *
243 * 12 24 2019 po-chun.lee
244 * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
245 *
246 * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
247 *
248 * .
249 *
250 * 12 24 2019 po-chun.lee
251 * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
252 *
253 * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
254 *
255 * .
256 *
257 * 12 23 2019 po-chun.lee
258 * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
259 * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
260 *
261 * .
262 *
263 * 12 08 2019 icy.li
264 * [MOLY00463016] [Submarine] Add __MD_WLC_SUPPORT__to replace __SUBMARINE_SUPPORT__ flag
265 *
266 * .
267 *
268 * 12 06 2019 yu-ting.hsu
269 * [MOLY00464179] [6297] ENRLC module level 1001 patch back to VMOLY
270 *
271 * ENRLC module level patch back
272 *
273 * 12 06 2019 can.lin
274 * [MOLY00463601] [Gen97] Modify SASE module
275 *
276 * SASE DHL Definition
277 *
278 * 12 06 2019 po-chun.lee
279 * [MOLY00463967] [N3X][VMOLY] Patch Back-
280 *
281 * ATP
282 *
283 * 12 05 2019 tc.chang
284 * [MOLY00446861] [Gen97][Code Sync] [B190414-819]?ģ??{d?AI??450 (?`X?A?h`?) According to data type to release HPS for paging.
285 *
286 * 12 04 2019 jie-yu.wang
287 * [MOLY00462619] [GNSS_TC/LBS/GPS] code change and make file change
288 * [LBS] Trace.
289 *
290 * 12 03 2019 prime.xiao
291 * [MOLY00456600] [Gen97] NR Map Feature
292 *
293 * .
294 *
295 * 12 02 2019 jun-han.lin
296 * [MOLY00462166] MDFPM support feature option on/off
297 *
298 * MDFPM feature option on/off
299 *
300 * 12 02 2019 prime.xiao
301 * [MOLY00381008] [Gen97][GMSS] 5G related feature
302 *
303 * .MOLY00366859
304 * MOLY00438399
305 * MOLY00442288
306 * MOLY00442633
307 * MOLY00442781
308 * MOLY00443807
309 *
310 * 11 29 2019 chang-yen.chih
311 * [MOLY00462536] [VMOLY] Support getting RAN info in EPDN
312 *
313 * EPDN RAN (interface & D2RM)
314 *
315 * 11 29 2019 chang-yen.chih
316 * [MOLY00462536] [VMOLY] Support getting RAN info in EPDN
317 * EPDN RAN (interface & D2RM)
318 *
319 * 11 08 2019 ya.li
320 * [MOLY00419192] [MT6779][Lafite][P0][WW FT][Singapore][IMS][SQC Excluded][VoLTE][TPG][TCID: V_SS_013] DUT is showing error when selecting 'show number' & 'network default' in CLIR settings while working fine when selecting 'hide number'
321 *
322 * .
323 *
324 * 11 05 2019 yenchih.yang
325 * [MOLY00456796] 2501730----��?�d�A��??��5G??�ANetwork Selecting��?��NR/LTE/UMTS/GSM/C2K,����`?5G.
326 *
327 * 10 17 2019 jani.manninen
328 * [MOLY00448006] [MT6885][Petrus][MP1][SQC][SH][5GMM][Static][CU][MDST][SWIFT][S] [Fatal error(buf)] err_code1:0x00000823 err_code2:0x00000020 err_code3:0xCCCCCCCC
329 *
330 * .
331 *
332 * 09 25 2019 ian-yw.chen
333 * [MOLY00401131] [Gen97] porting from 95
334 * .
335 *
336 * 09 25 2019 chen-wei.lan
337 * [MOLY00443561] [Gen97] SCBM
338 * SCBM
339 *
340 * 09 24 2019 howen.pu
341 * [MOLY00440880] EM info with XCAP information
342 * XCAP - VMOLY Common.
343 *
344 * 09 23 2019 louis-tw.huang
345 * [MOLY00439533] [Gen97][IDC] IDC feature development [EWSP0000046233]
346 *
347 * 09 23 2019 jerry-kirk.yang
348 * [MOLY00441364] [UPDS] Add new task for UE policy delivery service
349 * [VMOLY_TRUNK][MPD][UPDS] DB update.
350 *
351 * 09 21 2019 guan-ren.chen
352 * [MOLY00327199] [Gen97] Development
353 * 1. ULSP DSP refactory
354 * 2. Remove SW pull power when PB is not empty
355 * 3. Move DSP ST log definition file from HWRD to MPD
356 *
357 * 09 18 2019 guan-ren.chen
358 * [MOLY00327199] [Gen97] Development
359 * 1. ULSP DSP refactory
360 * 2. Remove SW pull power when PB is not empty
361 * 3. Move DSP ST log definition file from HWRD to MPD
362 *
363 * 09 16 2019 harish.reddy
364 * [MOLY00438652] [CODE SYNC] ????????????????? - DMF Report Part
365 *
366 * 09 09 2019 yu-hsiang.peng
367 * [MOLY00402569] [VMOLY] Logging Related Feature Patch
368 * [TRUNK] MPD, custom cmd + sap reboot
369 * 2019.09.09
370 *
371 * 09 06 2019 vend_mti_wsd_005
372 * [MOLY00437612] [VMOLY][New feature check-ins] Add SWLA customLog in wifiproxy for performance profile
373 *
374 * [MPD] Add SWLA customLog in wifiproxy for performance profile
375 *
376 * 09 06 2019 amit.singh
377 * [MOLY00433282] VMOLY KPALV module check-in
378 *
379 * VMOLY Latest patch MPD C.
380 *
381 * 09 03 2019 chun-yu.chien
382 * [MOLY00436706] [Code Sync] DMF report part porting
383 *
384 * DMF report part porting - Source
385 *
386 * 08 26 2019 shi-yang.huang
387 * [MOLY00434739] [6297][ENDC][SLEEP] ENDC common gap framework modification for sleep mode
388 *
389 * Trigger auto-sync[SKIP EWSP: Fix build error, trigger auto-sync to Mercury]
390 *
391 * 08 26 2019 shi-yang.huang
392 * [MOLY00434739] [6297][ENDC][SLEEP] ENDC common gap framework modification for sleep mode
393 *
394 * [Skip EWSP: Pass EWSP with another shelved CL: EWSP0000035957]
395 *
396 * 08 26 2019 chen-wei.lan
397 * [MOLY00433041] [Gen97][EPSFB] IT related issues
398 * uac
399 *
400 * 08 21 2019 cheng-dao.lee
401 * [MOLY00433074] [VMOLY] MCIF patches
402 *
403 * enable MCIF
404 *
405 * 08 15 2019 lucien.li
406 * [MOLY00427072] [Gen97][NSA] Deactivate ENDC feature
407 * [SQC][OPPO][L4C] SCG activation
408 *
409 * 08 09 2019 danny.kuo
410 * [MOLY00430467] [Gen97] DMF patch back to Gen97
411 * .
412 *
413 * 08 08 2019 mika.kaikkonen
414 * [MOLY00397648] [Submarine] Modem Certificate module
415 *
416 * Cert definitions to libParseDbModem.c and srcParseDbModem.c.
417 *
418 * 08 02 2019 digvijay.arya
419 * [MOLY00401209] [VMOLY]Submarine Crypto module checkin
420 *
421 * Add crypto struct info for logs
422 *
423 * 07 25 2019 head.hsu
424 * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
425 * PERF structure & enum shown in ELT
426 *
427 * 07 24 2019 tim-yw.liu
428 * [MOLY00395518] [Submarine] N3SAM development
429 * N3X/WLC Trace Configuration
430 *
431 * 07 24 2019 head.hsu
432 * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
433 * fix build error
434 *
435 * 07 24 2019 head.hsu
436 * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
437 * PERF API enable (MPD)
438 *
439 * 07 24 2019 peter.yu
440 * [MOLY00420694] [MT6297][Apollo][MP1][SQC][EM][China][Shenzhen][FDD][4GMM][CU+NA][TCID:EM_EL2_001]SRB/DRB number doesn't display the value.
441 * Change structure file for MD database.
442 *
443 * 07 23 2019 ari.simonen
444 * [MOLY00392197] [Submarine] Modem DNS module
445 *
446 * ILM database updates for DNS and Ethernet Service
447 *
448 * 07 18 2019 jun-quan.chen
449 * [MOLY00422579] [MDDP] DPFM porting to VMOLY
450 * [MPD] DPFM patch back
451 *
452 * 07 17 2019 titi.wu
453 * [MOLY00387219] [Gen97] SBP todo list
454 * MOLY00357235 code sync
455 *
456 * 07 16 2019 mika.leinonen
457 * [MOLY00422303] Submarine VMOLY patch back - EAP module
458 * MPD files
459 *
460 * 07 15 2019 konark.mehra
461 * [MOLY00411914] [New feature check-ins] WIFI Proxy feature check-ins
462 *
463 * SUBMARINE patchback
464 *
465 * 07 12 2019 deepti.singh
466 * [MOLY00397188] [Submarine]HTTP dev
467 * HTTP VMOLY PB
468 *
469 * 07 09 2019 amit.singh
470 * [MOLY00420334] Dispatcher module check-in VMOLY [SUBMARINE]
471 *
472 * Dispatcher code check-in
473 *
474 * 07 04 2019 bo-kai.huang
475 * [MOLY00357061] 97 Code Merge
476 * [WT] merge.
477 *
478 * 07 03 2019 mark.ng
479 * [MOLY00415229] NMAC RBR feature development
480 * RBR interface and code (MPD)
481 *
482 * 06 27 2019 aaron.liu
483 * [MOLY00415398] [Gen97][NR][General Error Recovery] ERM: Errory Recovery Module part.
484 * Add __NR_RAT__.
485 *
486 * 06 26 2019 aaron.liu
487 * [MOLY00415398] [Gen97][NR][General Error Recovery] ERM: Errory Recovery Module part.
488 * ERM main body.
489 *
490 * 06 14 2019 chunchieh.liao
491 * [MOLY00412901] [GEN97][MML1][CDF] Header re-organization for trace enum.
492 *
493 * -- [EWSP0000017597] (MPD)
494 *
495 * 06 14 2019 chunchieh.liao
496 * [MOLY00412901] [GEN97][MML1][CDF] Header re-organization for trace enum.
497 * -- [EWSP0000017597] (MPD)
498 *
499 * 06 12 2019 ari.simonen
500 * [MOLY00402881] [Gen97][Submarine] Submarine M1 VMOLY patch back - IMS
501 *
502 * Trace database updates for IMS and NAL monitor
503 *
504 * 06 06 2019 olivia.peng
505 * [MOLY00411717] [Gen97][Submarine]IPsec Patchback -part 2
506 * .
507 *
508 * 06 04 2019 danny.kuo
509 * [MOLY00409125] [VMOLY] Create new module L4APS
510 *
511 * .L4BPDN part
512 *
513 * 05 28 2019 yuchi.huang
514 * [MOLY00408807] [MT6297][NR][EM] NL1 EMdevelopment
515 *
516 * -add EM interface
517 *
518 * 05 13 2019 clint.chang
519 * [MOLY00401827] [MT6297][EL1D][LPCC] Low power central control feature development
520 * [EWSP0000009929]
521 * - Modify trace
522 * - Modify interaction between RAS and LPCC
523 *
524 * 05 07 2019 savvas.chou
525 * [MOLY00403400] [Submarine] M1 to VMOLY
526 * .
527 *
528 * 05 03 2019 guan-ren.chen
529 * [MOLY00400853] [Gen97] Logging service enhancement
530 * ULSP to SIB path implement.
531 *
532 * 04 19 2019 max.mo
533 * [MOLY00399993] [Gen97][VMOLY] interworking withN26 features
534 * . [MPD] Max
535 *
536 * 04 12 2019 head.hsu
537 * [MOLY00398433] [Gen97][VMOLY] Protocol Assert Remove phase 1
538 * PERF (Protocol Exception Recovery Framework) create
539 *
540 * 03 26 2019 max.mo
541 * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature.Max
542 *
543 * 03 26 2019 max.mo
544 * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature.Max
545 *
546 * 03 15 2019 bo-hun.chen
547 * [MOLY00378534] [Mcddll] VGSM/VGMM part - subsidiary(ADZ) build error.
548 *
549 * 03 13 2019 bo-hun.chen
550 * [MOLY00378534] [Mcddll] VGSM/VGMM part
551 *
552 * [MOLY00378534] [VGSM] mcddll
553 *
554 * 03 12 2019 ian-yw.chen
555 * [MOLY00390240] [Gen97] SMS features and revise
556 * .
557 *
558 * 03 11 2019 prime.xiao
559 * [MOLY00384534] [MT6297][Apollo][PreSQC][MP0.5][Idea][4G][SIM1][FDD][SVFO_in-house_4.98.4.2][1][core2,vpe0,tc0(vpe6)] Fatal Error (0x305, 0x888800e9, 0xcccccccc) - L4
560 *
561 * .
562 *
563 * 02 27 2019 yuri.huang
564 * [MOLY00377335] [MakeFile] [UMOLYE] [Modify Makefile Rules] MPD SUB flow for 2g/3g
565 *
566 * .
567 *
568 * 02 21 2019 yiting.cheng
569 * [MOLY00383950] [GEN97][ENPDCP] Let ELT able to parse NPDCP_NRLC_DL_DATA_IND message
570 * .
571 *
572 * 02 19 2019 yuri.huang
573 * [MOLY00377335] [MakeFile] [UMOLYE] [Modify Makefile Rules] MPD SUB flow for 2g/3g
574 *
575 * .
576 *
577 * 02 18 2019 chester-zd.huang
578 * [MOLY00384995] [VMOLY] GEMINI 3.0, AFR, Unify Frequency scan, BGSEARCH
579 * - RSVAK/RSVAN Part
580 *
581 * 02 18 2019 lucien.li
582 * [MOLY00384997] [VMOLY] NR Type Switch
583 * [NR Type Switch][L4]
584 *
585 * 02 15 2019 tzu-ying.chen
586 * [MOLY00384621] [Gen97][LBS] Location information API for MD modules
587 *
588 * .
589 *
590 * 02 15 2019 kuan-wei.chen
591 * [MOLY00346647] [MT6297][VDM/L4] changes for 97
592 * [VMOLY.EVB.SEPT.DEV][MPD] sync VDM CL: 7356214~7518611
593 *
594 * 02 14 2019 yiting.cheng
595 * [MOLY00327926] [GEN97][ENPDCP] base development check-in
596 * .
597 *
598 * 02 12 2019 head.hsu
599 * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
600 * rollback
601 *
602 * 02 12 2019 yiting.cheng
603 * [MOLY00327926] [GEN97][ENPDCP] base development check-in
604 * .
605 *
606 * 02 11 2019 prime.xiao
607 * [MOLY00383493] [Gen97][MRS] 5G related feature
608 *
609 * . operator feature table (MPD part)
610 *
611 * 01 28 2019 jun-quan.chen
612 * [MOLY00381488] [Gen97] [MCF] MCF porting to VMOLY
613 * [MCF] [MPD] MCF porting to VMOLY
614 *
615 * 01 21 2019 devin.yang
616 * [MOLY00378746] [System Service] [KAL Config] ISR Centraliztion Framework.
617 * ISR Centralization Framework.
618 *
619 * 01 10 2019 chengyu.chen
620 * [MPD][MOLY00378065][CMCC SMS in MSHC][VMOLY.EVB.SEPT.DEV][Sanity on Eiger(MT3967)] SMS is not able to be sent on LTE
621 *
622 * 01 07 2019 hamilton.liang
623 * [MOLY00332682] Gen97 relevant feature/structure change
624 *
625 * 1. compile option change for ML1S LTE test
626 *
627 * 12 27 2018 sc.tung
628 * [MOLY00337982] [NMAC][BSR] BSR main function body check-in
629 *
630 * [NMAC] remove include nmac_enum_struct.h to avoid build fail in C2K.
631 *
632 * 12 24 2018 sc.tung
633 * [MOLY00337982] [NMAC][BSR] BSR main function body check-in
634 *
635 * [NMAC][BSR] issue fix and log reduction.
636 *
637 * 12 20 2018 yu-hsiang.peng
638 * [MOLY00372896] [Gen97] sAP logging support
639 * [VMOLY.EVB.SEPT] sAP support - DB part
640 *
641 * 12 19 2018 jie-yu.wang
642 * [MOLY00324633] [LPP file part] VZW MDMI LPP related IE
643 * [VMOLY.EVB.SEPT.DEV][MPD][LPP] MDMI code sync.
644 *
645 * 11 29 2018 ian-yw.chen
646 * [MOLY00365575] [Gen97] 5G CB/PWS development
647 * L4/SMSAL interfaces
648 *
649 * 11 29 2018 jacky-ch.chang
650 * [MOLY00346978] [6297][NR][RFCC] Development -
651 * Trace for enum [ERS00022721]
652 *
653 * 11 28 2018 jacky-ch.chang
654 * [MOLY00363206] [6297][NR][RFCC] Development -
655 * Add MIMO CFG trace for debugging [ERS00022721]
656 *
657 * 11 07 2018 su-jen.yang
658 * [MOLY00349128] [VMOLY]Code sync
659 * [ERS00020803]Trace for enum - move enum to nr_mpc_comm_enum.h
660 * and trace word
661 *
662 * 10 31 2018 kun-lin.wu
663 * [MOLY00361478] [Gen97] Gemini Compile Option Clean Up
664 *
665 * 10 30 2018 wangtao.wan
666 * [MOLY00326328] [MT6297][EL1D RX] CSI development update.
667 * [ERS00019335][EL1D RX][CSI] modify 5cc trace
668 *
669 * 10 16 2018 kai-hsiang.hsu
670 * [MOLY00319465] [MT6297] MML1 common device framework integration
671 * [ERS00017831][MML1_CDF] fix Gen95 codgen fail
672 *
673 * 10 16 2018 kai-hsiang.hsu
674 * [MOLY00319465] [MT6297] MML1 common device framework integration
675 * [ERS00017776][MML1_CDF] enable target trace enum
676 *
677 * 10 08 2018 guan-ren.chen
678 * [MOLY00327199] [Gen97] Development
679 * On-demand logging porting.
680 *
681 * 10 05 2018 yuyang.hsiao
682 * [MOLY00351872] [MMRFD] Driver Porting [ERS00016470]
683 * 1. Add serdes restore function into wake up flow and refine DFE restore function
684 * 2. Update UT case
685 * 3. DSB flow for Write back function
686 * 4. Update RFPOR and filter mode
687 * 5. Remove reduntent code
688 *
689 * 10 03 2018 ming.shen
690 * [MOLY00356286] [Gen97] background search feature - interface
691 *
692 * 09 28 2018 bob.chiang
693 * [MOLY00355821] [GEN97][VGMM][NAS MoDIS IT][Phase 1] integration
694 *
695 * 08 30 2018 kun-lin.wu
696 * [MOLY00348690] Revise MSPM file placement
697 *
698 * 08 29 2018 ian-yw.chen
699 * [MOLY00348528] [Gen97] SMS over 5G NAS
700 * SMS part
701 *
702 * 08 27 2018 mars.chang
703 * [MOLY00331434] [MT6297] NL1TST Common modify
704 * modify union_tag codegen error
705 *
706 * 08 27 2018 norman.chang
707 * [MOLY00346399] [Gen97][System Selection] MCC Pool
708 * .
709 *
710 * 08 23 2018 yu-hsiang.peng
711 * [MOLY00343261] [MT6297] [Logging Service] DHL 2.0 Landing
712 * [DHL2.0] Port to VMOLY (dhl mak & DB)
713 *
714 * 08 22 2018 lucien.li
715 * [MOLY00347660] [ENDC] ENDC related Information
716 * [ENDC] Interface between RAC-NRRC
717 *
718 * 08 21 2018 yc.chen
719 * [MOLY00346302] [Gen97][VGMM] check-in VGMM to VMOLY from GEN97.DEV
720 * [non-MPD] wrap VGMM header file with 5G option in libParseDbModem.c
721 *
722 * 08 20 2018 chester-zd.huang
723 * [MOLY00346991] [RSVAN] GEN97.DEV merge to VMOLY. Codes
724 * - RSVAN interface
725 *
726 * 08 17 2018 poying.chuang
727 * [MOLY00346763] [6297] Gen97 L4 PS Check-In
728 *
729 * - interfaces .
730 *
731 * 08 17 2018 norman.chang
732 * [MOLY00346399] [Gen97][System Selection] MCC Pool
733 * [GMSS] MCC Pool
734 *
735 * 08 17 2018 yc.chen
736 * [MOLY00346302] [Gen97][VGMM] check-in VGMM to VMOLY from GEN97.DEV
737 * [non-MPD] modify related files
738 *
739 * 08 17 2018 norman.chang
740 * [MOLY00346398] [Gen97][System Selection] MRS operator band table
741 * [Operator based Band Table] MRS part
742 *
743 * 08 17 2018 kuan-wei.chen
744 * [MOLY00346647] [MT6297][VDM/L4] changes for 97
745 * [VMOLY] vdm related others
746 *
747 * 08 17 2018 james-chi-ju.chang
748 * [MOLY00306148] [NAS] pangu giant CR
749 * interface
750 *
751 * 07 30 2018 chi-chun.lu
752 * [MOLY00342741] [MakeFile] [UMOLYE] [Modify Makefile Rules] enhance build flow for cgen tdd/fdd preprocessing files
753 *
754 * .
755 *
756 *
757 *******************************************************************************/
758/********************************************* Warning **********************************************
759* Please make sure header file is included correctly!
760* If the common header file is added to libParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
761* The change as above can lead to build time inefficiency.
762*
763* common header file => libParseDbModem.c
764* Tdd/Fdd(2g/3g) header file => libParseDbModem_tdd_fdd.c
765*
766* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in libParseDbModem_tdd_fdd.c
767* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to libParseDbModem.c
768********************************************** Warning **********************************************/
769
770#ifdef __NR_RAT__
771/* Move to lte_sec libParseDbModem.c */
772// #include "nr_mpc_comm_enum.h"
773#endif
774
775#ifdef _MODIS_ON_VC9_
776#define __w64
777#endif
778typedef int cgen_use_spare_msg_id;
779typedef int cgen_use_spare_sap_id;
780typedef int cgen_use_spare_module_id;
781typedef unsigned short msg_type;
782typedef unsigned short sap_type;
783typedef unsigned short module_type;
784
785#ifdef __GNUC__
786 typedef struct __va_list { void *__ap; } __builtin_va_list;
787 #define INLINE __inline
788 #define inline __inline
789#endif
790
791#define __declspec(s)
792//"ps\\tools\\asn1lib\\include\\act-ttbuffmgr.h"
793#undef STDC_HEADERS //it will include stdio.h
794
795#ifdef __RVCT__
796#ifndef __int64
797 typedef long long __int64;
798#endif
799
800
801#define _ARMABI
802
803#endif
804
805#ifdef __UE_SIMULATOR__
806#ifndef __int64
807 typedef long long __int64;
808#endif
809
810/* VMMI */
811#include "l4c2uegw_struct.h"
812
813#endif /* __UE_SIMULATOR__ */
814
815#include "L1Trc.h"
816
817#include "kal_public_api.h"
818#include "kal_public_defs.h"
819#include "sap_info.h"
820#include "msg_id_to_em_info_map.h"
821#include "em_mapping_for_tool.h"
822
823#include "kal_trace.h"
824
825#include "stacklib.h"
826#include "stack_timer.h"
827#include "event_shed.h"
828
829#include "intrCtrl.h"
830
831#include "mddbg_public.h"
832#if !defined(DISABLE_MDDBG_FUNCTION)
833#include "mddbg.h"
834#endif
835
836#include "em_struct.h"
837/* Start of EM related structure */
838#include "em_audio_public_struct.h"
839#include "em_cc_public_struct.h"
840#include "em_dhl_public_struct.h"
841#include "em_el1_public_struct.h"
842#ifdef __EL2_ARCH_V1__
843#include "em_el2_public_struct.h"
844#endif
845#ifdef __EL2_ARCH_V2__
846#include "em_enl2_public_struct.h"
847#endif
848#include "em_emm_public_struct.h"
849#include "em_errc_public_struct.h"
850#include "em_esm_public_struct.h"
851#include "em_imc_public_struct.h"
852#include "em_l1_public_struct.h"
853#include "em_l4_public_struct.h"
854#include "em_llc_public_struct.h"
855#include "em_ltecsr_public_struct.h"
856#include "em_mcf_public_struct.h"
857#include "em_mm_public_struct.h"
858#include "em_mmrf_public_struct.h"
859#include "em_nwsel_public_struct.h"
860#include "em_public_struct.h"
861#include "em_ratcm_public_struct.h"
862#include "em_sim_public_struct.h"
863#include "em_sm_public_struct.h"
864#include "em_sndcp_public_struct.h"
865#include "em_ss_public_struct.h"
866#include "em_ul1_public_struct.h"
867#include "em_ul2_public_struct.h"
868#include "em_vdm_public_struct.h"
869#include "em_mtf_public_struct.h"
870#include "em_nl1_public_struct.h"
871#include "em_sbp_public_struct.h"
872#include "em_uas_public_struct.h"
873#include "em_xcap_public_struct.h"
874#include "em_ostd_public_struct.h"
875
876/* End of EM related structure */
877
878/*lte %M trace usage*/
879#include "lrxpublic.h"
880#include "llpwrlpccpublic.h"
881
882#ifdef __NR_RAT__
883/* NR %M trace usage */
884/* Move to lte_sec libParseDbModem.c */
885// #include "nr_rfcc_trc_enum.h"
886#endif
887
888#if defined(__LTE_RAT__) || defined(__NR_RAT__)
889#include "l4c_enl2_struct.h"
890#endif /* __LTE_RAT__ or __NR_RAT__ */
891
892#ifdef __CDMA2000_RAT__
893#include "c2k_irat_msg_struct.h"
894#endif
895
896/* DVFS */
897#ifdef DVFS_ENABLE
898#include "DVFS_drv.h"
899#include "DVFS_drv_md.h"
900#include "DVFS_drv_modem.h"
901#include "DVFS_drv_md_public.h"
902#include "DVFS_drv_modem_public.h"
903#endif
904
905/* l1 */
906#include "l4c_l1_struct.h"
907#ifdef __PS_SERVICE__
908#endif
909#if ( defined(__GSM_RAT__) || defined(__UMTS_RAT__) )
910/* For Dual Mode L1 */
911#include "mph_dm_def.h"
912#include "mph_dm_msg.h"
913/* For Dual Mode L1 */
914#endif /* __GSM_RAT__ && __UMTS_RAT__ */
915
916#ifdef UNIT_TEST
917#endif
918
919#ifdef __MINI_LOG_SUPPORT__
920#endif /* __MINI_LOG_SUPPORT__ */
921
922#include "GV.h"
923#if defined (__DHL_V2_ENABLE__)
924/*reserve for 2.0*/
925#include "dhl_def.h"
926#include "icd_logging.h"
927#include "icd_dhl.h"
928#include "dhl_ulsp.h"
929#include "dhl_on_demand_logging_interface.h"
930#include "dhl_dsp_def.h"
931#include "dhl_ut_def.h"
932#else
933#include "dhl_def.h"
934#include "icd_logging.h"
935#include "icd_dhl.h"
936#include "dhl_internal_def.h"
937#include "dhl_notify.h"
938#endif
939
940#include "dhl_cmd_struct_def.h"
941#ifdef UNIT_TEST
942#include "dhlsim_def.h"
943#endif
944
945#ifdef __MINI_LOG_SUPPORT__
946#include "tst_mini_log.h"
947#endif /* __MINI_LOG_SUPPORT__ */
948
949#if defined(GEN_FOR_PC)
950#include "tst_Catcher_version.h"
951#include "tst_catcher_diagonsis_info.h"
952#endif //#if defined(GEN_FOR_PC)
953
954#include "custom_cmd.h"
955
956#ifndef NWSEL_NOT_PRESENT
957#endif
958
959#include "gmss_public.h"
960
961#ifndef GMSS_NOT_PRESENT
962#include "gmss_msgid.h"
963#include "gmss_nwsel_struct.h"
964#include "gmss_common.h"
965#include "gmss_context.h"
966#include "gmss_css_recv.h"
967#include "gmss_css_send.h"
968#include "gmss_def.h"
969#include "gmss_main.h"
970#include "gmss_mcc_pool.h"
971#include "gmss_nwsel_recv.h"
972#include "gmss_nwsel_send.h"
973#include "gmss_rat_ctrl.h"
974#include "gmss_sim_access.h"
975#include "gmss_geo_center.h"
976#include "gmss_nr_map.h"
977#include "gmss_state.h"
978#include "gmss_timer.h"
979#include "gmss_trc.h"
980#include "gmss_utility.h"
981#include "gmss_ut.h"
982#endif
983
984#include "nas_sv_msgid.h"
985#include "nas_task.h"
986
987#ifndef __L1_STANDALONE__
988#include "nas_sv_trc.h"
989#endif
990
991#include "nas_sv_context.h"
992#include "rac_nas_sv_struct.h"
993#include "nas_sv_css_struct.h"
994#include "nas_sv_errc_struct.h"
995#include "l4c_nas_sv_struct.h"
996#include "ddm_l4c_struct.h"
997#include "l4c_mrs_struct.h"
998
999#include "smic_msgid.h"
1000#include "smic_context.h"
1001#include "smic_utility.h"
1002#include "smic_epsb.h"
1003#include "smic_struct.h"
1004#include "tcm_smic_struct.h"
1005
1006#ifdef __FIVEG_NAS__
1007#include "vgmm_trc.h"
1008#include "mcd_vgmm_gen_peer.h"
1009#endif
1010
1011
1012#ifdef DUMMY_PROTOCOL
1013#ifdef __GSM_RAT__
1014#endif //__GSM_RAT__
1015#endif
1016
1017/* other module */
1018#include "RM_public.h"
1019
1020#ifndef __L1_STANDALONE__
1021/*For Protol modules*/
1022
1023#ifdef __PS_SERVICE__
1024//#include "asn-incl.h"
1025#endif
1026
1027#include "l4c_context.h"
1028#include "l4c_common_enum.h"
1029#include "l4_defs.h"
1030
1031/* MBMSAL */
1032#include "mbmsal_defs.h"
1033
1034/* FLC */
1035#if defined(__FLC2__) && defined(__FLC_SUPPORT__)
1036#include "flc2_config.h"
1037#endif
1038
1039#ifdef __MOD_CC__
1040#include "mcd_ss_parameters.h"
1041#include "mcd_ss_tcapmessages.h"
1042#include "mcd_cc_peer.h"
1043#include "ps2sat_struct.h"
1044#include "l4c_common_enum.h"
1045#include "csmcc_enums.h"
1046#include "csmcc_common_enums.h"
1047#include "ps2sat_struct.h"
1048#include "l4c2csm_cc_struct.h"
1049#include "mncc_struct.h"
1050#include "mm2cm_struct.h"
1051#include "cm2mm_struct.h"
1052#include "cm2csce_struct.h"
1053#include "cm2gas_struct.h"
1054
1055#include "stacklib.h"
1056#include "event_shed.h"
1057#include "stack_timer.h"
1058#include "cc_defs.h"
1059#include "cc_std_defs.h"
1060#include "cc_ss_defs.h"
1061#include "cc_types.h"
1062#endif
1063
1064
1065#ifdef __MOD_CSM__
1066
1067
1068#if defined(__L1_GPS_REF_TIME_SUPPORT__) || defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)
1069#include "Hal_el1_struct.h"
1070#endif
1071
1072#ifdef __AGPS_CONTROL_PLANE__
1073/* SSAGPS */
1074#ifdef GEN_FOR_PC
1075 #ifndef __RVCT__
1076 #define __int64
1077 #endif //#if !defined(__RVCT__)
1078#define __cdecl
1079#endif //#ifndef __L1_STANDALONE__
1080
1081#include "applib2_asn_common.h"
1082#include "applib2_mtkasn_global.h"
1083#include "ss_asn.h"
1084#include "l4c2csm_ss_lcs_struct.h"
1085#endif
1086#include "l4c_lbs_struct.h"
1087#include "mnss_struct.h"
1088#include "csmss_common_enums.h"
1089#endif /*__MOD_CSM__*/
1090
1091#ifdef __MOD_SIM__
1092#include "stack_timer.h"
1093
1094#include "phb_utils.h"
1095#include "ps2sat_struct.h"
1096#include "l4c2csm_cc_struct.h"
1097#include "l4c_common_enum.h"
1098#include "csmcc_enums.h"
1099#include "csmcc_common_enums.h"
1100#include "ps2sat_struct.h"
1101#include "l4c2csm_cc_struct.h"
1102 /* ripple */
1103#include "cc2sat_struct.h"
1104#include "sat_def.h"
1105#include "ps2sim_struct.h"
1106
1107/* C2K */
1108#ifdef __CDMA2000_RAT__
1109#include "sim_cuim_utility.h"
1110#endif /* __CDMA2000_RAT__ */
1111
1112#endif /*__MOD_SIM__*/
1113
1114#ifdef __MOD_SMU__
1115
1116#if defined(__MMI_FMI__)
1117#endif
1118#include "l4c2smu_struct.h"
1119#include "ps2sim_struct.h"
1120#include "ps2sat_struct.h"
1121#include "smu_common_enums.h"
1122#include "smu_def.h"
1123#endif /*__MOD_SMU__*/
1124
1125#ifdef __MOD_PHB__
1126#include "l4c2phb_enums.h"
1127#include "l4c2phb_struct.h"
1128#endif /*__MOD_PHB__*/
1129
1130#ifdef __MOD_UEM__
1131#include "uart_sw.h"
1132#include "mcd_uem_peer.h"
1133#endif /*__MOD_UEM__*/
1134
1135#ifdef __MOD_SMSAL__
1136#include "smsal_l4c_defs.h"
1137#include "smsal_l4c_enum.h"
1138
1139/* for context */
1140#include "l3_inc_enums.h"
1141#include "smsal_timer.h"
1142#include "smsal_enums.h"
1143#include "smsal_defs.h"
1144#include "l4c2smsal_struct.h"
1145#include "smsal_peer_struct.h"
1146
1147#include "mnsms_struct.h"
1148#include "smsal_structs.h"
1149#include "smsal_context.h"
1150#endif /*__MOD_SMSAL__*/
1151
1152#ifdef __MOD_SMS__
1153
1154/* SMS <--> SMSAL */
1155#include "mnsms_struct.h"
1156#include "sms_enum.h"
1157#include "event_shed.h"
1158#include "sms_timer.h"
1159
1160/* SMS Context */
1161#include "sms_defs.h"
1162#include "sms_tl.h"
1163#include "sms_rl.h"
1164#include "sms_cm.h"
1165#include "sms_context.h"
1166
1167/* SMS <--> MM */
1168#include "mcd_sms_gen_peer.h"
1169#include "mcd_l3_inc_gprs_struct.h"
1170#include "cm2mm_struct.h"
1171#include "mm2cm_struct.h"
1172#include "sms2mm_struct.h"
1173#include "mm2sms_struct.h"
1174
1175/* SMS <--> EMM */
1176#ifdef __LTE_RAT__
1177#include "sms_emm_struct.h"
1178#endif
1179
1180/* SMS <--> VGMM */
1181#ifdef __NR_RAT__
1182#include "sms_vgmm_struct.h"
1183#endif
1184
1185#endif
1186
1187#ifndef PPP_NOT_PRESENT
1188#include "mcd_l3_inc_struct.h"
1189#include "mcd_l3_inc_gprs_struct.h"
1190#include "l3_inc_local.h"
1191#include "tcm2sm_struct.h"
1192#include "tcm2ppp_struct.h"
1193#include "ppp2tcm_struct.h"
1194#include "ppp_l4_enums.h"
1195/* PPP for CSD usage */
1196 #ifdef __PPP_UT__
1197 #endif // ~ #ifdef __PPP_UT__
1198#endif /* ~PPP_NOT_PRESENT */
1199
1200#ifdef __MOD_CISS__
1201#include "mcd_ss_parameters.h"
1202#include "mcd_ss_tcapmessages.h"
1203#include "mnss_struct.h"
1204#include "mm2cm_struct.h"
1205#include "cm2mm_struct.h"
1206#include "mcd_l3_inc_struct.h"
1207#include "mcd_l3_inc_gprs_struct.h"
1208#include "l3_inc_local.h"
1209#include "mcd_ciss_peer.h"
1210#include "ciss_enum.h"
1211#include "ciss_eval_struct.h"
1212#endif /* __MOD_CISS__ */
1213
1214//#ifdef __PS_SERVICE__
1215#ifdef __MOD_TCM__
1216#include "mcd_l3_inc_struct.h"
1217#include "mcd_l3_inc_gprs_struct.h"
1218#include "l3_inc_local.h"
1219#include "tcm2sm_struct.h"
1220#include "sm2tcm_struct.h"
1221#include "rat_tcm_context.h"
1222#if defined(__MMI_FMI__)
1223#endif
1224#include "l4c2abm_struct.h"
1225/* mtk00938 2008-02-20: for streaming and secondary PDP context */
1226#include "mmi_sm_enums.h"
1227/* End of Jeff Wu */
1228#include "abm2l4c_struct.h"
1229#include "l4c2tcm_struct.h"
1230#include "l4c2tcm_func.h"
1231#include "tcm2l4c_struct.h"
1232#include "ppp2tcm_struct.h"
1233#include "tcm2ppp_struct.h"
1234#include "snd2tcm_struct.h"
1235#include "tcm2snd_struct.h"
1236#include "tcm_rattcm_struct.h"
1237#include "tcm_context.h"
1238
1239#include "tcm_assert.h"
1240#include "tcm_at_handler.h"
1241#include "tcm_gprs_statistic.h"
1242#include "tcm_init.h"
1243#include "tcm_main.h"
1244#include "tcm_pco_api.h"
1245#include "tcm_qos_api.h"
1246#include "tcm_reset.h"
1247#include "tcm_send_msg.h"
1248
1249#include "tcm_sic_context.h"
1250
1251#include "psilib_context.h"
1252#include "psilib_api.h"
1253
1254#ifdef __TURN_ON_GENERAL_SECONDARY_PDP__
1255#include "tcm_tft_api.h"
1256#endif /* __TURN_ON_GENERAL_SECONDARY_PDP__ */
1257
1258#ifdef __ACL_SUPPORT__
1259#endif /* __ACL_SUPPORT__ */
1260
1261#ifdef __UGTCM__
1262#include "tcm_ugtcm_check.h"
1263#include "tcm_ugtcm_fsm.h"
1264#include "tcm_ugtcm_send_msg.h"
1265#include "tcm_ugtcm_timer.h"
1266#endif /* __UGTCM__ */
1267
1268#endif /* __MOD_TCM__ */
1269//#endif /* __PS_SERVICE__ */
1270
1271
1272#ifndef RR_NOT_PRESENT
1273#ifdef __UMTS_RAT__
1274#endif
1275
1276/* For Poring CSN.1*/
1277
1278
1279
1280
1281#include "security_keys_enums.h"
1282#include "security_keys_struct.h"
1283#include "as2nas_struct.h"
1284#include "mcd_l3_inc_struct.h"
1285#include "mcd_l3_inc_gprs_struct.h"
1286#include "l3_inc_local.h"
1287#include "l3_inc_enums.h"
1288
1289#ifdef __UMTS_RAT__
1290/* John 2006/06/10*/
1291#include "mcd_l3_inc_struct.h"
1292#include "l3_inc_enums.h"
1293#include "l3_inc_local.h"
1294#ifdef __GSM_RAT__
1295#endif
1296#ifdef __UMTS_RAT__
1297#endif
1298
1299#include "mrs_common_band_table.h"
1300#include "mrs_common_operator_feature_table.h"
1301#include "mrs_common_search.h"
1302
1303#ifdef __LTE_RAT__
1304#endif
1305
1306#if defined(__LTE_RAT__)
1307#include "l4c_el1_struct.h"
1308#endif /* __LTE_RAT__ */
1309
1310
1311#include "l4c_nrrc_struct.h"
1312#include "rac_nrrc_struct.h"
1313
1314#ifdef __NR_RAT__
1315#include "smsal_nrrc_struct.h"
1316#endif /* __NR_RAT__ */
1317
1318/* For generating 3G LBM TRACE_PEER enum */
1319#include "ratcm_loop_mode.h"
1320
1321#endif /* __UMTS_RAT__ */
1322
1323#if defined(__GEMINI__)
1324#include "rsvas_enum.h"
1325#include "rsvas_struct.h"
1326#include "rsvas_mspm_struct.h"
1327#include "mspm_public_api.h"
1328#include "mspm_fsm.h"
1329#if defined(__UMTS_RAT__)
1330#include "rsvak_public_enum.h"
1331#include "rsvak_enum.h"
1332#include "rsvak_struct.h"
1333#include "urr_rsvau_struct.h"
1334#ifdef __GSM_RAT__
1335#include "gas_rsva_struct.h"
1336#endif /* __GSM_RAT__ */
1337#endif /* __UMTS_RAT__ */
1338#ifdef __LTE_RAT__
1339#include "eas_rsva_struct.h"
1340#include "rsvae_fsm.h"
1341#endif /* __LTE_RAT__ */
1342#ifdef __NR_RAT__
1343#include "nrrc_rsva_struct.h"
1344#include "rsvan_fsm.h"
1345#endif /* __NR_RAT__ */
1346#ifdef __CDMA2000_RAT__
1347#include "c2k_rsva_struct.h"
1348#include "rsvac_fsm.h"
1349#endif /* __CDMA2000_RAT__ */
1350#endif /* __GEMINI__ */
1351
1352#ifdef __GEMINI__
1353#include "as_access_sem_context.h"
1354#include "as_access_sem_funcs.h"
1355#endif /* __GEMINI__ */
1356
1357#include "rr2lapdm_struct.h"
1358#include "lapdm2rr_struct.h"
1359#ifdef __GEMINI__
1360#include "rr2prr_struct.h"
1361#endif
1362#include "l4c_l1_struct.h"
1363
1364/* CSN codec*/
1365
1366#ifdef __PS_SERVICE__
1367#include "gprs_rlcmac_ul.h"
1368/* Evelyn 20090415: Merge R6 */
1369#endif
1370
1371
1372#ifdef __PS_SERVICE__
1373#include "mcd_l3_inc_struct.h"
1374#include "mcd_l3_inc_gprs_struct.h"
1375#include "l3_inc_local.h"
1376#include "l3_inc_enums.h"
1377
1378/* peer message */
1379#include "si_peer.h"
1380#include "nstd_alloc_bitmap.h"
1381#include "nstd_mobile_alloc_peer.h"
1382#include "nstd_pmo.h"
1383#include "gprs_rlcmac_dl.h"
1384#include "nstd_pkt_meas_report.h"
1385#include "gprs_rlcmac_ul.h"
1386#include "rmc_peer.h"
1387#include "gprs_rlcmac_peer.h"
1388#include "meascell.h"
1389#include "gprs_rlcmac_common.h"
1390
1391#include "llcrlc_enums.h"
1392#include "rmpc_rlc_enums.h"
1393#include "llc2rlc_struct.h"
1394#ifdef __ADAPTIVE_PAGING_PERIOD_IN_UNACK_MODE__
1395#include "rlc2rmpc_struct.h"
1396#endif
1397#include "rmpc2rlc_struct.h"
1398#include "rmpc2mac_struct.h"
1399#include "rlc2reasm_struct.h"
1400#include "reasm2rlc_struct.h"
1401#ifndef __MTK_TARGET__
1402#endif
1403#endif /* end of __PS_SERVICE__ */
1404
1405#ifdef __UMTS_RAT__
1406
1407#endif /* __UMTS_RAT__ */
1408
1409
1410
1411#include "lapdm_enums.h"
1412
1413// Evelyn 20080902: For MAC UT
1414// Rachel 20101114: For MPAL UT
1415
1416/* MD IDC Start */
1417#if defined (__MD97__) && !defined (__UE_SIMULATOR__)
1418#include "idc_el1rx_enum.h"
1419#include "idc_el1rx_str.h"
1420#include "idc_el1mpc_str.h"
1421#include "idc_el1tx_str.h"
1422#include "idc_emac_enum.h"
1423#include "idc_emac_str.h"
1424#include "idc_errc_enum.h"
1425#include "idc_errc_str.h"
1426#include "idc_nl1rx_enum.h"
1427#include "idc_nl1rx_str.h"
1428#include "idc_nl1mpc_str.h"
1429#include "idc_nl1tx_enum.h"
1430#include "idc_nl1tx_str.h"
1431#include "idc_sm_common.h"
1432#include "idc_swmsg_str.h"
1433#include "idc.h"
1434#endif
1435/* MD IDC End */
1436
1437#include "mll1_msgid.h"
1438#include "mll1_eutran.h"
1439#include "mll1_umts_tdd.h"
1440
1441
1442#ifdef __AGPS_CONTROL_PLANE__
1443#endif
1444
1445#endif /* RR_NOT_PRESENT */
1446
1447#ifndef MM_NOT_PRESENT
1448
1449
1450
1451
1452
1453#ifdef __PS_SERVICE__
1454#endif
1455
1456
1457#endif /* #ifndef MM_NOT_PRESENT */
1458
1459
1460#ifdef __MOD_L4A__
1461#endif
1462
1463#ifdef WISDOM_MMI
1464#endif
1465
1466#ifndef VDM_NOT_PRESENT
1467/* VDM */
1468#include "vdm_atp_struct.h"
1469#include "vdm_imc_struct.h"
1470#include "vdm_eval_struct.h"
1471#include "vdm_l4c_struct.h"
1472#include "vdm_sdm_struct.h"
1473#include "vdm_rac_struct.h"
1474#include "vdm_trk_ads_msg.h"
1475#include "vdm_trk_vcc_msg.h"
1476#include "vdm_ads_vcc_msg.h"
1477#include "vdm_ut.h"
1478#include "vdm_trk_ut.h"
1479#include "vdm_ads_ut.h"
1480#include "vdm_vcc_ut.h"
1481#include "vdm_cval_struct.h"
1482#endif /* ifndef VDM_NOT_PRESENT */
1483
1484/**************************************************************************
1485 * GPRS NAS DATA PATH BEGINS
1486 **************************************************************************/
1487#ifdef __PS_SERVICE__
1488
1489#include "sm2l4c_struct.h"
1490#include "l4c2sm_struct.h"
1491#include "sm_esm_struct.h"
1492
1493#ifndef SNDCP_NOT_PRESENT
1494/* other needed struct and enums */
1495#include "snd_defines.h"
1496#include "sndllc_enums.h"
1497#include "data_plane_sm_enums.h"
1498#include "mcd_snd_peer.h"
1499/* sndcp peer struct */
1500/* sm local struct */
1501#include "snd2tcm_struct.h"
1502#include "tcm2snd_struct.h"
1503#include "snd2llc_struct.h"
1504#include "llc2snd_struct.h"
1505#include "llc2l3_struct.h"
1506#include "ratdm_sndcp_struct.h"
1507#include "snd_enums.h"
1508#include "snd_comp_interface.h"
1509#include "snd_flc.h"
1510
1511#include "snd_xid.h"
1512#include "snd_rfc1144.h"
1513#include "snd_context.h"
1514
1515#endif /* SNDCP_NOT_PRESENT */
1516
1517#ifndef SM_NOT_PRESENT
1518/* other needed struct and enums */
1519
1520#include "mcd_l3_inc_struct.h"
1521#include "mcd_l3_inc_gprs_struct.h"
1522#include "l3_inc_local.h"
1523#include "l3_inc_enums.h"
1524#include "mmi_sm_enums.h"
1525#include "data_plane_sm_enums.h"
1526#include "smmm_enums.h"
1527#include "sm_common_enums.h"
1528
1529/* sm peer struct */
1530#include "mcd_sm_gen_peer.h"
1531/* sm local struct */
1532#include "sm2mm_struct.h"
1533#include "mm2sm_struct.h"
1534#include "data_plane2sm_struct.h"
1535#include "sm2data_plane_struct.h"
1536#include "tcm2sm_struct.h"
1537#include "sm2tcm_struct.h"
1538#include "sm_defines.h"
1539#include "sm_context.h"
1540#include "sm_tcm_responser.h"
1541
1542/* sm conn sturct */
1543#include "sm_core_conn_enum.h"
1544#include "sm_core_conn_interface.h"
1545#include "sm_conn_timer.h"
1546#include "sm_conn_private_def.h"
1547
1548
1549#endif /* SM_NOT_PRESENT */
1550
1551
1552
1553#ifndef LLC_NOT_PRESENT
1554
1555/* other needed struct and enums */
1556#include "gmmllc_enums.h"
1557#include "mmllc_enums.h"
1558#include "sndllc_enums.h"
1559#include "llccipher_enums.h"
1560#include "llcrlc_enums.h"
1561#include "security_keys_enums.h"
1562/* In interface/include */
1563#include "llc_peer_interface.h"
1564
1565/* llc local struct */
1566#include "security_keys_struct.h"
1567#include "l32llc_struct.h"
1568#include "llc2l3_struct.h"
1569#include "llc2rlc_struct.h"
1570#include "rlc2llc_struct.h"
1571#include "snd2llc_struct.h"
1572#include "llc2snd_struct.h"
1573#include "llc_flowctrl.h"
1574
1575#include "ratcm_llc_struct.h"
1576
1577/* llc asn peer struct (Order shall be kept) */
1578#include "mcd_llc_peer_struct.h"
1579
1580/* other needed struct and enums */
1581#include "stacklib.h"
1582#include "stack_timer.h"
1583#include "event_shed.h"
1584#include "llc_lcdiplqueue.h"
1585
1586#include "llc_defs.h"
1587#include "llc_context.h"
1588#include "llc_specific_defines.h"
1589
1590#endif /* LLC_NOT_PRESENT */
1591
1592#endif /* __PS_SERVICE__ */
1593
1594#endif /*__L1_STANDALONE__*/
1595
1596/**************************************************************************
1597 * GPRS NAS DATA PATH ENDS
1598 **************************************************************************/
1599
1600#ifndef DATA_NOT_PRESENT
1601
1602
1603
1604
1605
1606#endif /* DATA_NOT_PRESENT */
1607
1608#if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__)
1609#include "ul1cal.h"
1610#endif
1611
1612#ifdef __AST_TL1_TDD__
1613#endif
1614
1615
1616
1617//#ifdef __MCD__
1618
1619//#endif
1620
1621#include "uart_sw.h"
1622
1623#ifdef __IRDA_SUPPORT__
1624#ifndef OBEX_NOT_PRESENT
1625#endif
1626
1627#ifndef IRCOMM_NOT_PRESENT
1628#endif
1629#endif /* __IRDA_SUPPORT__ */
1630
1631#if defined(__MOD_SMSAL__) && !defined(SOC_NOT_PRESENT) //kevin 05/23
1632#endif /*__MOD_SMSAL__*/
1633
1634#ifndef __L1_STANDALONE__
1635#include "smsal_as_struct.h"
1636#endif
1637
1638#ifdef __LTE_RAT__
1639#include "mll1_msgid.h"
1640#include "mll1_eutran.h"
1641#include "mll1_umts_tdd.h"
1642#endif /*__LTE_RAT__*/
1643
1644#if defined(__MOD_RAC__)
1645#include "l4c2rac_struct.h"
1646#include "rac2l4c_struct.h"
1647#ifdef __LTE_RAT__
1648#include "rac_eval_struct.h"
1649#endif /* __LTE_RAT__ */
1650#include "mmi2mm_struct.h"
1651#include "mm2mmi_struct.h"
1652#include "rac_defs.h"
1653#include "rac_mrs_struct.h"
1654#include "rac_em_struct.h"
1655#include "rac_context.h"
1656#include "rac_gmss_struct.h"
1657#endif /* __MOD_RAC__ */
1658
1659#ifndef L4_NOT_PRESENT
1660#include "rmmi_context.h"
1661#include "drvsignals.h"
1662#include "l4_ipc_msg_struct.h"
1663#endif
1664
1665/* for BMT */
1666#include "drvsignals.h"
1667/* for BMT */
1668
1669#include "audio_enum.h"
1670
1671#ifdef __WIFI_SUPPORT__
1672#ifdef WIFI_BB_MT5921
1673#endif
1674#endif
1675
1676#define BREAK
1677
1678#ifndef __L1_STANDALONE__
1679#ifdef GEN_FOR_PC
1680//#include "sasken_msg.h"
1681//#include "smsal_peer.h"
1682//#include "mpal2rr_unpack_struct.h"
1683//#include "rr2mpal_unpack_struct.h"
1684#ifdef __UMTS_FDD_MODE__
1685//#include "nas_msg.h"
1686#endif
1687
1688#ifdef __UMTS_RAT__
1689#endif /* #ifdef __UMTS_RAT__ */
1690#ifdef __PS_SERVICE__
1691#include "rlc2mac_unpack_struct.h"
1692#endif /*__PS_SERVICE__*/
1693#endif /*GEN_FOR_PC*/
1694#endif /*__L1_STANDALONE__*/
1695
1696
1697#ifdef __PS_SERVICE__
1698#endif
1699
1700#ifndef __MTK_TARGET__
1701#endif
1702
1703
1704#ifdef __IPERF__
1705#endif /* __IPERF__ */
1706
1707#ifdef __DRM_SUPPORT__
1708#endif /* __DRM_SUPPORT__ */
1709
1710#ifdef GIS_SUPPORT
1711#endif
1712
1713#ifdef __CMUX_SUPPORT__
1714#include "cmux_struct.h"
1715#include "cmux_def.h"
1716#endif /* __CMUX_SUPPORT__ */
1717
1718
1719#ifdef __IPCORE_SUPPORT__
1720#include "ipc_struct.h"
1721#endif /* __IPCORE_SUPPORT__ */
1722
1723#ifdef __IPFCORE_SUPPORT__
1724#include "ipfc_enums.h"
1725#endif /* __IPFCORE_SUPPORT__ */
1726
1727#ifdef __DPFM_SUPPORT__
1728#include "dpfm_enums.h"
1729#include "dpfm_struct.h"
1730#endif /* __DPFM_SUPPORT__ */
1731
1732#ifdef __TMC_SUPPORT__
1733#include "tmc_struct.h"
1734#include "tmc_enums.h"
1735#endif /* __TMC_SUPPORT__ */
1736
1737#ifdef __HIF_AOMGR_SUPPORT__
1738#endif /* __HIF_AOMGR_SUPPORT__ */
1739
1740#ifdef __ETHERCORE_SUPPORT__
1741#endif /* __ETHERCORE_SUPPORT__ */
1742
1743#ifdef __NMU_ENABLE__
1744#include "dhcp4c_struct.h"
1745#include "ndpc_struct.h"
1746#endif
1747
1748#ifdef __USB_ECM_SUPPORT__
1749#endif
1750
1751#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
1752#include "gps_struct.h"
1753#endif
1754
1755#ifndef __L1_STANDALONE__
1756
1757/* for NAS/RATCM inerface */
1758#include "mcd_l3_inc_struct.h"
1759#include "mcd_l3_inc_gprs_struct.h"
1760#include "l3_inc_local.h"
1761#include "l3_inc_enums.h"
1762
1763#include "smsal_ratcm_struct.h"
1764#include "nwsel_ratdm_struct.h"
1765
1766#ifdef __PS_SERVICE__
1767#include "mm_ratdm_struct.h"
1768#include "sm_ratdm_struct.h"
1769#include "esm_ratdm_struct.h"
1770#include "smic_ratdm_struct.h"
1771
1772#ifndef UART_SW_H
1773#include "uart_sw.h"
1774#endif // ~ #ifndef UART_SW_H
1775#ifndef _PS_RATDM_STRUCT_H
1776#endif // ~ #ifndef _PS_RATDM_STRUCT_H
1777#include "tcm_ratdm_struct.h"
1778#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1779#endif
1780/* L4C -> RATDM */
1781//#ifndef _L4C_RATDM_STRUCT_H
1782#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1783#endif
1784//#endif
1785
1786/* L4C -> IPCORE */
1787#include "l4c_ipcore_struct.h"
1788
1789/* For RATDM/RABM UT */
1790#endif
1791
1792#ifdef __GSM_RAT__
1793/* for RATCM/GAS interface */
1794#include "ratcm_gas_enums.h"
1795#include "ratcm_gas_struct.h"
1796#endif
1797
1798#endif /* ! __L1_STANDALONE__ */
1799
1800
1801/* mtk04121 */
1802#if defined(__MOD_TCM__)
1803#include "l3_inc_local.h"
1804#include "tcm2sm_struct.h"
1805#include "sm2tcm_struct.h"
1806#include "rat_tcm_context.h"
1807#include "flc2_config.h"
1808#include "mmi_sm_enums.h"
1809#include "l4c2tcm_struct.h"
1810#include "l4c2tcm_func.h"
1811#include "tcm_api.h"
1812#include "tcm2l4c_struct.h"
1813#include "tcm_rattcm_struct.h"
1814/* PPP Dial-up */
1815#include "ppp2tcm_struct.h"
1816#include "tcm2ppp_struct.h"
1817#include "snd2tcm_struct.h"
1818#include "tcm2snd_struct.h"
1819#include "tcm_rattcm_struct.h"
1820#include "tcm_context.h"
1821#include "tcm_assert.h"
1822#include "tcm_at_handler.h"
1823#include "tcm_gprs_statistic.h"
1824#include "tcm_init.h"
1825#include "tcm_main.h"
1826#include "tcm_pco_api.h"
1827#include "tcm_qos_api.h"
1828#include "tcm_reset.h"
1829#include "tcm_send_msg.h"
1830
1831#ifdef __TURN_ON_GENERAL_SECONDARY_PDP__
1832#include "tcm_tft_api.h"
1833#endif /* __TURN_ON_GENERAL_SECONDARY_PDP__ */
1834
1835#ifdef __ACL_SUPPORT__
1836#endif /* __ACL_SUPPORT__ */
1837
1838#ifdef __UGTCM__
1839#include "tcm_ugtcm_check.h"
1840#include "tcm_ugtcm_fsm.h"
1841#include "tcm_ugtcm_send_msg.h"
1842#include "tcm_ugtcm_timer.h"
1843#endif /* __UGTCM__ */
1844
1845#if defined(__ETCM__)
1846#include "eval_msgid.h"
1847#include "upcm_msgid.h"
1848#include "tcm_eval_enums.h"
1849#include "tcm_eval_struct.h"
1850#include "tcm_upcm_struct.h"
1851#include "tcm_etcm_utility.h"
1852#endif
1853#endif
1854
1855/**************************************************************************
1856 * WCDMA INTERFACE BEGINS
1857 **************************************************************************/
1858#ifdef __UMTS_RAT__
1859#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1860#endif
1861#ifdef __CGEN_UMTS_TDD128_MODE__
1862#endif
1863#include "kal_public_api.h"
1864
1865#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1866#endif /*__UMTS_FDD_MODE__*/
1867
1868#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1869#include "hal_ul1_def.h"
1870#include "hal_ul1_struct.h"
1871#endif /*__UMTS_FDD_MODE__*/
1872
1873#ifdef __UL1_ON_MNT__
1874/* for UL1 MoDIS */
1875#endif
1876
1877#ifdef DUMMY_PROTOCOL
1878/* 3G DPS */
1879#endif
1880
1881
1882/* for MAL1 interface */
1883#ifdef __MA_L1__
1884#endif
1885
1886#ifndef __L1_STANDALONE__
1887
1888
1889/* for UAS common structure and enums */
1890
1891/* for inter-core common structure and enum */
1892#include "as_inter_core_enum.h"
1893#include "as_inter_core_struct.h"
1894#include "gise_str.h"
1895
1896#ifdef GEN_FOR_PC
1897#include "mcd_rrc_asn.h"
1898//John 960724
1899#include "asn_aper_common.h"
1900#include "mcd_h245_asn.h"
1901#endif
1902
1903//#ifdef __UMTS_FDD_MODE__
1904//#endif
1905
1906/* for UAS internal interface */
1907/* for URR/UL2D interface */
1908#include "meme_drlc_struct.h"
1909#ifdef __CGEN_UMTS_FDD_MODE__
1910#endif
1911
1912
1913/* for URR/UL2 interface */
1914
1915/* for UL2/UL2D interface */
1916#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1917#endif
1918#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
1919#endif
1920/* for URR internal interface */
1921#include "ex_item.h"
1922#include "sim_public_enum.h"
1923//#ifdef __UMTS_FDD_MODE__
1924//#endif
1925
1926/* discuss with SIM owner, UAS add sim header file when requirement.*/
1927#if defined(UNIT_TEST) && defined(__UMTS_TDD128_MODE__)
1928#include "sim_private_struct.h"
1929#endif
1930
1931/* for RATCM/UAS interface */
1932#include "ratcm_uas_enums.h"
1933#include "ratcm_slce_enums.h"
1934#include "ratcm_rrce_enums.h"
1935#include "ratcm_uas_struct.h"
1936#include "ratcm_rrce_struct.h"
1937#include "ratcm_slce_struct.h"
1938#include "ratcm_cse_enums.h"
1939#include "ratcm_cse_struct.h"
1940#include "ratcm_bmc_struct.h"
1941#include "ratcm_urlc_struct.h"
1942#include "ratdm_urlc_struct.h"
1943
1944/* for EAS interface */
1945#include "ratdm_el2_struct.h"
1946
1947/* for UAS/GAS interface */
1948
1949#include "nas_as_inter_core_struct.h"
1950
1951#ifdef __GEMINI__
1952/* for GAS/UL2 interface */
1953#include "l3_inc_enums.h"
1954#endif /* __GEMINI__ */
1955
1956/*Vito: for CSR UT */
1957
1958/* Jeff Wu 2006-02-13: For RABM/PDCP UT */
1959#include "flc2_config.h"
1960
1961/* Evan Chen 2007-08-13: For MM UT */
1962
1963/* Gibran Chang 2006/03/23: For CSCE */
1964
1965/* Nicky Chou 2014/08/25: For LCSCE */
1966#include "urr_inter_core_enum.h"
1967#include "as_inter_core_enum.h"
1968
1969/* For LMEME */
1970
1971/*For LRRCE*/
1972#if defined(__CGEN_UMTS_TDD128_MODE__)
1973#endif
1974
1975/* Dennis Weng 2010/08/09: For SIBE */
1976/* YenChih Yang 2012/04/18: For USIME */
1977
1978/* For MEME */
1979/* For TDD please modify the code wrapped by __UMTS_TDD128_MODE__ */
1980/* For TDD please modify the code wrapped by __UMTS_FDD_MODE__ */
1981#ifdef __GEMINI__
1982#endif
1983
1984#if defined(__CGEN_UMTS_TDD128_MODE__)
1985#endif
1986
1987#if defined(__CGEN_UMTS_FDD_MODE__) /* defined(__UMTS_FDD_MODE__) */
1988#endif
1989
1990/* MH Change 2006/04/18: For RRCE */
1991
1992/* John Tang 2005/11/08: For DB Unit-test tool */
1993#ifdef GEN_FOR_PC
1994
1995#define __int64
1996#define __cdecl
1997#include "db_io.h"
1998#include "./fdd/db_dump_api_fdd.h"
1999#ifdef __UMTS_TDD128_MODE__
2000#include "./tdd/db_dump_api_tdd.h"
2001#endif
2002#endif //#ifndef __L1_STANDALONE__
2003
2004
2005
2006
2007/* Alfie: 2006-0422 For SLCE Trace Info Start */
2008#ifndef __size_t
2009#define __size_t 1
2010typedef unsigned int size_t; /* used for dbme.h */
2011#endif
2012
2013#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
2014#endif
2015/* Alfie: 2006-0422 For SLCE Trace Info End */
2016
2017
2018/*Christine 2006/05/02*/
2019
2020#endif
2021//Matt 2007/11/30 for VT feature
2022/*
2023#ifdef __VIDEO_CALL_SUPPORT__
2024#include "..\..\..\3g324m\interface\inc\vt_tst_enum.h"
2025#include "..\..\..\3g324m\appl\inc\vt_ut_struct.h"
2026#endif
2027*/
2028
2029#endif /* __UMTS_RAT__ */
2030#ifdef __L1_STANDALONE__
2031#ifdef __MOD_NVRAM__
2032#include "ex_item.h"
2033
2034#if defined(__MMI_FMI__)
2035#endif
2036
2037#endif /*__MOD_NVRAM__*/
2038#endif
2039/**************************************************************************
2040 * WCDMA INTERFACE ENDS
2041 **************************************************************************/
2042
2043#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
2044#include "gps_struct.h"
2045#ifdef __AGPS_SUPPORT__
2046#include "gps2lcsp_enum.h"
2047#include "gps2lcsp_struct.h"
2048#endif /* __AGPS_SUPPORT__ */
2049#endif
2050
2051#include "lbs_dhl_struct.h"
2052#include "lbs_loc_info_struct.h"
2053#include "lbs_gnss_tc_struct.h"
2054#include "gnss_tc_common_struct.h"
2055#include "gnss_tc_lte_struct.h"
2056#include "gnss_tc_nr_struct.h"
2057#include "gnss_tc_wcdma_struct.h"
2058#include "gnss_tc_context.h"
2059
2060#ifdef __RRLP_SUPPORT__
2061#include "rr2rrlp_struct.h"
2062#include "rrlp_common_headers.h"
2063#include "rrlp_enum.h"
2064#endif /* __RRLP_SUPPORT__ */
2065
2066#ifdef __AGPS_SUPPORT__
2067
2068#if defined(__UAGPS_CP_SUPPORT__)
2069#include "uagps_cp_sibe_struct.h"
2070#include "uagps_cp_meme_struct.h"
2071#include "l4c_uagps_cp_struct.h"
2072#include "uagps_cp_gps_struct.h"
2073#endif /* __UAGPS_CP_SUPPORT__ */
2074
2075#include "lbs_common_enum.h"
2076#endif /* __AGPS_SUPPORT__ */
2077
2078//#if defined(__AGNSS_SUPPORT__)
2079#include "gnss2lcsp_struct.h"
2080#include "gnss2lcsp_enum.h"
2081//#endif /* #if defined(__AGNSS_SUPPORT__) */
2082
2083/* for LPP*/
2084#if defined(__LTE_RAT__) && defined(__LPP_SUPPORT__)
2085#include "lpp_msg_struct.h"
2086#include "lpp_msg_enum.h"
2087#include "lpp_lbs_msg_struct.h"
2088#include "lpp_context.h"
2089#include "lpp_mcd_struct_id.h"
2090#include "Hal_el1_def.h"
2091#include "Hal_el1_struct.h"
2092/* LPPe */
2093#if defined(__LPP_EXT_SUPPORT__)
2094#include "lpp_lppe_struct.h"
2095#include "lpp_ext_context.h"
2096#endif
2097#endif
2098#include "as2l4c_struct.h"
2099
2100//#ifdef __ACMT_SUPPORT__
2101#include "nas2l4c_struct.h"
2102//#endif
2103
2104/*For UL1A*/
2105#if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__)
2106#include "ul1a_enum.h"
2107#endif
2108
2109#if defined (__WMT_SUPPORT__) || defined(__WIFI_BT_SINGLE_ANTENNA_SUPPORT__)
2110#endif /* __WMT_SUPPORT__*/
2111
2112#ifdef __GADGET_SUPPORT__
2113#endif /* __GADGET_SUPPORT__ */
2114
2115#if defined(__RMMI_UT__)
2116#include "tcm_context.h"
2117#endif
2118
2119#include "sim_public_struct.h"
2120#include "sim_private_struct.h"
2121#include "sim_public_enum.h"
2122
2123#ifndef __MTK_TARGET__
2124#include "l4c_context.h"
2125#endif
2126
2127#if defined(__L4C_GPRS_UT__)
2128#include "rmmi_context.h"
2129#endif
2130
2131#ifndef __L1_STANDALONE__
2132#include "rmmi_common_enum.h"
2133#include "rmmi_struct.h"
2134#endif
2135#ifdef __VIDEO_ARCHI_V2__
2136#endif /* __VIDEO_ARCHI_V2__ */
2137
2138/* mpl & source*/
2139
2140#if defined(__L1_GPS_REF_TIME_SUPPORT__) || defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)
2141#include "hal_l1_struct.h"
2142#endif /*(__L1_GPS_REF_TIME_SUPPORT__) || (__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)*/
2143
2144#if defined (__MOD_NVRAM__)
2145#endif
2146/* mtk04121 */
2147
2148/* SIM CODEGEN begin */
2149#ifndef SIM_NOT_PRESENT
2150#include "sim_ps_struct.h"
2151#include "sim_public_struct.h"
2152#endif
2153/* SIM CODEGEN end */
2154
2155/* EVAL CODEGEN begin */
2156#ifdef __EVAL_ENABLE__
2157#include "eval_msgid.h"
2158#include "l4c_eval_struct.h"
2159#include "nwsel_eval_struct.h"
2160#include "rac_eval_struct.h"
2161#include "tcm_eval_struct.h"
2162#include "sms_eval_struct.h"
2163#include "smsal_eval_struct.h"
2164#endif
2165/* EVAL CODEGEN end */
2166
2167//etc interface
2168#include "etc_upcm_struct.h"
2169#include "etc_msgid.h"
2170
2171/* TFTLIB CODEGEN */
2172#include "tftlib_common_struct.h"
2173#include "tftlib_msgid.h"
2174#include "tftlib_msg_struct.h"
2175
2176/* mtk00938: Multimode interfaces */
2177#ifdef __LTE_RAT__
2178#include "mm_emm_struct.h"
2179#include "mm_errc_struct.h"
2180#include "sm_esm_struct.h"
2181#endif
2182
2183/* mtk00938: This file is necessary even without LTE */
2184
2185/* MOD_PAM */
2186#ifdef __PS_SERVICE__
2187#include "pam_msg_struct.h"
2188#include "nwsel_pam_struct.h"
2189#include "pam_context.h"
2190#include "pam_sm_proc.h"
2191#include "pam_vzw_util.h"
2192#include "pam_send_msg.h"
2193#include "pam_assert.h"
2194#include "pam_main.h"
2195#include "pam_public_api.h"
2196#include "pam2tcm_struct.h"
2197#include "usm_context.h"
2198#endif /* __PS_SERVICE__ */
2199
2200/* SMIC */
2201#ifdef __PS_SERVICE__
2202#include "smic_common_def.h"
2203#include "smic_context.h"
2204#include "smic_main.h"
2205#include "smic_utility.h"
2206#endif /* __PS_SERVICE__ */
2207
2208/* UTT/LTT/GTEST */
2209#ifdef __LTT_ENABLE__
2210#endif /* __LTT_ENABLE__ */
2211
2212#if 0
2213#if defined (__EL1_ENABLE__) && !defined(__UE_SIMULATOR__)
2214/* under construction !*/
2215/* under construction !*/
2216#if defined(__LTE_RAT__) && defined(__L1EDPS_ENABLE__)
2217#endif /* __LTE_RAT__ */
2218#if defined(__MTK_TARGET__) && !defined(__L1EDPS_ENABLE__)
2219/* under construction !*/
2220#endif /* __MTK_TARGET__ */
2221#endif /* __EL1_ENABLE__ */
2222#endif
2223
2224#if defined (__IDC_ENABLED__)
2225#if defined (__MD97__)
2226#include "idc_md_msgid.h"
2227#include "idc_msgid.h"
2228#else
2229#include "ccci_ipc_msgid.h"
2230#endif
2231#endif
2232
2233#if defined (__EL2_V2_ENABLE__) || defined(__L1EDPS_ENABLE__)
2234#include "emac_ml1s_msg.h"
2235#endif
2236#include "mdfpm_msgid.h"
2237
2238
2239#if 0
2240#if defined(__EL2_ENABLE__) || defined(__L1EDPS_ENABLE__)
2241/* under construction !*/
2242/* under construction !*/
2243/* under construction !*/
2244/* under construction !*/
2245/* under construction !*/
2246/* under construction !*/
2247/* under construction !*/
2248/* under construction !*/
2249/* under construction !*/
2250/* under construction !*/
2251#endif
2252#endif
2253
2254/* global enum */
2255/***************************************************************
2256* if add _msgid.h or _sap.h file, should include the _msgid.h or _sap.h in : *
2257* kal_debug_msg_sap_defs.h & libParseDbModem.c & srcParseDbModem.c *
2258****************************************************************/
2259#include "module_msg_range.h"
2260#include "perf_msgid.h"
2261#include "sysservice_msgid.h"
2262#include "cc_msgid.h"
2263#include "ciss_msgid.h"
2264#include "mm_msgid.h"
2265#include "sms_msgid.h"
2266#include "sim_public_msgid.h"
2267#include "sim_ps_msgid.h"
2268#include "ps_public_l4_msgid.h"
2269#include "l4_msgid.h"
2270#include "psdm_msgid.h"
2271#include "rr_msgid.h"
2272#include "llc_msgid.h"
2273#include "p2p_msgid.h"
2274#include "sndcp_msgid.h"
2275#include "sm_msgid.h"
2276#include "pam_msgid.h"
2277#include "data_msgid.h"
2278#include "ps_public_vt_msgid.h"
2279#include "VT_msgid.h"
2280#include "nvram_msgid.h"
2281#include "l1_msgid.h"
2282#include "hal_l1_msgid.h"
2283#include "l1hisr_msgid.h"
2284#include "ft_msgid.h"
2285#include "tst_msgid.h"
2286#include "audio_msgid.h"
2287#include "cldmacore_msgid.h"
2288#include "ratcm_msgid.h"
2289#include "ratdm_msgid.h"
2290#include "uas_gas_msgid.h"
2291#include "mrs_msgid.h"
2292#include "uas_gas_gemini_msgid.h"
2293#include "ul1_msgid.h"
2294#include "ul1data_msgid.h"
2295#include "ul1hisr_msgid.h"
2296#include "ul1c_msgid.h"
2297#include "ll1_msgid.h"
2298#include "ul1tst_msgid.h"
2299#include "ulcs_msgid.h"
2300#include "tl1_msgid.h"
2301#include "lpp_msgid.h"
2302#include "tl1data_ast_msgid.h"
2303#include "tl1fta_ast_msgid.h"
2304#include "rsva_msgid.h"
2305#include "mspm_msgid.h"
2306#include "ndis_msgid.h"
2307#include "ps_public_ups_msgid.h"
2308#include "ups_msgid.h"
2309#include "ps_public_supl_msgid.h"
2310#include "supl_msgid.h"
2311#include "cmux_msgid.h"
2312#include "ppp_msgid.h"
2313#include "ext_modem_msgid.h"
2314#include "wmt_msgid.h"
2315#include "em_msgid.h"
2316#include "fs_msgid.h"
2317#include "med_msgid.h"
2318#include "dps_msgid.h"
2319#include "udps_msgid.h"
2320#include "drv_msgid.h"
2321#include "meut_msgid.h"
2322#include "l1_ext_msgid.h"
2323#include "haplus_msgid.h"
2324#include "hif_mw_msgid.h"
2325#include "hif_svc_msgid.h"
2326#include "el1_msgid.h"
2327#include "mcf_msgid.h"
2328#include "sap_relayer_msgid.h"
2329
2330#include "sap_range.h"
2331#include "svc_sap.h"
2332#include "md_sap.h"
2333#include "md_svc_sap.h"
2334#include "md_drv_sap.h"
2335#include "md_mmi_sap.h"
2336#include "md_mw_sap.h"
2337#include "mw_sap.h"
2338#include "drv_sap.h"
2339
2340#include "srv_modid.h"
2341#include "modem_2g3g_modid.h"
2342#include "modem_4g_modid.h"
2343#include "modem_5g_modid.h"
2344#include "middleware_modid.h"
2345#include "drv_modid.h"
2346#include "hisr_modid.h"
2347#include "isr_modid.h"
2348#include "system_profiler_public.h"
2349#if defined(__GSM_RAT__) || defined(__UMTS_RAT__) // BJM
2350#include "l1_core_private.h"
2351#include "l1_rtb.h"
2352#include "l1_rtb_timertype.h"
2353#ifdef __MTK_UL1_FDD__
2354#include "ul1c_trc.h"
2355#include "ul1c_core_private.h"
2356#include "ul1_public.h"
2357#endif /* __MTK_UL1_FDD__ */
2358#endif /* defined(__GSM_RAT__) || defined(__UMTS_RAT__) */
2359
2360//mtk04121
2361#if defined(__ETCM__)
2362#include "tcm_eval_struct.h"
2363#include "tcm_eval_enums.h"
2364#include "tcm_upcm_struct.h"
2365
2366#include "eval_msgid.h"
2367#include "upcm_msgid.h"
2368
2369#endif
2370
2371#include "mtf_msgid.h"
2372
2373#ifdef __MT_FRAMEWORK_SUPPORT__
2374#include "mtf_struct.h"
2375#endif
2376
2377#include "qmu_bm_enum.h"
2378#include "upcm_enum.h"
2379#include "tft_pf_enum.h"
2380
2381#include "qbm_stats.h"
2382#include "upcm_em_struct.h"
2383#include "eval_upcm_struct.h"
2384
2385#include "mrs_upcm_struct.h"
2386
2387#include "upcm.h"
2388
2389/* for RAC/GAS interface */
2390#include "rac_gas_enums.h"
2391#include "rac_gas_struct.h"
2392
2393#if defined(__IMS_SUPPORT__)
2394/* SDM */
2395#include "sdm_atp_struct.h"
2396#include "sdm_atp_enums.h"
2397#include "sdm_imcsms_enums.h"
2398#include "sdm_imcsms_struct.h"
2399#include "sdm_trc.h"
2400#include "sdm_msgid.h"
2401#include "sdm_context.h"
2402#include "sdm_imc_struct.h"
2403
2404/* IMSP */
2405#include "atp_structs.h"
2406#include "atp_msgid.h"
2407#include "atp_imcsms_struct.h"
2408#include "atp_dmf_struct.h"
2409
2410/* IMC */
2411#include "dhl_ims_sap_collect.h"
2412
2413/* IMCSMS */
2414#include "imcsms_msgid.h"
2415#include "imcsms_imc_struct.h"
2416#include "imcsms_enums.h"
2417#include "imcsms_defs.h"
2418#include "imcsms_rl.h"
2419#include "imcsms_context.h"
2420#include "imcsms_timer.h"
2421
2422/* IWLAN */
2423#include "iwlan_msg_struct.h"
2424#include "iwlan_sdm_struct.h"
2425#include "iwlan_public_defs.h"
2426
2427/* IMCB */
2428#include "imcb_msgid.h"
2429#include "imsm_imcb_struct.h"
2430//#include "imsvt_imcb_struct.h"
2431#ifdef __FIVEG_VOICE__
2432#include "atp_imcb_struct.h"
2433#endif /* __FIVEG_VOICE__ */
2434
2435/* IMS_STACK */
2436#include "ims_stack_msgid.h"
2437#include "ims_stack_struct.h"
2438#include "ims_common_def.h"
2439
2440/* IMSUA */
2441#include "imsua_msgid.h"
2442#include "imcb_imsua_struct.h"
2443#include "imc_imsua_struct.h"
2444
2445#endif /* defined(__IMS_SUPPORT__) */
2446
2447
2448#ifdef __N3GPP_OFFLOAD_ENABLE__
2449
2450/* N3ANS */
2451#include "n3ans_msgid.h"
2452#include "n3epc_n3ans_struct.h"
2453#include "atp_n3ans_struct.h"
2454#include "n3ans_l4bnw_struct.h"
2455
2456/* N3CF */
2457#include "n3cf_msgid.h"
2458#include "n3cf_msg_struct.h"
2459#include "n3cf_atp_struct.h"
2460#include "custom_n3cf_config.h"
2461
2462/* N3EPC */
2463#include "n3epc_msgid.h"
2464#include "d2pm_n3epc_struct.h"
2465#include "d2rm_n3epc_struct.h"
2466#include "iwlan_n3epc_struct.h"
2467#include "atp_n3epc_struct.h"
2468
2469/* N3SAM */
2470#include "n3sam_msgid.h"
2471#include "n3epc_n3sam_struct.h"
2472#include "n3sam_eap_proxy_struct.h"
2473#include "n3sam_primitive_log_struct.h"
2474
2475#endif /* __N3GPP_OFFLOAD_ENABLE__ */
2476
2477
2478#ifdef __MD_WLC_SUPPORT__
2479
2480#include "wlc_msgid.h"
2481#include "atp_wlc_struct.h"
2482#include "wlc_atp_struct.h"
2483#include "wlc_user_struct.h"
2484#include "tcpip_wlc_struct.h"
2485
2486#endif /* __MD_WLC_SUPPORT__ */
2487
2488/* CCCI IPC */
2489#if defined(__CCCIDEV_SUPPORT__)
2490#include "ccci_ipc_msgid.h"
2491#include "cccisrv_struct.h"
2492#include "ccci_fs_if.h"
2493#endif /*defined(__CCCIDEV_SUPPORT__)*/
2494#include "mdfpm_msgid.h"
2495
2496/* CCISM */
2497#if defined(__HIF_CCISM_SUPPORT__)
2498#include "ccismcore_msgid.h"
2499#endif /*defined(__HIF_CCISM_SUPPORT__)*/
2500
2501/* MCIF */
2502#if defined(__MCIF_SUPPORT__)
2503#include "mcif_msgid.h"
2504#include "mcif_public_api.h"
2505#ifdef __MCIF_WIFI_SUPPORT__
2506#include "wsvc_msgid.h"
2507#include "wsvc_msg_struct.h"
2508#include "wfpm_msgid.h"
2509#include "wfpm_struct.h"
2510#endif
2511#endif /*defined(__MCIF_SUPPORT__)*/
2512
2513#ifdef __MD_IPSEC_SUPPORT__
2514#include "ipsec_msgid.h"
2515#include "ipsec_tcpip_msg.h"
2516#include "ipsec_cp_msg.h"
2517#include "ipsec_wtunnel_msg.h"
2518#include "ipsec_atp_msg.h"
2519#include "wtunnel_msgid.h"
2520#include "n3sam_wt_struct.h"
2521#endif /* __MD_IPSEC_SUPPORT__ */
2522
2523#include "ps_public_struct.h"
2524
2525#ifdef __IPCORE_SUPPORT__
2526#include "pfm_struct.h"
2527#include "pfm_enums.h"
2528#endif /* __IPCORE_SUPPORT__ */
2529
2530#if defined(__HLT_SUPPORT__)
2531#include "hlt_if.h"
2532#endif
2533#include "mmrf_msgid.h"
2534#include "mmrf_msg_interface.h"
2535#include "ftc_msg.h"
2536#include "l1tst_msgid.h"
2537#include "el1tst_msgid.h"
2538
2539#ifdef __MTK_MD_DIRECT_USB_SUPPORT__
2540#endif
2541
2542#ifdef __WIFIPROXY_SUPPORT__
2543#include "wifi_proxy_msgid.h"
2544#include "wifi_proxy_public.h"
2545#include "wifi_proxy_struct.h"
2546#endif
2547
2548#include "l1d_gpt_if.h"
2549#include "el1d_gpt_if.h"
2550#include "ul1d_gpt_if.h"
2551#include "nl1_gpt_if.h"
2552#include "mml1_gpt_if.h"
2553
2554#include "mml1_rf_interface.h"
2555
2556#if defined(__MD97__)
2557#include "mml1_cdf_trc_enum.h"
2558#include "mml1_endc_trc_enum.h"
2559#endif
2560
2561#include "iwlan_errc_struct.h"
2562#include "iwlan_atp_struct.h"
2563
2564#ifdef __EL1_ENABLE__
2565#include "el1d_trace_public_common.h"
2566#include "el1d_public.h"
2567#include "el1cd_common.h"
2568#include "el1_phs_trace_enum.h"
2569#endif
2570
2571#ifdef __MD_TCPIP_SUPPORT__
2572#include "tcpip_msgid.h"
2573#include "tcpip_struct.h"
2574#include "nal_msgid.h"
2575#include "nal_struct.h"
2576#ifdef __NAL_TEST__
2577#endif
2578#endif
2579
2580/* DNS */
2581#ifdef __MD_TCPIP_SUPPORT__
2582#include "dns_msgid.h"
2583#include "dns_struct.h"
2584#endif
2585
2586/* Ethernet Service */
2587#ifdef __ETHERNET_SERVICE_SUPPORT__
2588#include "ethsvc_msgid.h"
2589#include "ethsvc_struct.h"
2590#endif
2591
2592/* L4B Begin */
2593#include "l4b_internal_defs.h"
2594#include "atp_msgid.h"
2595#include "atp_l4b_struct.h"
2596#include "l4b_atci_struct.h"
2597#include "l4b_cval_struct.h"
2598#include "l4bpwr_struct.h"
2599#include "l4bnw_struct.h"
2600#include "l4bpwr_l4bnw_struct.h"
2601#include "val_msgid.h"
2602#include "l4bsim_struct.h"
2603#include "l4bsat_struct.h"
2604#include "l4bsms_struct.h"
2605#include "l4aps_l4bpdn_struct.h"
2606#include "ddm_l4aps_struct.h"
2607#include "l4bpdn_l4c_struct.h"
2608#include "l4bpdn_tcm_struct.h"
2609#include "l4bpdn_cval_struct.h"
2610#include "l4bpdn_struct.h"
2611#include "tcm_cval_struct.h"
2612#include "l4bpdn_upcm_struct.h"
2613#include "l4c_upcm_struct.h"
2614#include "l4bpdn_leisim.h"
2615#include "l4bpdn_context.h"
2616#include "l4b_vdm_struct.h"
2617#include "l4bcc_struct.h"
2618#include "l4bsbp_struct.h"
2619#include "l4bpwr_l4bsbp_struct.h"
2620#include "l4bss_struct.h"
2621#include "ddm_l4bnw_struct.h"
2622#include "wo_l4bnw_struct.h"
2623#include "l4bnw_l4c_struct.h"
2624#include "l4bpwr_l4c_struct.h"
2625#ifndef __MTK_TARGET__
2626//for l4b.gv
2627#endif
2628/* L4B End */
2629
2630#include "nas_sv_msgid.h"
2631
2632#include "ddm_msgid.h"
2633#include "d2_msgid.h"
2634#include "intctrl_msgid.h"
2635
2636#include "imsm_msgid.h"
2637#include "imsm_struct.h"
2638
2639#include "atp_d2at_struct.h"
2640#include "atp_imsm_struct.h"
2641#include "atp_ddm_struct.h"
2642#include "d2cm_struct.h"
2643#include "d2am_struct.h"
2644#include "d2_struct_tmp.h"
2645#include "d2apn_struct.h"
2646#include "em_ddm_public_struct.h"
2647
2648#include "simmngr_msgid.h"
2649#include "simmngr_struct.h"
2650#include "d2pm_ddm_struct.h"
2651
2652#include "iwlan_msgid.h"
2653#include "atp_iwlan_struct.h"
2654
2655#include "atp_d2rm_struct.h"
2656#include "d2pm_d2rm_struct.h"
2657#include "d2rm_ddm_struct.h"
2658#include "d2rm_iwlan_struct.h"
2659#include "imc_iwlan_struct.h"
2660#include "wipc_iwlan_struct.h"
2661
2662#include "d2ut_struct.h"
2663#include "d2pm_struct.h"
2664#include "d2apn_struct.h"
2665
2666#include "ursp_struct.h"
2667#include "intctrl_user_struct.h"
2668#include "ddm_intctrl_struct.h"
2669
2670#include "wo_msgid.h"
2671
2672#include "eap_common_struct.h"
2673#include "eap_msgid.h"
2674
2675#include "atp_ltecsr_struct.h"
2676#include "sim_dummy_driver.h"
2677
2678#include "l4c_imc_struct.h"
2679#include "l4c_mt_struct.h"
2680
2681#include "atp_l4c_struct.h"
2682#include "atp_smsal_struct.h"
2683#include "atp_sms_struct.h"
2684#include "sdm_sms_struct.h"
2685
2686#ifdef __KPALV_SUPPORT__
2687#include "kpalv_msgid.h"
2688#include "kpalv_struct.h"
2689#endif
2690
2691/* MCF */
2692#include "mcf_struct.h"
2693#include "mcf_enum.h"
2694
2695#ifdef __CDMA2000_RAT__
2696#include "cas_eas_struct.h"
2697#include "evl1shsch.h"
2698#include "rmcsch.h"
2699#include "evl1fhrrm.h"
2700#include "evl1fhhsca.h"
2701#include "evl1fhmain.h"
2702#include "evl1shmain.h"
2703#include "evl1flbrphandler.h"
2704#include "cphevdosch.h"
2705#include "cl1tstl1psif.h"
2706#include "cl1tst_l1ps_msgid.h"
2707#undef register
2708#define register
2709#include "systyp.h"
2710#include "psw_nvram.h"
2711#include "elt_msg_struct.h"
2712#include "cl1_elt_msg_struct.h"
2713#include "elt_msgid.h"
2714#include "l1d_msgid.h"
2715#include "l1d_msg_struct.h"
2716#include "lmd_msg_struct.h"
2717#include "lmd_msgid.h"
2718#include "lmds_msgid.h"
2719#include "psw_msg_struct.h"
2720#include "psw_msgid.h"
2721#include "psws_msg_struct.h"
2722#include "psws_msgid.h"
2723#include "rlp_msg_struct.h"
2724#include "rlp_msgid.h"
2725#include "do_fcp_msg_struct.h"
2726#include "do_fcp_msgid.h"
2727#include "lec_msg_struct.h"
2728#include "lec_msgid.h"
2729#include "do_clc_msg_struct.h"
2730#include "do_clc_msgid.h"
2731#include "do_slc_msg_struct.h"
2732#include "do_slc_msgid.h"
2733#include "do_rmc_msg_struct.h"
2734#include "do_rmc_msgid.h"
2735#include "do_sec_msg_struct.h"
2736#include "do_sec_msgid.h"
2737#include "do_rcp_msg_struct.h"
2738#include "do_rcp_msgid.h"
2739#include "rcp_dhl_trace_enum.h"
2740#include "cpbuf.h"
2741#include "hlp_msgid.h"
2742#include "hlp_msg_struct.h"
2743#include "PPP.H"
2744#include "css_msgid.h"
2745#include "css_msg_struct.h"
2746#include "cssdefs.h"
2747#include "hsc_msgid.h"
2748#include "hsc_msg_struct.h"
2749#include "stub_msgid.h"
2750#include "val_msgid.h"
2751#include "val_msg_struct.h"
2752#include "valpsdm.h"
2753#include "valpdp.h"
2754#include "uim_msgid.h"
2755#include "uim_msg_struct.h"
2756#include "uim_proxy_private_api.h"
2757#include "cuim_private_api.h"
2758#include "valsmsdandcn.h"
2759#include "evl1fhdfs.h"
2760#include "evl1fhinterho.h"
2761#include "l1dsch.h"
2762#include "xl1fhsth.h"
2763#include "xl1shsch.h"
2764#include "xl1shtmglp.h"
2765#include "xl1shrfc.h"
2766#include "lmdapi.h"
2767#include "rmcfmp.h"
2768#include "cphevdoflsrp.h"
2769#include "cl1shrfc.h"
2770#include "cval_ratdm_struct.h"
2771#include "ratdm_chlp_struct.h"
2772#include "cl1rcreq.h"
2773#include "cl1rcseq.h"
2774#include "cl1rcd.h"
2775#include "evl1fhmm.h"
2776#include "evl1fhgm.h"
2777#include "rmcdrcdefs.h"
2778#include "cl1shmmafc.h"
2779#include "evl1shsch.h"
2780#include "hscapi.h"
2781#include "stub_msg_struct.h"
2782#include "tas.h"
2783#include "gmss_cval_struct.h"
2784
2785/* Add C2K EM headers */
2786#include "em_public_struct_evl1.h"
2787#include "em_public_struct_xl1.h"
2788#include "em_public_struct_chsc.h"
2789#include "em_public_struct_evl2.h"
2790#include "em_public_struct_xl2.h"
2791#include "em_public_struct_evl3.h"
2792#include "em_public_struct_xl3.h"
2793#include "em_public_struct_c2k_hlp.h"
2794#include "em_public_struct_cval.h"
2795
2796#include "em_lbs_public_struct.h"
2797#include "em_lpp_public_struct.h"
2798
2799#ifdef __BIP_SUPPORT__
2800#include "bip_msgid.h"
2801#include "bip_if.h"
2802#endif
2803
2804//#include "ssds_imc_struct.h"
2805#include "ssds_l4c_struct.h"
2806
2807#ifdef __XCAP_SUPPORT__
2808#include "xcap_msgid.h"
2809#include "xcap_if.h"
2810#include "atp_xcap_struct.h"
2811#endif
2812
2813#ifdef __DISPATCHER_SUPPORT__
2814#include "dispatcher_msgid.h"
2815#include "ipcore_dispatcher_struct.h"
2816#include "n3epc_dispatcher_struct.h"
2817#endif
2818
2819#ifdef __MD_CRYPTO_SUPPORT__
2820#include "crypto_msgid.h"
2821#include "crypto_struct.h"
2822#endif
2823
2824#undef register
2825#endif /* __CDMA2000_RAT__ */
2826
2827#ifdef __HTTP_TLS_SUPPORT__
2828#include "http_tls_msgid.h"
2829#include "http_if.h"
2830#include "tls_if.h"
2831#endif
2832
2833#ifdef __MD_CERT_SUPPORT__
2834#include "cert_msgid.h"
2835#include "cert_struct.h"
2836#endif
2837
2838#ifdef __SASE_SUPPORT__
2839#include "sase_msgid.h"
2840#include "sase_if.h"
2841#endif
2842
2843#if defined(__FIVEG_NAS__)
2844#include "vgmm_ratdm_struct.h"
2845#include "nas_sv_vgmm_struct.h"
2846#include "vgmm_upcm_struct.h"
2847#include "ddm_vgmm_struct.h"
2848//#include "vgmm_msg_unpack.h"
2849//#include "vgsm_msg_unpack.h"
2850
2851/* UPDS */
2852#include "upds_msgid.h"
2853#include "upds_common.h"
2854#include "upds_context.h"
2855#include "ursp_upds_struct.h"
2856#include "upds_vgmm_struct.h"
2857
2858#endif /* __FIVEG_NAS__ */
2859
2860
2861#if defined (__NR_RAT__)
2862#if defined (__ENDC__)
2863#include "errc_nrrc_struct.h"
2864#endif /*__ENDC__*/
2865#include "rrc_nrrc_struct.h"
2866#include "rr_nrrc_struct.h"
2867#include "upcm_nmac_struct.h"
2868//#include "nmac_enum_struct.h"
2869#include "erm_nrrc_struct.h" /// ERM NRRC SAP
2870#endif /* __NR_RAT__ */
2871
2872#ifdef __PERF_SUPPORT__
2873#include "perf.h" /// protocol exception recovery framework enum for format string
2874#endif // ~ #ifdef __PERF_SUPPORT__
2875#include "perf_api.h" /// protocol exception recovery framework API
2876
2877#ifdef __IPC_ADAPTER__
2878#ifndef __MTK_TARGET__
2879#include "oemdebug.h"
2880#include "oemutility.h"
2881#endif
2882#include "ipc_adapter_public_struct.h"
2883#include "ipc_adapter_public_def.h"
2884#include "ipc_adapter_public_em_struct.h"
2885#include "ipc_adapter_msgid.h"
2886#include "ipc_adapter_cc_struct.h"
2887#include "ipc_adapter_pwr_struct.h"
2888#include "ipc_adapter_sms_struct.h"
2889#include "ipc_adapter_atp_struct.h"
2890#include "ipc_adapter_sat_struct.h"
2891#include "ipc_adapter_phb_struct.h"
2892#include "ipc_adapter_smu_struct.h"
2893#include "ipc_adapter_ss_struct.h"
2894#include "ipc_adapter_imei_struct.h"
2895#include "ipc_adapter_cfg_struct.h"
2896#include "ipc_adapter_embms_struct.h"
2897#include "ipc_adapter_l23_struct.h"
2898#include "ipc_adapter_domestic_struct.h"
2899#include "ipc_adapter_jpn_struct.h"
2900#include "ipca_smu_private_enum.h"
2901#include "ipca_smu_context.h"
2902#include "ipca_embms_context.h"
2903#include "ipca_ctrl_struct.h"
2904#include "ipca_phb_enum.h"
2905#include "ipca_imei_enum.h"
2906#include "ipca_pwr_enum.h"
2907#include "ipca_pwr_context.h"
2908#include "ipca_sms_hdlr.h"
2909#include "ipc_adapter_nw_struct.h"
2910#include "ipc_adapter_dspl_struct.h"
2911#include "ipc_adapter_misc_struct.h"
2912#include "ipca_nw_enum.h"
2913#include "ipca_nw_context.h"
2914#include "ipca_misc_enum.h"
2915#include "ipc_adapter_enum.h"
2916#include "ipc_adapter_gprs_struct.h"
2917#include "ipca_ctrl_context.h"
2918#include "ipca_factory_enum.h"
2919#include "ipc_adapter_factory_struct.h"
2920#include "ipc_adapter_sap_struct.h"
2921#include "ipca_gprs_enum.h"
2922#include "ipca_gprs_context.h"
2923#include "ipca_gprs_ps.h"
2924#include "ipca_gprs_ps_routine_struct.h"
2925#include "ipc_adapter_em_struct.h"
2926#include "ipca_sat_private_struct.h"
2927#include "ipca_sat_private_enum.h"
2928#include "ipca_cc_utility.h"
2929#include "ipc_adapter_srlte_struct.h"
2930#include "ipca_srlte_context.h"
2931#include "ipca_em_struct.h"
2932#include "ipca_jpn_private_struct.h"
2933#include "ipca_jpn_private_defs.h"
2934#include "ipca_domestic_main.h"
2935#include "ipca_sap_enum.h"
2936#include "ipca_sap_context.h"
2937#endif //__IPC_ADAPTER__
2938
2939#ifdef __L5_SUPPORT__
2940#include "l5_msgid.h"
2941#include "l5_structs.h"
2942#include "l5ath_def.h"
2943#include "l5ath_switch_def.h"
2944#include "l5ath_rf_def.h"
2945#include "l5uss_def.h"
2946#include "l5ucat_def.h"
2947#include "l5mipc_sms.h"
2948#include "l5sms_def.h"
2949#include "l5sys_def.h"
2950#include "l5usms_def.h"
2951#include "l5ath_ss_def.h"
2952#include "l5mipc_struct.h"
2953#include "l5updn_def.h"
2954#include "l5_nw_structs.h"
2955#include "l5usim_struct.h"
2956#include "l5_switch_structs.h"
2957#include "l5_common.h"
2958#include "tmc_l5_struct.h"
2959#include "l5ucc_struct.h"
2960#include "l5u_structs.h"
2961#include "l5uims_def.h"
2962#include "l5io_structs.h"
2963#include "l5u_structs.h"
2964#include "ath_cmd.h"
2965#include "nccmni_if.h"
2966#include "idc_l5_str.h"
2967#if ((defined __ECALL_SUPPORT__) || (defined __NG_ECALL_SUPPORT__))
2968#include "l5uecall_def.h"
2969#endif
2970#endif /* __L5_SUPPORT__ */
2971
2972#ifdef __MD_TFWK__
2973#include "tfwk.h"
2974#endif
2975
2976/********************************************* Warning **********************************************
2977* Please make sure header file is included correctly!
2978* If the common header file is added to libParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
2979* The change as above can lead to build time inefficiency.
2980*
2981* common header file => libParseDbModem.c
2982* Tdd/Fdd(2g/3g) header file => libParseDbModem_tdd_fdd.c
2983*
2984* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in libParseDbModem_tdd_fdd.c
2985* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to libParseDbModem.c
2986********************************************** Warning **********************************************/