[Feature]Upload Modem source code
Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/service/dhl/database/msglog_db/custom_parse_db.c b/mcu/service/dhl/database/msglog_db/custom_parse_db.c
new file mode 100644
index 0000000..9ef46f4
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/custom_parse_db.c
@@ -0,0 +1,215 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * custom_parse_db.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects the customer module/primitve information to be included
+ * in the database.
+ * The enum id for module type is "customer_module_type".
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ * 10 18 2021 ot_muhammed.rafy
+ * [MOLY00572177] Bar cell????
+ *
+ * .
+ *
+ * 07 19 2021 vend_mtb_aritha009
+ * [MOLY00572177] Bar cell????
+ *
+ * .
+ *
+ * 04 08 2020 jack-mh.tsai
+ * [MOLY00510555] [Coverity]Fix DMF coverity and secure coding
+ *
+ * 04 06 2020 jack-mh.tsai
+ * [MOLY00509913] [Coverity Scanned Code Defect][MPD][CERT L1 for C]CID:976804 code defect happened in /mcu/protocol/dmf/InfoCollect/dmf_info_at_hdlr.c
+ *
+ * 01 14 2020 jack-mh.tsai
+ * [MOLY00474607] ModemºÝ¤j?Õu¦¬¶°(MPD)
+ *
+ * 01 03 2020 jack-mh.tsai
+ * [MOLY00469943] DMF Customization Framework (MPD)
+ *
+ * 09 23 2019 yaoyong.ju
+ * [MOLY00442618] [VMOLY]Rebuild NVRAM file to fix LID description not match in SW RD and MPD domain
+ *
+ * .
+ * Fix OA domain build issue
+ *
+ * 03 15 2019 bo-hun.chen
+ * [MOLY00378534] [Mcddll] VGSM/VGMM part - subsidiary(ADZ) build error.
+ *
+ * 03 13 2019 bo-hun.chen
+ * [MOLY00378534] [Mcddll] VGSM/VGMM part
+ *
+ * [MOLY00378534] [VGSM] mcddll
+ *
+ * 07 30 2018 chi-chun.lu
+ * [MOLY00342741] [MakeFile] [UMOLYE] [Modify Makefile Rules] enhance build flow for cgen tdd/fdd preprocessing files
+ *
+ * .
+ *
+ *******************************************************************************/
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to custom_parse_db_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => custom_parse_db.c
+* Tdd/Fdd(2g/3g) header file => custom_parse_db_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in custom_parse_db_tdd_fdd.c
+* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to custom_parse_db.c
+********************************************** Warning **********************************************/
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+
+
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+
+#ifdef __RVCT__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+#define _ARMABI
+#endif
+
+#include "kal_public_api.h"
+#include "kal_public_defs.h" //MSBB change #include "stack_msgs.h"
+#include "sap_info.h"
+#include "msg_id_to_em_info_map.h"
+
+#include "stack_ltlcom.h"
+
+#include "l4c2uem_struct.h"
+
+#ifndef NVRAM_NOT_PRESENT
+#include "nvram_gen_trc.h"
+#endif
+
+// #ifndef __L1_STANDALONE__
+#include "nvram_data_items.h"
+#include "ex_item.h"
+
+#if defined (__MMI_FMI__)
+ #include "nvram_common_defs.h"
+ #include "nvram_user_defs.h"
+ #include "common_nvram_editor_data_item.h"
+ #include "custom_nvram_editor_data_item.h"
+#endif
+
+#include "nvram_editor_data_item.h"
+#include "nvram_editor.h"
+#include "nvram_lid_list_for_mcf.h"
+#include "nvram_lid_structure_check_extend_list.h"
+// #endif /* __L1_STANDALONE__ */
+
+
+
+#if !defined(__MAUI_BASIC__)&&(defined(__DHL_MODULE__)||defined(__TST_MODULE__))
+#include "custom_nvram_database.h"
+#endif
+
+/*Add for CustPack*/
+#include "resource_audio.h"
+
+//Add here for global enum re-composition
+#include "module_msg_range.h"
+#include "sap_range.h"
+
+#include "tst_msgid.h"
+#include "md_svc_sap.h"
+
+#ifdef __CDMA2000_RAT__
+/* Add C2K EM headers */
+#include "em_public_struct_evl1.h"
+#include "em_public_struct_xl1.h"
+#include "em_public_struct_chsc.h"
+#include "em_public_struct_evl2.h"
+#include "em_public_struct_xl2.h"
+#include "em_public_struct_evl3.h"
+#include "em_public_struct_xl3.h"
+#include "em_public_struct_c2k_hlp.h"
+#include "em_public_struct_cval.h"
+#endif /* __CDMA2000_RAT__ */
+
+#include "atp_dmf_struct.h"
+#include "dmf_public_event.h"
+#include "custom_dmf_app.h"
+
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to custom_parse_db_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => custom_parse_db.c
+* Tdd/Fdd(2g/3g) header file => custom_parse_db_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in custom_parse_db_tdd_fdd.c
+* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to custom_parse_db.c
+********************************************** Warning **********************************************/
diff --git a/mcu/service/dhl/database/msglog_db/custom_parse_db_tdd_fdd.c b/mcu/service/dhl/database/msglog_db/custom_parse_db_tdd_fdd.c
new file mode 100644
index 0000000..a267b79
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/custom_parse_db_tdd_fdd.c
@@ -0,0 +1,89 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * custom_parse_db.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects the customer module/primitve information to be included
+ * in the database.
+ * The enum id for module type is "customer_module_type".
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ *
+ *******************************************************************************/
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+
+
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+
+#ifdef __RVCT__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+#define _ARMABI
+
+#endif
\ No newline at end of file
diff --git a/mcu/service/dhl/database/msglog_db/libParseDbModem.c b/mcu/service/dhl/database/msglog_db/libParseDbModem.c
new file mode 100644
index 0000000..52bf2b8
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/libParseDbModem.c
@@ -0,0 +1,2986 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * libParserDbModem.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects primitve IDs and struct definition from the Modem
+ * application part for pre-processing.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ * 12 16 2021 changlong.chen
+ * [MOLY00774161] [mt2735][CS eCall][NG eCall][patch back] ecall patch back from NR15.R3.MD700.MP.ECAll.DEV
+ *
+ * .
+ * l5uecall patch(MPD domain) back from NR15.R3.MD700.MP.ECAll.DEV
+ *
+ * 01 22 2021 kiwi.zhang
+ * [MOLY00608850] NRTC CoEx command support is needed
+ *
+ * .L5 NRTC MPD Modify
+ *
+ * 12 03 2020 tongkun.zhang
+ * [MOLY00593154] [L5] patch back L5 from NR15.R3.MD700.MP to NR15.R3.MD700.MP
+ *
+ * [L5IO]unify AT handle
+ * 1. send ilm to replace recurse
+ * 2. handle mulit-at from CUST/MBCI/MIPC
+ * 3. meta_ctxt rearch...
+ *
+ * 11 16 2020 shih-yu.chen
+ * [MOLY00595245] [Colgin] TMC development
+ * [TMC] patch back to MD700.
+ *
+ * 11 13 2020 harold.liu
+ * [MOLY00594647] [MD700][L5]patch back L5 to NR15.R3.MD700.MP
+ * io track add cmd id
+ * FROM:CL13166290
+ *
+ * 11 11 2020 chih-ting.yeh
+ * [MOLY00590833] ICD JSON Auto Gen Feature
+ * [Enhance] ICD header package refinement
+ * ======
+ * - add new generated ICD header to DB
+ * - move including ICD code range from interface to internal header
+ * - add ICD mock header
+ *
+ * 11 11 2020 fengwen.weng
+ * [MOLY00543445] [Gen97][Colgin] TFWK Thermal Development
+ * .display structure info on ELT
+ *
+ * 11 10 2020 tongkun.zhang
+ * [MOLY00593154] [L5] patch back L5 from NR15.R3.MD700.MP to NR15.R3.MD700.MP
+ * [L5][MPD]libParseDbModem
+ *
+ * 09 24 2020 harold.liu
+ * [MOLY00560596] [T700][L5]patch back L5 to NR15.R3.T700.MP
+ *
+ * io track add cmd id
+ *
+ * 09 18 2020 cosmo.sung
+ * [MOLY00569501] [Gen97] TC10 patch back
+ *
+ * - L4 CC/SS
+ *
+ * 09 18 2020 cosmo.sung
+ * [MOLY00569501] [Gen97] TC10 patch back
+ *
+ * - L4 CC/SS
+ *
+ * 09 18 2020 cosmo.sung
+ * [MOLY00569501] [Gen97] TC10 patch back
+ *
+ * - L4 CC/SS
+ *
+ * 09 18 2020 cosmo.sung
+ * [MOLY00569501] [Gen97] TC10 patch back
+ *
+ * - L4 CC/SS
+ *
+ * 08 28 2020 tong.li
+ * [MOLY00562709] [5GHP][feature][Data&Call]game space mode
+ * .
+ *
+ * 08 19 2020 guo-huei.chang
+ * [MOLY00538247] ?�维测�?求�?�ICD??��?�modem 待机??�工作状?�相?��?��?��
+ *
+ * DHL part
+ *
+ * 08 13 2020 ken.li
+ * [MOLY00543497] [MT6873][Margaux][R0][MP5][in-house FTA][LTE][7.1.1.2]enable volte fail
+ *
+ * UPCM TESTMODE drops non-loopback data for obtaining IP address case (MPD, libParseDbModem)
+ *
+ * 07 27 2020 dennis.tsai
+ * [MOLY00549478] [Gen97][HE3.0]N3GPP offload over data feature
+ *
+ * patch back from dev for vodata feature.
+ *
+ * 07 27 2020 dennis.tsai
+ * [MOLY00549478] [Gen97][HE3.0]N3GPP offload over data feature
+ *
+ * patch back from dev for vodata feature.
+ *
+ * 07 23 2020 dennis.tsai
+ * [MOLY00546023] [Gen97][VoDATA] implement intctrl and feature for VoDATA
+ * add ddm_intctrl_struct.h to db.
+ *
+ * 07 17 2020 dennis.tsai
+ * [MOLY00546023] [Gen97][VoDATA] implement intctrl and feature for VoDATA
+ *
+ * add intctrl msgid to libparsedb, fix build error.
+ *
+ * 07 16 2020 ssu-hsien.wu
+ * [MOLY00545981] [Gen97][N3GPP_OVER_DATA] Add feature option and compile option for N3GPP offload over data.
+ *
+ * Rollback libParseDbModem.c to fix build error.
+ *
+ * 06 29 2020 lucien.li
+ * [MOLY00535120] [Gen97] Intra-Band DR-DSDS
+ *
+ * [L4C] DSDA rename
+ *
+ * 06 13 2020 yilun.yang
+ * [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
+ * Route PS_EVENT_IND to DDM through L4BNW.
+ *
+ * 06 10 2020 yilun.yang
+ * [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
+ * Send PS_EVENT_REPORT_IND to DDM through L4BNW.
+ *
+ * 03 06 2020 tim-yw.liu
+ * [MOLY00503552] [UESIM] Re-arch VMMI to support dummyAP and ATcmd multi-channel
+ *
+ * Add DummyAP and support ATcmd multi-channel
+ *
+ * 02 26 2020 willy-wj.chen
+ * [MOLY00501981] [Gen97][UPCM] TMO-US F4L data performance patch sync from Gen93
+ * [UPCM] put small UDP packet into pri-SIT upon channel lock.
+ *
+ * 02 14 2020 you-ren.chen
+ * [MOLY00466485] [Gen97][NWSIM][4G][LTE_01_07]Bearer Resource Modification Request Timeout
+ *
+ * Dedicated bearer clear mode should not be thought as dedicated bearer setting.
+ *
+ * 02 14 2020 you-ren.chen
+ * [MOLY00466485] [Gen97][NWSIM][4G][LTE_01_07]Bearer Resource Modification Request Timeout
+ *
+ * Dedicated bearer clear mode should not be thought as dedicated bearer setting.
+ *
+ * 02 14 2020 actory.ou
+ * [MOLY00499908] [MT6873][Margaux][Q0][MP2][SQC][Log profiling]LTE VoLTE PS Standard filter - W06 target fail - MOD_CCISMCORE
+ * [VMOLY][MPD] add ccci enum for log reduction
+ *
+ * 02 13 2020 chia-yu.ku
+ * [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
+ *
+ * .
+ *
+ * 02 13 2020 chia-yu.ku
+ * [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
+ *
+ * .
+ *
+ * 02 12 2020 kc.lin
+ * [MOLY00499183] [VMOLY][LADN-IT] LADN bugs check-in
+ * .
+ *
+ * 02 04 2020 allen.keh
+ * [MOLY00476273] [MT6297][gemini][VGMM] gemini phase 2 development
+ * .1. not perform gemini abort MRU during MSPM_IMS_CALL_ALT1 or MSPM_IMS_CALL_ALT2 session
+ * 2. paging period protect
+ * 3. paging DRB protect
+ * 4. DL data protect
+ *
+ * 01 21 2020 louis-tw.huang
+ * [MOLY00475688] [Gen97][VMOLY][UT][MRDC-IDC] enable dummy L1 IDC module for ERRC UT verification
+ * .
+ *
+ * 01 14 2020 yongjian.zhao
+ * [MOLY00469848] root certificate feature check in
+ *
+ * certificate refactoring
+ *
+ * 01 02 2020 icy.li
+ * [MOLY00469376] [VMOLY][WLC] correct WLC compile option
+ *
+ * .
+ *
+ * 12 24 2019 po-chun.lee
+ * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
+ *
+ * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
+ *
+ * .
+ *
+ * 12 24 2019 po-chun.lee
+ * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
+ *
+ * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
+ *
+ * .
+ *
+ * 12 24 2019 po-chun.lee
+ * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
+ *
+ * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
+ *
+ * .
+ *
+ * 12 23 2019 po-chun.lee
+ * [MOLY00467645] [MT6885][Petrus][Q0][MP2][SQC][IMS][TW][FET][VoWiFi][TCID:W_PS_02] no WiFi call
+ * [MOLY00467243] [ePDG][RFT][VMOLY.1001.DEV][VMOLY][PatchBack]
+ *
+ * .
+ *
+ * 12 08 2019 icy.li
+ * [MOLY00463016] [Submarine] Add __MD_WLC_SUPPORT__to replace __SUBMARINE_SUPPORT__ flag
+ *
+ * .
+ *
+ * 12 06 2019 yu-ting.hsu
+ * [MOLY00464179] [6297] ENRLC module level 1001 patch back to VMOLY
+ *
+ * ENRLC module level patch back
+ *
+ * 12 06 2019 can.lin
+ * [MOLY00463601] [Gen97] Modify SASE module
+ *
+ * SASE DHL Definition
+ *
+ * 12 06 2019 po-chun.lee
+ * [MOLY00463967] [N3X][VMOLY] Patch Back-
+ *
+ * ATP
+ *
+ * 12 05 2019 tc.chang
+ * [MOLY00446861] [Gen97][Code Sync] [B190414-819]?ģ??{d?AI??450 (?`X?A?h`?) According to data type to release HPS for paging.
+ *
+ * 12 04 2019 jie-yu.wang
+ * [MOLY00462619] [GNSS_TC/LBS/GPS] code change and make file change
+ * [LBS] Trace.
+ *
+ * 12 03 2019 prime.xiao
+ * [MOLY00456600] [Gen97] NR Map Feature
+ *
+ * .
+ *
+ * 12 02 2019 jun-han.lin
+ * [MOLY00462166] MDFPM support feature option on/off
+ *
+ * MDFPM feature option on/off
+ *
+ * 12 02 2019 prime.xiao
+ * [MOLY00381008] [Gen97][GMSS] 5G related feature
+ *
+ * .MOLY00366859
+ * MOLY00438399
+ * MOLY00442288
+ * MOLY00442633
+ * MOLY00442781
+ * MOLY00443807
+ *
+ * 11 29 2019 chang-yen.chih
+ * [MOLY00462536] [VMOLY] Support getting RAN info in EPDN
+ *
+ * EPDN RAN (interface & D2RM)
+ *
+ * 11 29 2019 chang-yen.chih
+ * [MOLY00462536] [VMOLY] Support getting RAN info in EPDN
+ * EPDN RAN (interface & D2RM)
+ *
+ * 11 08 2019 ya.li
+ * [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'
+ *
+ * .
+ *
+ * 11 05 2019 yenchih.yang
+ * [MOLY00456796] 2501730----��?�d�A��??��5G??�ANetwork Selecting��?��NR/LTE/UMTS/GSM/C2K,����`?5G.
+ *
+ * 10 17 2019 jani.manninen
+ * [MOLY00448006] [MT6885][Petrus][MP1][SQC][SH][5GMM][Static][CU][MDST][SWIFT][S] [Fatal error(buf)] err_code1:0x00000823 err_code2:0x00000020 err_code3:0xCCCCCCCC
+ *
+ * .
+ *
+ * 09 25 2019 ian-yw.chen
+ * [MOLY00401131] [Gen97] porting from 95
+ * .
+ *
+ * 09 25 2019 chen-wei.lan
+ * [MOLY00443561] [Gen97] SCBM
+ * SCBM
+ *
+ * 09 24 2019 howen.pu
+ * [MOLY00440880] EM info with XCAP information
+ * XCAP - VMOLY Common.
+ *
+ * 09 23 2019 louis-tw.huang
+ * [MOLY00439533] [Gen97][IDC] IDC feature development [EWSP0000046233]
+ *
+ * 09 23 2019 jerry-kirk.yang
+ * [MOLY00441364] [UPDS] Add new task for UE policy delivery service
+ * [VMOLY_TRUNK][MPD][UPDS] DB update.
+ *
+ * 09 21 2019 guan-ren.chen
+ * [MOLY00327199] [Gen97] Development
+ * 1. ULSP DSP refactory
+ * 2. Remove SW pull power when PB is not empty
+ * 3. Move DSP ST log definition file from HWRD to MPD
+ *
+ * 09 18 2019 guan-ren.chen
+ * [MOLY00327199] [Gen97] Development
+ * 1. ULSP DSP refactory
+ * 2. Remove SW pull power when PB is not empty
+ * 3. Move DSP ST log definition file from HWRD to MPD
+ *
+ * 09 16 2019 harish.reddy
+ * [MOLY00438652] [CODE SYNC] ????????????????? - DMF Report Part
+ *
+ * 09 09 2019 yu-hsiang.peng
+ * [MOLY00402569] [VMOLY] Logging Related Feature Patch
+ * [TRUNK] MPD, custom cmd + sap reboot
+ * 2019.09.09
+ *
+ * 09 06 2019 vend_mti_wsd_005
+ * [MOLY00437612] [VMOLY][New feature check-ins] Add SWLA customLog in wifiproxy for performance profile
+ *
+ * [MPD] Add SWLA customLog in wifiproxy for performance profile
+ *
+ * 09 06 2019 amit.singh
+ * [MOLY00433282] VMOLY KPALV module check-in
+ *
+ * VMOLY Latest patch MPD C.
+ *
+ * 09 03 2019 chun-yu.chien
+ * [MOLY00436706] [Code Sync] DMF report part porting
+ *
+ * DMF report part porting - Source
+ *
+ * 08 26 2019 shi-yang.huang
+ * [MOLY00434739] [6297][ENDC][SLEEP] ENDC common gap framework modification for sleep mode
+ *
+ * Trigger auto-sync[SKIP EWSP: Fix build error, trigger auto-sync to Mercury]
+ *
+ * 08 26 2019 shi-yang.huang
+ * [MOLY00434739] [6297][ENDC][SLEEP] ENDC common gap framework modification for sleep mode
+ *
+ * [Skip EWSP: Pass EWSP with another shelved CL: EWSP0000035957]
+ *
+ * 08 26 2019 chen-wei.lan
+ * [MOLY00433041] [Gen97][EPSFB] IT related issues
+ * uac
+ *
+ * 08 21 2019 cheng-dao.lee
+ * [MOLY00433074] [VMOLY] MCIF patches
+ *
+ * enable MCIF
+ *
+ * 08 15 2019 lucien.li
+ * [MOLY00427072] [Gen97][NSA] Deactivate ENDC feature
+ * [SQC][OPPO][L4C] SCG activation
+ *
+ * 08 09 2019 danny.kuo
+ * [MOLY00430467] [Gen97] DMF patch back to Gen97
+ * .
+ *
+ * 08 08 2019 mika.kaikkonen
+ * [MOLY00397648] [Submarine] Modem Certificate module
+ *
+ * Cert definitions to libParseDbModem.c and srcParseDbModem.c.
+ *
+ * 08 02 2019 digvijay.arya
+ * [MOLY00401209] [VMOLY]Submarine Crypto module checkin
+ *
+ * Add crypto struct info for logs
+ *
+ * 07 25 2019 head.hsu
+ * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
+ * PERF structure & enum shown in ELT
+ *
+ * 07 24 2019 tim-yw.liu
+ * [MOLY00395518] [Submarine] N3SAM development
+ * N3X/WLC Trace Configuration
+ *
+ * 07 24 2019 head.hsu
+ * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
+ * fix build error
+ *
+ * 07 24 2019 head.hsu
+ * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
+ * PERF API enable (MPD)
+ *
+ * 07 24 2019 peter.yu
+ * [MOLY00420694] [MT6297][Apollo][MP1][SQC][EM][China][Shenzhen][FDD][4GMM][CU+NA][TCID:EM_EL2_001]SRB/DRB number doesn't display the value.
+ * Change structure file for MD database.
+ *
+ * 07 23 2019 ari.simonen
+ * [MOLY00392197] [Submarine] Modem DNS module
+ *
+ * ILM database updates for DNS and Ethernet Service
+ *
+ * 07 18 2019 jun-quan.chen
+ * [MOLY00422579] [MDDP] DPFM porting to VMOLY
+ * [MPD] DPFM patch back
+ *
+ * 07 17 2019 titi.wu
+ * [MOLY00387219] [Gen97] SBP todo list
+ * MOLY00357235 code sync
+ *
+ * 07 16 2019 mika.leinonen
+ * [MOLY00422303] Submarine VMOLY patch back - EAP module
+ * MPD files
+ *
+ * 07 15 2019 konark.mehra
+ * [MOLY00411914] [New feature check-ins] WIFI Proxy feature check-ins
+ *
+ * SUBMARINE patchback
+ *
+ * 07 12 2019 deepti.singh
+ * [MOLY00397188] [Submarine]HTTP dev
+ * HTTP VMOLY PB
+ *
+ * 07 09 2019 amit.singh
+ * [MOLY00420334] Dispatcher module check-in VMOLY [SUBMARINE]
+ *
+ * Dispatcher code check-in
+ *
+ * 07 04 2019 bo-kai.huang
+ * [MOLY00357061] 97 Code Merge
+ * [WT] merge.
+ *
+ * 07 03 2019 mark.ng
+ * [MOLY00415229] NMAC RBR feature development
+ * RBR interface and code (MPD)
+ *
+ * 06 27 2019 aaron.liu
+ * [MOLY00415398] [Gen97][NR][General Error Recovery] ERM: Errory Recovery Module part.
+ * Add __NR_RAT__.
+ *
+ * 06 26 2019 aaron.liu
+ * [MOLY00415398] [Gen97][NR][General Error Recovery] ERM: Errory Recovery Module part.
+ * ERM main body.
+ *
+ * 06 14 2019 chunchieh.liao
+ * [MOLY00412901] [GEN97][MML1][CDF] Header re-organization for trace enum.
+ *
+ * -- [EWSP0000017597] (MPD)
+ *
+ * 06 14 2019 chunchieh.liao
+ * [MOLY00412901] [GEN97][MML1][CDF] Header re-organization for trace enum.
+ * -- [EWSP0000017597] (MPD)
+ *
+ * 06 12 2019 ari.simonen
+ * [MOLY00402881] [Gen97][Submarine] Submarine M1 VMOLY patch back - IMS
+ *
+ * Trace database updates for IMS and NAL monitor
+ *
+ * 06 06 2019 olivia.peng
+ * [MOLY00411717] [Gen97][Submarine]IPsec Patchback -part 2
+ * .
+ *
+ * 06 04 2019 danny.kuo
+ * [MOLY00409125] [VMOLY] Create new module L4APS
+ *
+ * .L4BPDN part
+ *
+ * 05 28 2019 yuchi.huang
+ * [MOLY00408807] [MT6297][NR][EM] NL1 EMdevelopment
+ *
+ * -add EM interface
+ *
+ * 05 13 2019 clint.chang
+ * [MOLY00401827] [MT6297][EL1D][LPCC] Low power central control feature development
+ * [EWSP0000009929]
+ * - Modify trace
+ * - Modify interaction between RAS and LPCC
+ *
+ * 05 07 2019 savvas.chou
+ * [MOLY00403400] [Submarine] M1 to VMOLY
+ * .
+ *
+ * 05 03 2019 guan-ren.chen
+ * [MOLY00400853] [Gen97] Logging service enhancement
+ * ULSP to SIB path implement.
+ *
+ * 04 19 2019 max.mo
+ * [MOLY00399993] [Gen97][VMOLY] interworking withN26 features
+ * . [MPD] Max
+ *
+ * 04 12 2019 head.hsu
+ * [MOLY00398433] [Gen97][VMOLY] Protocol Assert Remove phase 1
+ * PERF (Protocol Exception Recovery Framework) create
+ *
+ * 03 26 2019 max.mo
+ * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature.Max
+ *
+ * 03 26 2019 max.mo
+ * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature.Max
+ *
+ * 03 15 2019 bo-hun.chen
+ * [MOLY00378534] [Mcddll] VGSM/VGMM part - subsidiary(ADZ) build error.
+ *
+ * 03 13 2019 bo-hun.chen
+ * [MOLY00378534] [Mcddll] VGSM/VGMM part
+ *
+ * [MOLY00378534] [VGSM] mcddll
+ *
+ * 03 12 2019 ian-yw.chen
+ * [MOLY00390240] [Gen97] SMS features and revise
+ * .
+ *
+ * 03 11 2019 prime.xiao
+ * [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
+ *
+ * .
+ *
+ * 02 27 2019 yuri.huang
+ * [MOLY00377335] [MakeFile] [UMOLYE] [Modify Makefile Rules] MPD SUB flow for 2g/3g
+ *
+ * .
+ *
+ * 02 21 2019 yiting.cheng
+ * [MOLY00383950] [GEN97][ENPDCP] Let ELT able to parse NPDCP_NRLC_DL_DATA_IND message
+ * .
+ *
+ * 02 19 2019 yuri.huang
+ * [MOLY00377335] [MakeFile] [UMOLYE] [Modify Makefile Rules] MPD SUB flow for 2g/3g
+ *
+ * .
+ *
+ * 02 18 2019 chester-zd.huang
+ * [MOLY00384995] [VMOLY] GEMINI 3.0, AFR, Unify Frequency scan, BGSEARCH
+ * - RSVAK/RSVAN Part
+ *
+ * 02 18 2019 lucien.li
+ * [MOLY00384997] [VMOLY] NR Type Switch
+ * [NR Type Switch][L4]
+ *
+ * 02 15 2019 tzu-ying.chen
+ * [MOLY00384621] [Gen97][LBS] Location information API for MD modules
+ *
+ * .
+ *
+ * 02 15 2019 kuan-wei.chen
+ * [MOLY00346647] [MT6297][VDM/L4] changes for 97
+ * [VMOLY.EVB.SEPT.DEV][MPD] sync VDM CL: 7356214~7518611
+ *
+ * 02 14 2019 yiting.cheng
+ * [MOLY00327926] [GEN97][ENPDCP] base development check-in
+ * .
+ *
+ * 02 12 2019 head.hsu
+ * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
+ * rollback
+ *
+ * 02 12 2019 yiting.cheng
+ * [MOLY00327926] [GEN97][ENPDCP] base development check-in
+ * .
+ *
+ * 02 11 2019 prime.xiao
+ * [MOLY00383493] [Gen97][MRS] 5G related feature
+ *
+ * . operator feature table (MPD part)
+ *
+ * 01 28 2019 jun-quan.chen
+ * [MOLY00381488] [Gen97] [MCF] MCF porting to VMOLY
+ * [MCF] [MPD] MCF porting to VMOLY
+ *
+ * 01 21 2019 devin.yang
+ * [MOLY00378746] [System Service] [KAL Config] ISR Centraliztion Framework.
+ * ISR Centralization Framework.
+ *
+ * 01 10 2019 chengyu.chen
+ * [MPD][MOLY00378065][CMCC SMS in MSHC][VMOLY.EVB.SEPT.DEV][Sanity on Eiger(MT3967)] SMS is not able to be sent on LTE
+ *
+ * 01 07 2019 hamilton.liang
+ * [MOLY00332682] Gen97 relevant feature/structure change
+ *
+ * 1. compile option change for ML1S LTE test
+ *
+ * 12 27 2018 sc.tung
+ * [MOLY00337982] [NMAC][BSR] BSR main function body check-in
+ *
+ * [NMAC] remove include nmac_enum_struct.h to avoid build fail in C2K.
+ *
+ * 12 24 2018 sc.tung
+ * [MOLY00337982] [NMAC][BSR] BSR main function body check-in
+ *
+ * [NMAC][BSR] issue fix and log reduction.
+ *
+ * 12 20 2018 yu-hsiang.peng
+ * [MOLY00372896] [Gen97] sAP logging support
+ * [VMOLY.EVB.SEPT] sAP support - DB part
+ *
+ * 12 19 2018 jie-yu.wang
+ * [MOLY00324633] [LPP file part] VZW MDMI LPP related IE
+ * [VMOLY.EVB.SEPT.DEV][MPD][LPP] MDMI code sync.
+ *
+ * 11 29 2018 ian-yw.chen
+ * [MOLY00365575] [Gen97] 5G CB/PWS development
+ * L4/SMSAL interfaces
+ *
+ * 11 29 2018 jacky-ch.chang
+ * [MOLY00346978] [6297][NR][RFCC] Development -
+ * Trace for enum [ERS00022721]
+ *
+ * 11 28 2018 jacky-ch.chang
+ * [MOLY00363206] [6297][NR][RFCC] Development -
+ * Add MIMO CFG trace for debugging [ERS00022721]
+ *
+ * 11 07 2018 su-jen.yang
+ * [MOLY00349128] [VMOLY]Code sync
+ * [ERS00020803]Trace for enum - move enum to nr_mpc_comm_enum.h
+ * and trace word
+ *
+ * 10 31 2018 kun-lin.wu
+ * [MOLY00361478] [Gen97] Gemini Compile Option Clean Up
+ *
+ * 10 30 2018 wangtao.wan
+ * [MOLY00326328] [MT6297][EL1D RX] CSI development update.
+ * [ERS00019335][EL1D RX][CSI] modify 5cc trace
+ *
+ * 10 16 2018 kai-hsiang.hsu
+ * [MOLY00319465] [MT6297] MML1 common device framework integration
+ * [ERS00017831][MML1_CDF] fix Gen95 codgen fail
+ *
+ * 10 16 2018 kai-hsiang.hsu
+ * [MOLY00319465] [MT6297] MML1 common device framework integration
+ * [ERS00017776][MML1_CDF] enable target trace enum
+ *
+ * 10 08 2018 guan-ren.chen
+ * [MOLY00327199] [Gen97] Development
+ * On-demand logging porting.
+ *
+ * 10 05 2018 yuyang.hsiao
+ * [MOLY00351872] [MMRFD] Driver Porting [ERS00016470]
+ * 1. Add serdes restore function into wake up flow and refine DFE restore function
+ * 2. Update UT case
+ * 3. DSB flow for Write back function
+ * 4. Update RFPOR and filter mode
+ * 5. Remove reduntent code
+ *
+ * 10 03 2018 ming.shen
+ * [MOLY00356286] [Gen97] background search feature - interface
+ *
+ * 09 28 2018 bob.chiang
+ * [MOLY00355821] [GEN97][VGMM][NAS MoDIS IT][Phase 1] integration
+ *
+ * 08 30 2018 kun-lin.wu
+ * [MOLY00348690] Revise MSPM file placement
+ *
+ * 08 29 2018 ian-yw.chen
+ * [MOLY00348528] [Gen97] SMS over 5G NAS
+ * SMS part
+ *
+ * 08 27 2018 mars.chang
+ * [MOLY00331434] [MT6297] NL1TST Common modify
+ * modify union_tag codegen error
+ *
+ * 08 27 2018 norman.chang
+ * [MOLY00346399] [Gen97][System Selection] MCC Pool
+ * .
+ *
+ * 08 23 2018 yu-hsiang.peng
+ * [MOLY00343261] [MT6297] [Logging Service] DHL 2.0 Landing
+ * [DHL2.0] Port to VMOLY (dhl mak & DB)
+ *
+ * 08 22 2018 lucien.li
+ * [MOLY00347660] [ENDC] ENDC related Information
+ * [ENDC] Interface between RAC-NRRC
+ *
+ * 08 21 2018 yc.chen
+ * [MOLY00346302] [Gen97][VGMM] check-in VGMM to VMOLY from GEN97.DEV
+ * [non-MPD] wrap VGMM header file with 5G option in libParseDbModem.c
+ *
+ * 08 20 2018 chester-zd.huang
+ * [MOLY00346991] [RSVAN] GEN97.DEV merge to VMOLY. Codes
+ * - RSVAN interface
+ *
+ * 08 17 2018 poying.chuang
+ * [MOLY00346763] [6297] Gen97 L4 PS Check-In
+ *
+ * - interfaces .
+ *
+ * 08 17 2018 norman.chang
+ * [MOLY00346399] [Gen97][System Selection] MCC Pool
+ * [GMSS] MCC Pool
+ *
+ * 08 17 2018 yc.chen
+ * [MOLY00346302] [Gen97][VGMM] check-in VGMM to VMOLY from GEN97.DEV
+ * [non-MPD] modify related files
+ *
+ * 08 17 2018 norman.chang
+ * [MOLY00346398] [Gen97][System Selection] MRS operator band table
+ * [Operator based Band Table] MRS part
+ *
+ * 08 17 2018 kuan-wei.chen
+ * [MOLY00346647] [MT6297][VDM/L4] changes for 97
+ * [VMOLY] vdm related others
+ *
+ * 08 17 2018 james-chi-ju.chang
+ * [MOLY00306148] [NAS] pangu giant CR
+ * interface
+ *
+ * 07 30 2018 chi-chun.lu
+ * [MOLY00342741] [MakeFile] [UMOLYE] [Modify Makefile Rules] enhance build flow for cgen tdd/fdd preprocessing files
+ *
+ * .
+ *
+ *
+ *******************************************************************************/
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to libParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as above can lead to build time inefficiency.
+*
+* common header file => libParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => libParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in libParseDbModem_tdd_fdd.c
+* 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
+********************************************** Warning **********************************************/
+
+#ifdef __NR_RAT__
+/* Move to lte_sec libParseDbModem.c */
+// #include "nr_mpc_comm_enum.h"
+#endif
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+//"ps\\tools\\asn1lib\\include\\act-ttbuffmgr.h"
+#undef STDC_HEADERS //it will include stdio.h
+
+#ifdef __RVCT__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+
+#define _ARMABI
+
+#endif
+
+#ifdef __UE_SIMULATOR__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+/* VMMI */
+#include "l4c2uegw_struct.h"
+
+#endif /* __UE_SIMULATOR__ */
+
+#include "L1Trc.h"
+
+#include "kal_public_api.h"
+#include "kal_public_defs.h"
+#include "sap_info.h"
+#include "msg_id_to_em_info_map.h"
+#include "em_mapping_for_tool.h"
+
+#include "kal_trace.h"
+
+#include "stacklib.h"
+#include "stack_timer.h"
+#include "event_shed.h"
+
+#include "intrCtrl.h"
+
+#include "mddbg_public.h"
+#if !defined(DISABLE_MDDBG_FUNCTION)
+#include "mddbg.h"
+#endif
+
+#include "em_struct.h"
+/* Start of EM related structure */
+#include "em_audio_public_struct.h"
+#include "em_cc_public_struct.h"
+#include "em_dhl_public_struct.h"
+#include "em_el1_public_struct.h"
+#ifdef __EL2_ARCH_V1__
+#include "em_el2_public_struct.h"
+#endif
+#ifdef __EL2_ARCH_V2__
+#include "em_enl2_public_struct.h"
+#endif
+#include "em_emm_public_struct.h"
+#include "em_errc_public_struct.h"
+#include "em_esm_public_struct.h"
+#include "em_imc_public_struct.h"
+#include "em_l1_public_struct.h"
+#include "em_l4_public_struct.h"
+#include "em_llc_public_struct.h"
+#include "em_ltecsr_public_struct.h"
+#include "em_mcf_public_struct.h"
+#include "em_mm_public_struct.h"
+#include "em_mmrf_public_struct.h"
+#include "em_nwsel_public_struct.h"
+#include "em_public_struct.h"
+#include "em_ratcm_public_struct.h"
+#include "em_sim_public_struct.h"
+#include "em_sm_public_struct.h"
+#include "em_sndcp_public_struct.h"
+#include "em_ss_public_struct.h"
+#include "em_ul1_public_struct.h"
+#include "em_ul2_public_struct.h"
+#include "em_vdm_public_struct.h"
+#include "em_mtf_public_struct.h"
+#include "em_nl1_public_struct.h"
+#include "em_sbp_public_struct.h"
+#include "em_uas_public_struct.h"
+#include "em_xcap_public_struct.h"
+#include "em_ostd_public_struct.h"
+
+/* End of EM related structure */
+
+/*lte %M trace usage*/
+#include "lrxpublic.h"
+#include "llpwrlpccpublic.h"
+
+#ifdef __NR_RAT__
+/* NR %M trace usage */
+/* Move to lte_sec libParseDbModem.c */
+// #include "nr_rfcc_trc_enum.h"
+#endif
+
+#if defined(__LTE_RAT__) || defined(__NR_RAT__)
+#include "l4c_enl2_struct.h"
+#endif /* __LTE_RAT__ or __NR_RAT__ */
+
+#ifdef __CDMA2000_RAT__
+#include "c2k_irat_msg_struct.h"
+#endif
+
+/* DVFS */
+#ifdef DVFS_ENABLE
+#include "DVFS_drv.h"
+#include "DVFS_drv_md.h"
+#include "DVFS_drv_modem.h"
+#include "DVFS_drv_md_public.h"
+#include "DVFS_drv_modem_public.h"
+#endif
+
+/* l1 */
+#include "l4c_l1_struct.h"
+#ifdef __PS_SERVICE__
+#endif
+#if ( defined(__GSM_RAT__) || defined(__UMTS_RAT__) )
+/* For Dual Mode L1 */
+#include "mph_dm_def.h"
+#include "mph_dm_msg.h"
+/* For Dual Mode L1 */
+#endif /* __GSM_RAT__ && __UMTS_RAT__ */
+
+#ifdef UNIT_TEST
+#endif
+
+#ifdef __MINI_LOG_SUPPORT__
+#endif /* __MINI_LOG_SUPPORT__ */
+
+#include "GV.h"
+#if defined (__DHL_V2_ENABLE__)
+/*reserve for 2.0*/
+#include "dhl_def.h"
+#include "icd_logging.h"
+#include "icd_dhl.h"
+#include "dhl_ulsp.h"
+#include "dhl_on_demand_logging_interface.h"
+#include "dhl_dsp_def.h"
+#include "dhl_ut_def.h"
+#else
+#include "dhl_def.h"
+#include "icd_logging.h"
+#include "icd_dhl.h"
+#include "dhl_internal_def.h"
+#include "dhl_notify.h"
+#endif
+
+#include "dhl_cmd_struct_def.h"
+#ifdef UNIT_TEST
+#include "dhlsim_def.h"
+#endif
+
+#ifdef __MINI_LOG_SUPPORT__
+#include "tst_mini_log.h"
+#endif /* __MINI_LOG_SUPPORT__ */
+
+#if defined(GEN_FOR_PC)
+#include "tst_Catcher_version.h"
+#include "tst_catcher_diagonsis_info.h"
+#endif //#if defined(GEN_FOR_PC)
+
+#include "custom_cmd.h"
+
+#ifndef NWSEL_NOT_PRESENT
+#endif
+
+#include "gmss_public.h"
+
+#ifndef GMSS_NOT_PRESENT
+#include "gmss_msgid.h"
+#include "gmss_nwsel_struct.h"
+#include "gmss_common.h"
+#include "gmss_context.h"
+#include "gmss_css_recv.h"
+#include "gmss_css_send.h"
+#include "gmss_def.h"
+#include "gmss_main.h"
+#include "gmss_mcc_pool.h"
+#include "gmss_nwsel_recv.h"
+#include "gmss_nwsel_send.h"
+#include "gmss_rat_ctrl.h"
+#include "gmss_sim_access.h"
+#include "gmss_geo_center.h"
+#include "gmss_nr_map.h"
+#include "gmss_state.h"
+#include "gmss_timer.h"
+#include "gmss_trc.h"
+#include "gmss_utility.h"
+#include "gmss_ut.h"
+#endif
+
+#include "nas_sv_msgid.h"
+#include "nas_task.h"
+
+#ifndef __L1_STANDALONE__
+#include "nas_sv_trc.h"
+#endif
+
+#include "nas_sv_context.h"
+#include "rac_nas_sv_struct.h"
+#include "nas_sv_css_struct.h"
+#include "nas_sv_errc_struct.h"
+#include "l4c_nas_sv_struct.h"
+#include "ddm_l4c_struct.h"
+#include "l4c_mrs_struct.h"
+
+#include "smic_msgid.h"
+#include "smic_context.h"
+#include "smic_utility.h"
+#include "smic_epsb.h"
+#include "smic_struct.h"
+#include "tcm_smic_struct.h"
+
+#ifdef __FIVEG_NAS__
+#include "vgmm_trc.h"
+#include "mcd_vgmm_gen_peer.h"
+#endif
+
+
+#ifdef DUMMY_PROTOCOL
+#ifdef __GSM_RAT__
+#endif //__GSM_RAT__
+#endif
+
+/* other module */
+#include "RM_public.h"
+
+#ifndef __L1_STANDALONE__
+/*For Protol modules*/
+
+#ifdef __PS_SERVICE__
+//#include "asn-incl.h"
+#endif
+
+#include "l4c_context.h"
+#include "l4c_common_enum.h"
+#include "l4_defs.h"
+
+/* MBMSAL */
+#include "mbmsal_defs.h"
+
+/* FLC */
+#if defined(__FLC2__) && defined(__FLC_SUPPORT__)
+#include "flc2_config.h"
+#endif
+
+#ifdef __MOD_CC__
+#include "mcd_ss_parameters.h"
+#include "mcd_ss_tcapmessages.h"
+#include "mcd_cc_peer.h"
+#include "ps2sat_struct.h"
+#include "l4c_common_enum.h"
+#include "csmcc_enums.h"
+#include "csmcc_common_enums.h"
+#include "ps2sat_struct.h"
+#include "l4c2csm_cc_struct.h"
+#include "mncc_struct.h"
+#include "mm2cm_struct.h"
+#include "cm2mm_struct.h"
+#include "cm2csce_struct.h"
+#include "cm2gas_struct.h"
+
+#include "stacklib.h"
+#include "event_shed.h"
+#include "stack_timer.h"
+#include "cc_defs.h"
+#include "cc_std_defs.h"
+#include "cc_ss_defs.h"
+#include "cc_types.h"
+#endif
+
+
+#ifdef __MOD_CSM__
+
+
+#if defined(__L1_GPS_REF_TIME_SUPPORT__) || defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)
+#include "Hal_el1_struct.h"
+#endif
+
+#ifdef __AGPS_CONTROL_PLANE__
+/* SSAGPS */
+#ifdef GEN_FOR_PC
+ #ifndef __RVCT__
+ #define __int64
+ #endif //#if !defined(__RVCT__)
+#define __cdecl
+#endif //#ifndef __L1_STANDALONE__
+
+#include "applib2_asn_common.h"
+#include "applib2_mtkasn_global.h"
+#include "ss_asn.h"
+#include "l4c2csm_ss_lcs_struct.h"
+#endif
+#include "l4c_lbs_struct.h"
+#include "mnss_struct.h"
+#include "csmss_common_enums.h"
+#endif /*__MOD_CSM__*/
+
+#ifdef __MOD_SIM__
+#include "stack_timer.h"
+
+#include "phb_utils.h"
+#include "ps2sat_struct.h"
+#include "l4c2csm_cc_struct.h"
+#include "l4c_common_enum.h"
+#include "csmcc_enums.h"
+#include "csmcc_common_enums.h"
+#include "ps2sat_struct.h"
+#include "l4c2csm_cc_struct.h"
+ /* ripple */
+#include "cc2sat_struct.h"
+#include "sat_def.h"
+#include "ps2sim_struct.h"
+
+/* C2K */
+#ifdef __CDMA2000_RAT__
+#include "sim_cuim_utility.h"
+#endif /* __CDMA2000_RAT__ */
+
+#endif /*__MOD_SIM__*/
+
+#ifdef __MOD_SMU__
+
+#if defined(__MMI_FMI__)
+#endif
+#include "l4c2smu_struct.h"
+#include "ps2sim_struct.h"
+#include "ps2sat_struct.h"
+#include "smu_common_enums.h"
+#include "smu_def.h"
+#endif /*__MOD_SMU__*/
+
+#ifdef __MOD_PHB__
+#include "l4c2phb_enums.h"
+#include "l4c2phb_struct.h"
+#endif /*__MOD_PHB__*/
+
+#ifdef __MOD_UEM__
+#include "uart_sw.h"
+#include "mcd_uem_peer.h"
+#endif /*__MOD_UEM__*/
+
+#ifdef __MOD_SMSAL__
+#include "smsal_l4c_defs.h"
+#include "smsal_l4c_enum.h"
+
+/* for context */
+#include "l3_inc_enums.h"
+#include "smsal_timer.h"
+#include "smsal_enums.h"
+#include "smsal_defs.h"
+#include "l4c2smsal_struct.h"
+#include "smsal_peer_struct.h"
+
+#include "mnsms_struct.h"
+#include "smsal_structs.h"
+#include "smsal_context.h"
+#endif /*__MOD_SMSAL__*/
+
+#ifdef __MOD_SMS__
+
+/* SMS <--> SMSAL */
+#include "mnsms_struct.h"
+#include "sms_enum.h"
+#include "event_shed.h"
+#include "sms_timer.h"
+
+/* SMS Context */
+#include "sms_defs.h"
+#include "sms_tl.h"
+#include "sms_rl.h"
+#include "sms_cm.h"
+#include "sms_context.h"
+
+/* SMS <--> MM */
+#include "mcd_sms_gen_peer.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "cm2mm_struct.h"
+#include "mm2cm_struct.h"
+#include "sms2mm_struct.h"
+#include "mm2sms_struct.h"
+
+/* SMS <--> EMM */
+#ifdef __LTE_RAT__
+#include "sms_emm_struct.h"
+#endif
+
+/* SMS <--> VGMM */
+#ifdef __NR_RAT__
+#include "sms_vgmm_struct.h"
+#endif
+
+#endif
+
+#ifndef PPP_NOT_PRESENT
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "tcm2sm_struct.h"
+#include "tcm2ppp_struct.h"
+#include "ppp2tcm_struct.h"
+#include "ppp_l4_enums.h"
+/* PPP for CSD usage */
+ #ifdef __PPP_UT__
+ #endif // ~ #ifdef __PPP_UT__
+#endif /* ~PPP_NOT_PRESENT */
+
+#ifdef __MOD_CISS__
+#include "mcd_ss_parameters.h"
+#include "mcd_ss_tcapmessages.h"
+#include "mnss_struct.h"
+#include "mm2cm_struct.h"
+#include "cm2mm_struct.h"
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "mcd_ciss_peer.h"
+#include "ciss_enum.h"
+#include "ciss_eval_struct.h"
+#endif /* __MOD_CISS__ */
+
+//#ifdef __PS_SERVICE__
+#ifdef __MOD_TCM__
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "tcm2sm_struct.h"
+#include "sm2tcm_struct.h"
+#include "rat_tcm_context.h"
+#if defined(__MMI_FMI__)
+#endif
+#include "l4c2abm_struct.h"
+/* mtk00938 2008-02-20: for streaming and secondary PDP context */
+#include "mmi_sm_enums.h"
+/* End of Jeff Wu */
+#include "abm2l4c_struct.h"
+#include "l4c2tcm_struct.h"
+#include "l4c2tcm_func.h"
+#include "tcm2l4c_struct.h"
+#include "ppp2tcm_struct.h"
+#include "tcm2ppp_struct.h"
+#include "snd2tcm_struct.h"
+#include "tcm2snd_struct.h"
+#include "tcm_rattcm_struct.h"
+#include "tcm_context.h"
+
+#include "tcm_assert.h"
+#include "tcm_at_handler.h"
+#include "tcm_gprs_statistic.h"
+#include "tcm_init.h"
+#include "tcm_main.h"
+#include "tcm_pco_api.h"
+#include "tcm_qos_api.h"
+#include "tcm_reset.h"
+#include "tcm_send_msg.h"
+
+#include "tcm_sic_context.h"
+
+#include "psilib_context.h"
+#include "psilib_api.h"
+
+#ifdef __TURN_ON_GENERAL_SECONDARY_PDP__
+#include "tcm_tft_api.h"
+#endif /* __TURN_ON_GENERAL_SECONDARY_PDP__ */
+
+#ifdef __ACL_SUPPORT__
+#endif /* __ACL_SUPPORT__ */
+
+#ifdef __UGTCM__
+#include "tcm_ugtcm_check.h"
+#include "tcm_ugtcm_fsm.h"
+#include "tcm_ugtcm_send_msg.h"
+#include "tcm_ugtcm_timer.h"
+#endif /* __UGTCM__ */
+
+#endif /* __MOD_TCM__ */
+//#endif /* __PS_SERVICE__ */
+
+
+#ifndef RR_NOT_PRESENT
+#ifdef __UMTS_RAT__
+#endif
+
+/* For Poring CSN.1*/
+
+
+
+
+#include "security_keys_enums.h"
+#include "security_keys_struct.h"
+#include "as2nas_struct.h"
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "l3_inc_enums.h"
+
+#ifdef __UMTS_RAT__
+/* John 2006/06/10*/
+#include "mcd_l3_inc_struct.h"
+#include "l3_inc_enums.h"
+#include "l3_inc_local.h"
+#ifdef __GSM_RAT__
+#endif
+#ifdef __UMTS_RAT__
+#endif
+
+#include "mrs_common_band_table.h"
+#include "mrs_common_operator_feature_table.h"
+#include "mrs_common_search.h"
+
+#ifdef __LTE_RAT__
+#endif
+
+#if defined(__LTE_RAT__)
+#include "l4c_el1_struct.h"
+#endif /* __LTE_RAT__ */
+
+
+#include "l4c_nrrc_struct.h"
+#include "rac_nrrc_struct.h"
+
+#ifdef __NR_RAT__
+#include "smsal_nrrc_struct.h"
+#endif /* __NR_RAT__ */
+
+/* For generating 3G LBM TRACE_PEER enum */
+#include "ratcm_loop_mode.h"
+
+#endif /* __UMTS_RAT__ */
+
+#if defined(__GEMINI__)
+#include "rsvas_enum.h"
+#include "rsvas_struct.h"
+#include "rsvas_mspm_struct.h"
+#include "mspm_public_api.h"
+#include "mspm_fsm.h"
+#if defined(__UMTS_RAT__)
+#include "rsvak_public_enum.h"
+#include "rsvak_enum.h"
+#include "rsvak_struct.h"
+#include "urr_rsvau_struct.h"
+#ifdef __GSM_RAT__
+#include "gas_rsva_struct.h"
+#endif /* __GSM_RAT__ */
+#endif /* __UMTS_RAT__ */
+#ifdef __LTE_RAT__
+#include "eas_rsva_struct.h"
+#include "rsvae_fsm.h"
+#endif /* __LTE_RAT__ */
+#ifdef __NR_RAT__
+#include "nrrc_rsva_struct.h"
+#include "rsvan_fsm.h"
+#endif /* __NR_RAT__ */
+#ifdef __CDMA2000_RAT__
+#include "c2k_rsva_struct.h"
+#include "rsvac_fsm.h"
+#endif /* __CDMA2000_RAT__ */
+#endif /* __GEMINI__ */
+
+#ifdef __GEMINI__
+#include "as_access_sem_context.h"
+#include "as_access_sem_funcs.h"
+#endif /* __GEMINI__ */
+
+#include "rr2lapdm_struct.h"
+#include "lapdm2rr_struct.h"
+#ifdef __GEMINI__
+#include "rr2prr_struct.h"
+#endif
+#include "l4c_l1_struct.h"
+
+/* CSN codec*/
+
+#ifdef __PS_SERVICE__
+#include "gprs_rlcmac_ul.h"
+/* Evelyn 20090415: Merge R6 */
+#endif
+
+
+#ifdef __PS_SERVICE__
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "l3_inc_enums.h"
+
+/* peer message */
+#include "si_peer.h"
+#include "nstd_alloc_bitmap.h"
+#include "nstd_mobile_alloc_peer.h"
+#include "nstd_pmo.h"
+#include "gprs_rlcmac_dl.h"
+#include "nstd_pkt_meas_report.h"
+#include "gprs_rlcmac_ul.h"
+#include "rmc_peer.h"
+#include "gprs_rlcmac_peer.h"
+#include "meascell.h"
+#include "gprs_rlcmac_common.h"
+
+#include "llcrlc_enums.h"
+#include "rmpc_rlc_enums.h"
+#include "llc2rlc_struct.h"
+#ifdef __ADAPTIVE_PAGING_PERIOD_IN_UNACK_MODE__
+#include "rlc2rmpc_struct.h"
+#endif
+#include "rmpc2rlc_struct.h"
+#include "rmpc2mac_struct.h"
+#include "rlc2reasm_struct.h"
+#include "reasm2rlc_struct.h"
+#ifndef __MTK_TARGET__
+#endif
+#endif /* end of __PS_SERVICE__ */
+
+#ifdef __UMTS_RAT__
+
+#endif /* __UMTS_RAT__ */
+
+
+
+#include "lapdm_enums.h"
+
+// Evelyn 20080902: For MAC UT
+// Rachel 20101114: For MPAL UT
+
+/* MD IDC Start */
+#if defined (__MD97__) && !defined (__UE_SIMULATOR__)
+#include "idc_el1rx_enum.h"
+#include "idc_el1rx_str.h"
+#include "idc_el1mpc_str.h"
+#include "idc_el1tx_str.h"
+#include "idc_emac_enum.h"
+#include "idc_emac_str.h"
+#include "idc_errc_enum.h"
+#include "idc_errc_str.h"
+#include "idc_nl1rx_enum.h"
+#include "idc_nl1rx_str.h"
+#include "idc_nl1mpc_str.h"
+#include "idc_nl1tx_enum.h"
+#include "idc_nl1tx_str.h"
+#include "idc_sm_common.h"
+#include "idc_swmsg_str.h"
+#include "idc.h"
+#endif
+/* MD IDC End */
+
+#include "mll1_msgid.h"
+#include "mll1_eutran.h"
+#include "mll1_umts_tdd.h"
+
+
+#ifdef __AGPS_CONTROL_PLANE__
+#endif
+
+#endif /* RR_NOT_PRESENT */
+
+#ifndef MM_NOT_PRESENT
+
+
+
+
+
+#ifdef __PS_SERVICE__
+#endif
+
+
+#endif /* #ifndef MM_NOT_PRESENT */
+
+
+#ifdef __MOD_L4A__
+#endif
+
+#ifdef WISDOM_MMI
+#endif
+
+#ifndef VDM_NOT_PRESENT
+/* VDM */
+#include "vdm_atp_struct.h"
+#include "vdm_imc_struct.h"
+#include "vdm_eval_struct.h"
+#include "vdm_l4c_struct.h"
+#include "vdm_sdm_struct.h"
+#include "vdm_rac_struct.h"
+#include "vdm_trk_ads_msg.h"
+#include "vdm_trk_vcc_msg.h"
+#include "vdm_ads_vcc_msg.h"
+#include "vdm_ut.h"
+#include "vdm_trk_ut.h"
+#include "vdm_ads_ut.h"
+#include "vdm_vcc_ut.h"
+#include "vdm_cval_struct.h"
+#endif /* ifndef VDM_NOT_PRESENT */
+
+/**************************************************************************
+ * GPRS NAS DATA PATH BEGINS
+ **************************************************************************/
+#ifdef __PS_SERVICE__
+
+#include "sm2l4c_struct.h"
+#include "l4c2sm_struct.h"
+#include "sm_esm_struct.h"
+
+#ifndef SNDCP_NOT_PRESENT
+/* other needed struct and enums */
+#include "snd_defines.h"
+#include "sndllc_enums.h"
+#include "data_plane_sm_enums.h"
+#include "mcd_snd_peer.h"
+/* sndcp peer struct */
+/* sm local struct */
+#include "snd2tcm_struct.h"
+#include "tcm2snd_struct.h"
+#include "snd2llc_struct.h"
+#include "llc2snd_struct.h"
+#include "llc2l3_struct.h"
+#include "ratdm_sndcp_struct.h"
+#include "snd_enums.h"
+#include "snd_comp_interface.h"
+#include "snd_flc.h"
+
+#include "snd_xid.h"
+#include "snd_rfc1144.h"
+#include "snd_context.h"
+
+#endif /* SNDCP_NOT_PRESENT */
+
+#ifndef SM_NOT_PRESENT
+/* other needed struct and enums */
+
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "l3_inc_enums.h"
+#include "mmi_sm_enums.h"
+#include "data_plane_sm_enums.h"
+#include "smmm_enums.h"
+#include "sm_common_enums.h"
+
+/* sm peer struct */
+#include "mcd_sm_gen_peer.h"
+/* sm local struct */
+#include "sm2mm_struct.h"
+#include "mm2sm_struct.h"
+#include "data_plane2sm_struct.h"
+#include "sm2data_plane_struct.h"
+#include "tcm2sm_struct.h"
+#include "sm2tcm_struct.h"
+#include "sm_defines.h"
+#include "sm_context.h"
+#include "sm_tcm_responser.h"
+
+/* sm conn sturct */
+#include "sm_core_conn_enum.h"
+#include "sm_core_conn_interface.h"
+#include "sm_conn_timer.h"
+#include "sm_conn_private_def.h"
+
+
+#endif /* SM_NOT_PRESENT */
+
+
+
+#ifndef LLC_NOT_PRESENT
+
+/* other needed struct and enums */
+#include "gmmllc_enums.h"
+#include "mmllc_enums.h"
+#include "sndllc_enums.h"
+#include "llccipher_enums.h"
+#include "llcrlc_enums.h"
+#include "security_keys_enums.h"
+/* In interface/include */
+#include "llc_peer_interface.h"
+
+/* llc local struct */
+#include "security_keys_struct.h"
+#include "l32llc_struct.h"
+#include "llc2l3_struct.h"
+#include "llc2rlc_struct.h"
+#include "rlc2llc_struct.h"
+#include "snd2llc_struct.h"
+#include "llc2snd_struct.h"
+#include "llc_flowctrl.h"
+
+#include "ratcm_llc_struct.h"
+
+/* llc asn peer struct (Order shall be kept) */
+#include "mcd_llc_peer_struct.h"
+
+/* other needed struct and enums */
+#include "stacklib.h"
+#include "stack_timer.h"
+#include "event_shed.h"
+#include "llc_lcdiplqueue.h"
+
+#include "llc_defs.h"
+#include "llc_context.h"
+#include "llc_specific_defines.h"
+
+#endif /* LLC_NOT_PRESENT */
+
+#endif /* __PS_SERVICE__ */
+
+#endif /*__L1_STANDALONE__*/
+
+/**************************************************************************
+ * GPRS NAS DATA PATH ENDS
+ **************************************************************************/
+
+#ifndef DATA_NOT_PRESENT
+
+
+
+
+
+#endif /* DATA_NOT_PRESENT */
+
+#if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__)
+#include "ul1cal.h"
+#endif
+
+#ifdef __AST_TL1_TDD__
+#endif
+
+
+
+//#ifdef __MCD__
+
+//#endif
+
+#include "uart_sw.h"
+
+#ifdef __IRDA_SUPPORT__
+#ifndef OBEX_NOT_PRESENT
+#endif
+
+#ifndef IRCOMM_NOT_PRESENT
+#endif
+#endif /* __IRDA_SUPPORT__ */
+
+#if defined(__MOD_SMSAL__) && !defined(SOC_NOT_PRESENT) //kevin 05/23
+#endif /*__MOD_SMSAL__*/
+
+#ifndef __L1_STANDALONE__
+#include "smsal_as_struct.h"
+#endif
+
+#ifdef __LTE_RAT__
+#include "mll1_msgid.h"
+#include "mll1_eutran.h"
+#include "mll1_umts_tdd.h"
+#endif /*__LTE_RAT__*/
+
+#if defined(__MOD_RAC__)
+#include "l4c2rac_struct.h"
+#include "rac2l4c_struct.h"
+#ifdef __LTE_RAT__
+#include "rac_eval_struct.h"
+#endif /* __LTE_RAT__ */
+#include "mmi2mm_struct.h"
+#include "mm2mmi_struct.h"
+#include "rac_defs.h"
+#include "rac_mrs_struct.h"
+#include "rac_em_struct.h"
+#include "rac_context.h"
+#include "rac_gmss_struct.h"
+#endif /* __MOD_RAC__ */
+
+#ifndef L4_NOT_PRESENT
+#include "rmmi_context.h"
+#include "drvsignals.h"
+#include "l4_ipc_msg_struct.h"
+#endif
+
+/* for BMT */
+#include "drvsignals.h"
+/* for BMT */
+
+#include "audio_enum.h"
+
+#ifdef __WIFI_SUPPORT__
+#ifdef WIFI_BB_MT5921
+#endif
+#endif
+
+#define BREAK
+
+#ifndef __L1_STANDALONE__
+#ifdef GEN_FOR_PC
+//#include "sasken_msg.h"
+//#include "smsal_peer.h"
+//#include "mpal2rr_unpack_struct.h"
+//#include "rr2mpal_unpack_struct.h"
+#ifdef __UMTS_FDD_MODE__
+//#include "nas_msg.h"
+#endif
+
+#ifdef __UMTS_RAT__
+#endif /* #ifdef __UMTS_RAT__ */
+#ifdef __PS_SERVICE__
+#include "rlc2mac_unpack_struct.h"
+#endif /*__PS_SERVICE__*/
+#endif /*GEN_FOR_PC*/
+#endif /*__L1_STANDALONE__*/
+
+
+#ifdef __PS_SERVICE__
+#endif
+
+#ifndef __MTK_TARGET__
+#endif
+
+
+#ifdef __IPERF__
+#endif /* __IPERF__ */
+
+#ifdef __DRM_SUPPORT__
+#endif /* __DRM_SUPPORT__ */
+
+#ifdef GIS_SUPPORT
+#endif
+
+#ifdef __CMUX_SUPPORT__
+#include "cmux_struct.h"
+#include "cmux_def.h"
+#endif /* __CMUX_SUPPORT__ */
+
+
+#ifdef __IPCORE_SUPPORT__
+#include "ipc_struct.h"
+#endif /* __IPCORE_SUPPORT__ */
+
+#ifdef __IPFCORE_SUPPORT__
+#include "ipfc_enums.h"
+#endif /* __IPFCORE_SUPPORT__ */
+
+#ifdef __DPFM_SUPPORT__
+#include "dpfm_enums.h"
+#include "dpfm_struct.h"
+#endif /* __DPFM_SUPPORT__ */
+
+#ifdef __TMC_SUPPORT__
+#include "tmc_struct.h"
+#include "tmc_enums.h"
+#endif /* __TMC_SUPPORT__ */
+
+#ifdef __HIF_AOMGR_SUPPORT__
+#endif /* __HIF_AOMGR_SUPPORT__ */
+
+#ifdef __ETHERCORE_SUPPORT__
+#endif /* __ETHERCORE_SUPPORT__ */
+
+#ifdef __NMU_ENABLE__
+#include "dhcp4c_struct.h"
+#include "ndpc_struct.h"
+#endif
+
+#ifdef __USB_ECM_SUPPORT__
+#endif
+
+#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
+#include "gps_struct.h"
+#endif
+
+#ifndef __L1_STANDALONE__
+
+/* for NAS/RATCM inerface */
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "l3_inc_enums.h"
+
+#include "smsal_ratcm_struct.h"
+#include "nwsel_ratdm_struct.h"
+
+#ifdef __PS_SERVICE__
+#include "mm_ratdm_struct.h"
+#include "sm_ratdm_struct.h"
+#include "esm_ratdm_struct.h"
+#include "smic_ratdm_struct.h"
+
+#ifndef UART_SW_H
+#include "uart_sw.h"
+#endif // ~ #ifndef UART_SW_H
+#ifndef _PS_RATDM_STRUCT_H
+#endif // ~ #ifndef _PS_RATDM_STRUCT_H
+#include "tcm_ratdm_struct.h"
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif
+/* L4C -> RATDM */
+//#ifndef _L4C_RATDM_STRUCT_H
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif
+//#endif
+
+/* L4C -> IPCORE */
+#include "l4c_ipcore_struct.h"
+
+/* For RATDM/RABM UT */
+#endif
+
+#ifdef __GSM_RAT__
+/* for RATCM/GAS interface */
+#include "ratcm_gas_enums.h"
+#include "ratcm_gas_struct.h"
+#endif
+
+#endif /* ! __L1_STANDALONE__ */
+
+
+/* mtk04121 */
+#if defined(__MOD_TCM__)
+#include "l3_inc_local.h"
+#include "tcm2sm_struct.h"
+#include "sm2tcm_struct.h"
+#include "rat_tcm_context.h"
+#include "flc2_config.h"
+#include "mmi_sm_enums.h"
+#include "l4c2tcm_struct.h"
+#include "l4c2tcm_func.h"
+#include "tcm_api.h"
+#include "tcm2l4c_struct.h"
+#include "tcm_rattcm_struct.h"
+/* PPP Dial-up */
+#include "ppp2tcm_struct.h"
+#include "tcm2ppp_struct.h"
+#include "snd2tcm_struct.h"
+#include "tcm2snd_struct.h"
+#include "tcm_rattcm_struct.h"
+#include "tcm_context.h"
+#include "tcm_assert.h"
+#include "tcm_at_handler.h"
+#include "tcm_gprs_statistic.h"
+#include "tcm_init.h"
+#include "tcm_main.h"
+#include "tcm_pco_api.h"
+#include "tcm_qos_api.h"
+#include "tcm_reset.h"
+#include "tcm_send_msg.h"
+
+#ifdef __TURN_ON_GENERAL_SECONDARY_PDP__
+#include "tcm_tft_api.h"
+#endif /* __TURN_ON_GENERAL_SECONDARY_PDP__ */
+
+#ifdef __ACL_SUPPORT__
+#endif /* __ACL_SUPPORT__ */
+
+#ifdef __UGTCM__
+#include "tcm_ugtcm_check.h"
+#include "tcm_ugtcm_fsm.h"
+#include "tcm_ugtcm_send_msg.h"
+#include "tcm_ugtcm_timer.h"
+#endif /* __UGTCM__ */
+
+#if defined(__ETCM__)
+#include "eval_msgid.h"
+#include "upcm_msgid.h"
+#include "tcm_eval_enums.h"
+#include "tcm_eval_struct.h"
+#include "tcm_upcm_struct.h"
+#include "tcm_etcm_utility.h"
+#endif
+#endif
+
+/**************************************************************************
+ * WCDMA INTERFACE BEGINS
+ **************************************************************************/
+#ifdef __UMTS_RAT__
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif
+#ifdef __CGEN_UMTS_TDD128_MODE__
+#endif
+#include "kal_public_api.h"
+
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif /*__UMTS_FDD_MODE__*/
+
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "hal_ul1_def.h"
+#include "hal_ul1_struct.h"
+#endif /*__UMTS_FDD_MODE__*/
+
+#ifdef __UL1_ON_MNT__
+/* for UL1 MoDIS */
+#endif
+
+#ifdef DUMMY_PROTOCOL
+/* 3G DPS */
+#endif
+
+
+/* for MAL1 interface */
+#ifdef __MA_L1__
+#endif
+
+#ifndef __L1_STANDALONE__
+
+
+/* for UAS common structure and enums */
+
+/* for inter-core common structure and enum */
+#include "as_inter_core_enum.h"
+#include "as_inter_core_struct.h"
+#include "gise_str.h"
+
+#ifdef GEN_FOR_PC
+#include "mcd_rrc_asn.h"
+//John 960724
+#include "asn_aper_common.h"
+#include "mcd_h245_asn.h"
+#endif
+
+//#ifdef __UMTS_FDD_MODE__
+//#endif
+
+/* for UAS internal interface */
+/* for URR/UL2D interface */
+#include "meme_drlc_struct.h"
+#ifdef __CGEN_UMTS_FDD_MODE__
+#endif
+
+
+/* for URR/UL2 interface */
+
+/* for UL2/UL2D interface */
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif
+/* for URR internal interface */
+#include "ex_item.h"
+#include "sim_public_enum.h"
+//#ifdef __UMTS_FDD_MODE__
+//#endif
+
+/* discuss with SIM owner, UAS add sim header file when requirement.*/
+#if defined(UNIT_TEST) && defined(__UMTS_TDD128_MODE__)
+#include "sim_private_struct.h"
+#endif
+
+/* for RATCM/UAS interface */
+#include "ratcm_uas_enums.h"
+#include "ratcm_slce_enums.h"
+#include "ratcm_rrce_enums.h"
+#include "ratcm_uas_struct.h"
+#include "ratcm_rrce_struct.h"
+#include "ratcm_slce_struct.h"
+#include "ratcm_cse_enums.h"
+#include "ratcm_cse_struct.h"
+#include "ratcm_bmc_struct.h"
+#include "ratcm_urlc_struct.h"
+#include "ratdm_urlc_struct.h"
+
+/* for EAS interface */
+#include "ratdm_el2_struct.h"
+
+/* for UAS/GAS interface */
+
+#include "nas_as_inter_core_struct.h"
+
+#ifdef __GEMINI__
+/* for GAS/UL2 interface */
+#include "l3_inc_enums.h"
+#endif /* __GEMINI__ */
+
+/*Vito: for CSR UT */
+
+/* Jeff Wu 2006-02-13: For RABM/PDCP UT */
+#include "flc2_config.h"
+
+/* Evan Chen 2007-08-13: For MM UT */
+
+/* Gibran Chang 2006/03/23: For CSCE */
+
+/* Nicky Chou 2014/08/25: For LCSCE */
+#include "urr_inter_core_enum.h"
+#include "as_inter_core_enum.h"
+
+/* For LMEME */
+
+/*For LRRCE*/
+#if defined(__CGEN_UMTS_TDD128_MODE__)
+#endif
+
+/* Dennis Weng 2010/08/09: For SIBE */
+/* YenChih Yang 2012/04/18: For USIME */
+
+/* For MEME */
+/* For TDD please modify the code wrapped by __UMTS_TDD128_MODE__ */
+/* For TDD please modify the code wrapped by __UMTS_FDD_MODE__ */
+#ifdef __GEMINI__
+#endif
+
+#if defined(__CGEN_UMTS_TDD128_MODE__)
+#endif
+
+#if defined(__CGEN_UMTS_FDD_MODE__) /* defined(__UMTS_FDD_MODE__) */
+#endif
+
+/* MH Change 2006/04/18: For RRCE */
+
+/* John Tang 2005/11/08: For DB Unit-test tool */
+#ifdef GEN_FOR_PC
+
+#define __int64
+#define __cdecl
+#include "db_io.h"
+#include "./fdd/db_dump_api_fdd.h"
+#ifdef __UMTS_TDD128_MODE__
+#include "./tdd/db_dump_api_tdd.h"
+#endif
+#endif //#ifndef __L1_STANDALONE__
+
+
+
+
+/* Alfie: 2006-0422 For SLCE Trace Info Start */
+#ifndef __size_t
+#define __size_t 1
+typedef unsigned int size_t; /* used for dbme.h */
+#endif
+
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif
+/* Alfie: 2006-0422 For SLCE Trace Info End */
+
+
+/*Christine 2006/05/02*/
+
+#endif
+//Matt 2007/11/30 for VT feature
+/*
+#ifdef __VIDEO_CALL_SUPPORT__
+#include "..\..\..\3g324m\interface\inc\vt_tst_enum.h"
+#include "..\..\..\3g324m\appl\inc\vt_ut_struct.h"
+#endif
+*/
+
+#endif /* __UMTS_RAT__ */
+#ifdef __L1_STANDALONE__
+#ifdef __MOD_NVRAM__
+#include "ex_item.h"
+
+#if defined(__MMI_FMI__)
+#endif
+
+#endif /*__MOD_NVRAM__*/
+#endif
+/**************************************************************************
+ * WCDMA INTERFACE ENDS
+ **************************************************************************/
+
+#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
+#include "gps_struct.h"
+#ifdef __AGPS_SUPPORT__
+#include "gps2lcsp_enum.h"
+#include "gps2lcsp_struct.h"
+#endif /* __AGPS_SUPPORT__ */
+#endif
+
+#include "lbs_dhl_struct.h"
+#include "lbs_loc_info_struct.h"
+#include "lbs_gnss_tc_struct.h"
+#include "gnss_tc_common_struct.h"
+#include "gnss_tc_lte_struct.h"
+#include "gnss_tc_nr_struct.h"
+#include "gnss_tc_wcdma_struct.h"
+#include "gnss_tc_context.h"
+
+#ifdef __RRLP_SUPPORT__
+#include "rr2rrlp_struct.h"
+#include "rrlp_common_headers.h"
+#include "rrlp_enum.h"
+#endif /* __RRLP_SUPPORT__ */
+
+#ifdef __AGPS_SUPPORT__
+
+#if defined(__UAGPS_CP_SUPPORT__)
+#include "uagps_cp_sibe_struct.h"
+#include "uagps_cp_meme_struct.h"
+#include "l4c_uagps_cp_struct.h"
+#include "uagps_cp_gps_struct.h"
+#endif /* __UAGPS_CP_SUPPORT__ */
+
+#include "lbs_common_enum.h"
+#endif /* __AGPS_SUPPORT__ */
+
+//#if defined(__AGNSS_SUPPORT__)
+#include "gnss2lcsp_struct.h"
+#include "gnss2lcsp_enum.h"
+//#endif /* #if defined(__AGNSS_SUPPORT__) */
+
+/* for LPP*/
+#if defined(__LTE_RAT__) && defined(__LPP_SUPPORT__)
+#include "lpp_msg_struct.h"
+#include "lpp_msg_enum.h"
+#include "lpp_lbs_msg_struct.h"
+#include "lpp_context.h"
+#include "lpp_mcd_struct_id.h"
+#include "Hal_el1_def.h"
+#include "Hal_el1_struct.h"
+/* LPPe */
+#if defined(__LPP_EXT_SUPPORT__)
+#include "lpp_lppe_struct.h"
+#include "lpp_ext_context.h"
+#endif
+#endif
+#include "as2l4c_struct.h"
+
+//#ifdef __ACMT_SUPPORT__
+#include "nas2l4c_struct.h"
+//#endif
+
+/*For UL1A*/
+#if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__)
+#include "ul1a_enum.h"
+#endif
+
+#if defined (__WMT_SUPPORT__) || defined(__WIFI_BT_SINGLE_ANTENNA_SUPPORT__)
+#endif /* __WMT_SUPPORT__*/
+
+#ifdef __GADGET_SUPPORT__
+#endif /* __GADGET_SUPPORT__ */
+
+#if defined(__RMMI_UT__)
+#include "tcm_context.h"
+#endif
+
+#include "sim_public_struct.h"
+#include "sim_private_struct.h"
+#include "sim_public_enum.h"
+
+#ifndef __MTK_TARGET__
+#include "l4c_context.h"
+#endif
+
+#if defined(__L4C_GPRS_UT__)
+#include "rmmi_context.h"
+#endif
+
+#ifndef __L1_STANDALONE__
+#include "rmmi_common_enum.h"
+#include "rmmi_struct.h"
+#endif
+#ifdef __VIDEO_ARCHI_V2__
+#endif /* __VIDEO_ARCHI_V2__ */
+
+/* mpl & source*/
+
+#if defined(__L1_GPS_REF_TIME_SUPPORT__) || defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)
+#include "hal_l1_struct.h"
+#endif /*(__L1_GPS_REF_TIME_SUPPORT__) || (__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)*/
+
+#if defined (__MOD_NVRAM__)
+#endif
+/* mtk04121 */
+
+/* SIM CODEGEN begin */
+#ifndef SIM_NOT_PRESENT
+#include "sim_ps_struct.h"
+#include "sim_public_struct.h"
+#endif
+/* SIM CODEGEN end */
+
+/* EVAL CODEGEN begin */
+#ifdef __EVAL_ENABLE__
+#include "eval_msgid.h"
+#include "l4c_eval_struct.h"
+#include "nwsel_eval_struct.h"
+#include "rac_eval_struct.h"
+#include "tcm_eval_struct.h"
+#include "sms_eval_struct.h"
+#include "smsal_eval_struct.h"
+#endif
+/* EVAL CODEGEN end */
+
+//etc interface
+#include "etc_upcm_struct.h"
+#include "etc_msgid.h"
+
+/* TFTLIB CODEGEN */
+#include "tftlib_common_struct.h"
+#include "tftlib_msgid.h"
+#include "tftlib_msg_struct.h"
+
+/* mtk00938: Multimode interfaces */
+#ifdef __LTE_RAT__
+#include "mm_emm_struct.h"
+#include "mm_errc_struct.h"
+#include "sm_esm_struct.h"
+#endif
+
+/* mtk00938: This file is necessary even without LTE */
+
+/* MOD_PAM */
+#ifdef __PS_SERVICE__
+#include "pam_msg_struct.h"
+#include "nwsel_pam_struct.h"
+#include "pam_context.h"
+#include "pam_sm_proc.h"
+#include "pam_vzw_util.h"
+#include "pam_send_msg.h"
+#include "pam_assert.h"
+#include "pam_main.h"
+#include "pam_public_api.h"
+#include "pam2tcm_struct.h"
+#include "usm_context.h"
+#endif /* __PS_SERVICE__ */
+
+/* SMIC */
+#ifdef __PS_SERVICE__
+#include "smic_common_def.h"
+#include "smic_context.h"
+#include "smic_main.h"
+#include "smic_utility.h"
+#endif /* __PS_SERVICE__ */
+
+/* UTT/LTT/GTEST */
+#ifdef __LTT_ENABLE__
+#endif /* __LTT_ENABLE__ */
+
+#if 0
+#if defined (__EL1_ENABLE__) && !defined(__UE_SIMULATOR__)
+/* under construction !*/
+/* under construction !*/
+#if defined(__LTE_RAT__) && defined(__L1EDPS_ENABLE__)
+#endif /* __LTE_RAT__ */
+#if defined(__MTK_TARGET__) && !defined(__L1EDPS_ENABLE__)
+/* under construction !*/
+#endif /* __MTK_TARGET__ */
+#endif /* __EL1_ENABLE__ */
+#endif
+
+#if defined (__IDC_ENABLED__)
+#if defined (__MD97__)
+#include "idc_md_msgid.h"
+#include "idc_msgid.h"
+#else
+#include "ccci_ipc_msgid.h"
+#endif
+#endif
+
+#if defined (__EL2_V2_ENABLE__) || defined(__L1EDPS_ENABLE__)
+#include "emac_ml1s_msg.h"
+#endif
+#include "mdfpm_msgid.h"
+
+
+#if 0
+#if defined(__EL2_ENABLE__) || defined(__L1EDPS_ENABLE__)
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+#endif
+
+/* global enum */
+/***************************************************************
+* if add _msgid.h or _sap.h file, should include the _msgid.h or _sap.h in : *
+* kal_debug_msg_sap_defs.h & libParseDbModem.c & srcParseDbModem.c *
+****************************************************************/
+#include "module_msg_range.h"
+#include "perf_msgid.h"
+#include "sysservice_msgid.h"
+#include "cc_msgid.h"
+#include "ciss_msgid.h"
+#include "mm_msgid.h"
+#include "sms_msgid.h"
+#include "sim_public_msgid.h"
+#include "sim_ps_msgid.h"
+#include "ps_public_l4_msgid.h"
+#include "l4_msgid.h"
+#include "psdm_msgid.h"
+#include "rr_msgid.h"
+#include "llc_msgid.h"
+#include "p2p_msgid.h"
+#include "sndcp_msgid.h"
+#include "sm_msgid.h"
+#include "pam_msgid.h"
+#include "data_msgid.h"
+#include "ps_public_vt_msgid.h"
+#include "VT_msgid.h"
+#include "nvram_msgid.h"
+#include "l1_msgid.h"
+#include "hal_l1_msgid.h"
+#include "l1hisr_msgid.h"
+#include "ft_msgid.h"
+#include "tst_msgid.h"
+#include "audio_msgid.h"
+#include "cldmacore_msgid.h"
+#include "ratcm_msgid.h"
+#include "ratdm_msgid.h"
+#include "uas_gas_msgid.h"
+#include "mrs_msgid.h"
+#include "uas_gas_gemini_msgid.h"
+#include "ul1_msgid.h"
+#include "ul1data_msgid.h"
+#include "ul1hisr_msgid.h"
+#include "ul1c_msgid.h"
+#include "ll1_msgid.h"
+#include "ul1tst_msgid.h"
+#include "ulcs_msgid.h"
+#include "tl1_msgid.h"
+#include "lpp_msgid.h"
+#include "tl1data_ast_msgid.h"
+#include "tl1fta_ast_msgid.h"
+#include "rsva_msgid.h"
+#include "mspm_msgid.h"
+#include "ndis_msgid.h"
+#include "ps_public_ups_msgid.h"
+#include "ups_msgid.h"
+#include "ps_public_supl_msgid.h"
+#include "supl_msgid.h"
+#include "cmux_msgid.h"
+#include "ppp_msgid.h"
+#include "ext_modem_msgid.h"
+#include "wmt_msgid.h"
+#include "em_msgid.h"
+#include "fs_msgid.h"
+#include "med_msgid.h"
+#include "dps_msgid.h"
+#include "udps_msgid.h"
+#include "drv_msgid.h"
+#include "meut_msgid.h"
+#include "l1_ext_msgid.h"
+#include "haplus_msgid.h"
+#include "hif_mw_msgid.h"
+#include "hif_svc_msgid.h"
+#include "el1_msgid.h"
+#include "mcf_msgid.h"
+#include "sap_relayer_msgid.h"
+
+#include "sap_range.h"
+#include "svc_sap.h"
+#include "md_sap.h"
+#include "md_svc_sap.h"
+#include "md_drv_sap.h"
+#include "md_mmi_sap.h"
+#include "md_mw_sap.h"
+#include "mw_sap.h"
+#include "drv_sap.h"
+
+#include "srv_modid.h"
+#include "modem_2g3g_modid.h"
+#include "modem_4g_modid.h"
+#include "modem_5g_modid.h"
+#include "middleware_modid.h"
+#include "drv_modid.h"
+#include "hisr_modid.h"
+#include "isr_modid.h"
+#include "system_profiler_public.h"
+#if defined(__GSM_RAT__) || defined(__UMTS_RAT__) // BJM
+#include "l1_core_private.h"
+#include "l1_rtb.h"
+#include "l1_rtb_timertype.h"
+#ifdef __MTK_UL1_FDD__
+#include "ul1c_trc.h"
+#include "ul1c_core_private.h"
+#include "ul1_public.h"
+#endif /* __MTK_UL1_FDD__ */
+#endif /* defined(__GSM_RAT__) || defined(__UMTS_RAT__) */
+
+//mtk04121
+#if defined(__ETCM__)
+#include "tcm_eval_struct.h"
+#include "tcm_eval_enums.h"
+#include "tcm_upcm_struct.h"
+
+#include "eval_msgid.h"
+#include "upcm_msgid.h"
+
+#endif
+
+#include "mtf_msgid.h"
+
+#ifdef __MT_FRAMEWORK_SUPPORT__
+#include "mtf_struct.h"
+#endif
+
+#include "qmu_bm_enum.h"
+#include "upcm_enum.h"
+#include "tft_pf_enum.h"
+
+#include "qbm_stats.h"
+#include "upcm_em_struct.h"
+#include "eval_upcm_struct.h"
+
+#include "mrs_upcm_struct.h"
+
+#include "upcm.h"
+
+/* for RAC/GAS interface */
+#include "rac_gas_enums.h"
+#include "rac_gas_struct.h"
+
+#if defined(__IMS_SUPPORT__)
+/* SDM */
+#include "sdm_atp_struct.h"
+#include "sdm_atp_enums.h"
+#include "sdm_imcsms_enums.h"
+#include "sdm_imcsms_struct.h"
+#include "sdm_trc.h"
+#include "sdm_msgid.h"
+#include "sdm_context.h"
+#include "sdm_imc_struct.h"
+
+/* IMSP */
+#include "atp_structs.h"
+#include "atp_msgid.h"
+#include "atp_imcsms_struct.h"
+#include "atp_dmf_struct.h"
+
+/* IMC */
+#include "dhl_ims_sap_collect.h"
+
+/* IMCSMS */
+#include "imcsms_msgid.h"
+#include "imcsms_imc_struct.h"
+#include "imcsms_enums.h"
+#include "imcsms_defs.h"
+#include "imcsms_rl.h"
+#include "imcsms_context.h"
+#include "imcsms_timer.h"
+
+/* IWLAN */
+#include "iwlan_msg_struct.h"
+#include "iwlan_sdm_struct.h"
+#include "iwlan_public_defs.h"
+
+/* IMCB */
+#include "imcb_msgid.h"
+#include "imsm_imcb_struct.h"
+//#include "imsvt_imcb_struct.h"
+#ifdef __FIVEG_VOICE__
+#include "atp_imcb_struct.h"
+#endif /* __FIVEG_VOICE__ */
+
+/* IMS_STACK */
+#include "ims_stack_msgid.h"
+#include "ims_stack_struct.h"
+#include "ims_common_def.h"
+
+/* IMSUA */
+#include "imsua_msgid.h"
+#include "imcb_imsua_struct.h"
+#include "imc_imsua_struct.h"
+
+#endif /* defined(__IMS_SUPPORT__) */
+
+
+#ifdef __N3GPP_OFFLOAD_ENABLE__
+
+/* N3ANS */
+#include "n3ans_msgid.h"
+#include "n3epc_n3ans_struct.h"
+#include "atp_n3ans_struct.h"
+#include "n3ans_l4bnw_struct.h"
+
+/* N3CF */
+#include "n3cf_msgid.h"
+#include "n3cf_msg_struct.h"
+#include "n3cf_atp_struct.h"
+#include "custom_n3cf_config.h"
+
+/* N3EPC */
+#include "n3epc_msgid.h"
+#include "d2pm_n3epc_struct.h"
+#include "d2rm_n3epc_struct.h"
+#include "iwlan_n3epc_struct.h"
+#include "atp_n3epc_struct.h"
+
+/* N3SAM */
+#include "n3sam_msgid.h"
+#include "n3epc_n3sam_struct.h"
+#include "n3sam_eap_proxy_struct.h"
+#include "n3sam_primitive_log_struct.h"
+
+#endif /* __N3GPP_OFFLOAD_ENABLE__ */
+
+
+#ifdef __MD_WLC_SUPPORT__
+
+#include "wlc_msgid.h"
+#include "atp_wlc_struct.h"
+#include "wlc_atp_struct.h"
+#include "wlc_user_struct.h"
+#include "tcpip_wlc_struct.h"
+
+#endif /* __MD_WLC_SUPPORT__ */
+
+/* CCCI IPC */
+#if defined(__CCCIDEV_SUPPORT__)
+#include "ccci_ipc_msgid.h"
+#include "cccisrv_struct.h"
+#include "ccci_fs_if.h"
+#endif /*defined(__CCCIDEV_SUPPORT__)*/
+#include "mdfpm_msgid.h"
+
+/* CCISM */
+#if defined(__HIF_CCISM_SUPPORT__)
+#include "ccismcore_msgid.h"
+#endif /*defined(__HIF_CCISM_SUPPORT__)*/
+
+/* MCIF */
+#if defined(__MCIF_SUPPORT__)
+#include "mcif_msgid.h"
+#include "mcif_public_api.h"
+#ifdef __MCIF_WIFI_SUPPORT__
+#include "wsvc_msgid.h"
+#include "wsvc_msg_struct.h"
+#include "wfpm_msgid.h"
+#include "wfpm_struct.h"
+#endif
+#endif /*defined(__MCIF_SUPPORT__)*/
+
+#ifdef __MD_IPSEC_SUPPORT__
+#include "ipsec_msgid.h"
+#include "ipsec_tcpip_msg.h"
+#include "ipsec_cp_msg.h"
+#include "ipsec_wtunnel_msg.h"
+#include "ipsec_atp_msg.h"
+#include "wtunnel_msgid.h"
+#include "n3sam_wt_struct.h"
+#endif /* __MD_IPSEC_SUPPORT__ */
+
+#include "ps_public_struct.h"
+
+#ifdef __IPCORE_SUPPORT__
+#include "pfm_struct.h"
+#include "pfm_enums.h"
+#endif /* __IPCORE_SUPPORT__ */
+
+#if defined(__HLT_SUPPORT__)
+#include "hlt_if.h"
+#endif
+#include "mmrf_msgid.h"
+#include "mmrf_msg_interface.h"
+#include "ftc_msg.h"
+#include "l1tst_msgid.h"
+#include "el1tst_msgid.h"
+
+#ifdef __MTK_MD_DIRECT_USB_SUPPORT__
+#endif
+
+#ifdef __WIFIPROXY_SUPPORT__
+#include "wifi_proxy_msgid.h"
+#include "wifi_proxy_public.h"
+#include "wifi_proxy_struct.h"
+#endif
+
+#include "l1d_gpt_if.h"
+#include "el1d_gpt_if.h"
+#include "ul1d_gpt_if.h"
+#include "nl1_gpt_if.h"
+#include "mml1_gpt_if.h"
+
+#include "mml1_rf_interface.h"
+
+#if defined(__MD97__)
+#include "mml1_cdf_trc_enum.h"
+#include "mml1_endc_trc_enum.h"
+#endif
+
+#include "iwlan_errc_struct.h"
+#include "iwlan_atp_struct.h"
+
+#ifdef __EL1_ENABLE__
+#include "el1d_trace_public_common.h"
+#include "el1d_public.h"
+#include "el1cd_common.h"
+#include "el1_phs_trace_enum.h"
+#endif
+
+#ifdef __MD_TCPIP_SUPPORT__
+#include "tcpip_msgid.h"
+#include "tcpip_struct.h"
+#include "nal_msgid.h"
+#include "nal_struct.h"
+#ifdef __NAL_TEST__
+#endif
+#endif
+
+/* DNS */
+#ifdef __MD_TCPIP_SUPPORT__
+#include "dns_msgid.h"
+#include "dns_struct.h"
+#endif
+
+/* Ethernet Service */
+#ifdef __ETHERNET_SERVICE_SUPPORT__
+#include "ethsvc_msgid.h"
+#include "ethsvc_struct.h"
+#endif
+
+/* L4B Begin */
+#include "l4b_internal_defs.h"
+#include "atp_msgid.h"
+#include "atp_l4b_struct.h"
+#include "l4b_atci_struct.h"
+#include "l4b_cval_struct.h"
+#include "l4bpwr_struct.h"
+#include "l4bnw_struct.h"
+#include "l4bpwr_l4bnw_struct.h"
+#include "val_msgid.h"
+#include "l4bsim_struct.h"
+#include "l4bsat_struct.h"
+#include "l4bsms_struct.h"
+#include "l4aps_l4bpdn_struct.h"
+#include "ddm_l4aps_struct.h"
+#include "l4bpdn_l4c_struct.h"
+#include "l4bpdn_tcm_struct.h"
+#include "l4bpdn_cval_struct.h"
+#include "l4bpdn_struct.h"
+#include "tcm_cval_struct.h"
+#include "l4bpdn_upcm_struct.h"
+#include "l4c_upcm_struct.h"
+#include "l4bpdn_leisim.h"
+#include "l4bpdn_context.h"
+#include "l4b_vdm_struct.h"
+#include "l4bcc_struct.h"
+#include "l4bsbp_struct.h"
+#include "l4bpwr_l4bsbp_struct.h"
+#include "l4bss_struct.h"
+#include "ddm_l4bnw_struct.h"
+#include "wo_l4bnw_struct.h"
+#include "l4bnw_l4c_struct.h"
+#include "l4bpwr_l4c_struct.h"
+#ifndef __MTK_TARGET__
+//for l4b.gv
+#endif
+/* L4B End */
+
+#include "nas_sv_msgid.h"
+
+#include "ddm_msgid.h"
+#include "d2_msgid.h"
+#include "intctrl_msgid.h"
+
+#include "imsm_msgid.h"
+#include "imsm_struct.h"
+
+#include "atp_d2at_struct.h"
+#include "atp_imsm_struct.h"
+#include "atp_ddm_struct.h"
+#include "d2cm_struct.h"
+#include "d2am_struct.h"
+#include "d2_struct_tmp.h"
+#include "d2apn_struct.h"
+#include "em_ddm_public_struct.h"
+
+#include "simmngr_msgid.h"
+#include "simmngr_struct.h"
+#include "d2pm_ddm_struct.h"
+
+#include "iwlan_msgid.h"
+#include "atp_iwlan_struct.h"
+
+#include "atp_d2rm_struct.h"
+#include "d2pm_d2rm_struct.h"
+#include "d2rm_ddm_struct.h"
+#include "d2rm_iwlan_struct.h"
+#include "imc_iwlan_struct.h"
+#include "wipc_iwlan_struct.h"
+
+#include "d2ut_struct.h"
+#include "d2pm_struct.h"
+#include "d2apn_struct.h"
+
+#include "ursp_struct.h"
+#include "intctrl_user_struct.h"
+#include "ddm_intctrl_struct.h"
+
+#include "wo_msgid.h"
+
+#include "eap_common_struct.h"
+#include "eap_msgid.h"
+
+#include "atp_ltecsr_struct.h"
+#include "sim_dummy_driver.h"
+
+#include "l4c_imc_struct.h"
+#include "l4c_mt_struct.h"
+
+#include "atp_l4c_struct.h"
+#include "atp_smsal_struct.h"
+#include "atp_sms_struct.h"
+#include "sdm_sms_struct.h"
+
+#ifdef __KPALV_SUPPORT__
+#include "kpalv_msgid.h"
+#include "kpalv_struct.h"
+#endif
+
+/* MCF */
+#include "mcf_struct.h"
+#include "mcf_enum.h"
+
+#ifdef __CDMA2000_RAT__
+#include "cas_eas_struct.h"
+#include "evl1shsch.h"
+#include "rmcsch.h"
+#include "evl1fhrrm.h"
+#include "evl1fhhsca.h"
+#include "evl1fhmain.h"
+#include "evl1shmain.h"
+#include "evl1flbrphandler.h"
+#include "cphevdosch.h"
+#include "cl1tstl1psif.h"
+#include "cl1tst_l1ps_msgid.h"
+#undef register
+#define register
+#include "systyp.h"
+#include "psw_nvram.h"
+#include "elt_msg_struct.h"
+#include "cl1_elt_msg_struct.h"
+#include "elt_msgid.h"
+#include "l1d_msgid.h"
+#include "l1d_msg_struct.h"
+#include "lmd_msg_struct.h"
+#include "lmd_msgid.h"
+#include "lmds_msgid.h"
+#include "psw_msg_struct.h"
+#include "psw_msgid.h"
+#include "psws_msg_struct.h"
+#include "psws_msgid.h"
+#include "rlp_msg_struct.h"
+#include "rlp_msgid.h"
+#include "do_fcp_msg_struct.h"
+#include "do_fcp_msgid.h"
+#include "lec_msg_struct.h"
+#include "lec_msgid.h"
+#include "do_clc_msg_struct.h"
+#include "do_clc_msgid.h"
+#include "do_slc_msg_struct.h"
+#include "do_slc_msgid.h"
+#include "do_rmc_msg_struct.h"
+#include "do_rmc_msgid.h"
+#include "do_sec_msg_struct.h"
+#include "do_sec_msgid.h"
+#include "do_rcp_msg_struct.h"
+#include "do_rcp_msgid.h"
+#include "rcp_dhl_trace_enum.h"
+#include "cpbuf.h"
+#include "hlp_msgid.h"
+#include "hlp_msg_struct.h"
+#include "PPP.H"
+#include "css_msgid.h"
+#include "css_msg_struct.h"
+#include "cssdefs.h"
+#include "hsc_msgid.h"
+#include "hsc_msg_struct.h"
+#include "stub_msgid.h"
+#include "val_msgid.h"
+#include "val_msg_struct.h"
+#include "valpsdm.h"
+#include "valpdp.h"
+#include "uim_msgid.h"
+#include "uim_msg_struct.h"
+#include "uim_proxy_private_api.h"
+#include "cuim_private_api.h"
+#include "valsmsdandcn.h"
+#include "evl1fhdfs.h"
+#include "evl1fhinterho.h"
+#include "l1dsch.h"
+#include "xl1fhsth.h"
+#include "xl1shsch.h"
+#include "xl1shtmglp.h"
+#include "xl1shrfc.h"
+#include "lmdapi.h"
+#include "rmcfmp.h"
+#include "cphevdoflsrp.h"
+#include "cl1shrfc.h"
+#include "cval_ratdm_struct.h"
+#include "ratdm_chlp_struct.h"
+#include "cl1rcreq.h"
+#include "cl1rcseq.h"
+#include "cl1rcd.h"
+#include "evl1fhmm.h"
+#include "evl1fhgm.h"
+#include "rmcdrcdefs.h"
+#include "cl1shmmafc.h"
+#include "evl1shsch.h"
+#include "hscapi.h"
+#include "stub_msg_struct.h"
+#include "tas.h"
+#include "gmss_cval_struct.h"
+
+/* Add C2K EM headers */
+#include "em_public_struct_evl1.h"
+#include "em_public_struct_xl1.h"
+#include "em_public_struct_chsc.h"
+#include "em_public_struct_evl2.h"
+#include "em_public_struct_xl2.h"
+#include "em_public_struct_evl3.h"
+#include "em_public_struct_xl3.h"
+#include "em_public_struct_c2k_hlp.h"
+#include "em_public_struct_cval.h"
+
+#include "em_lbs_public_struct.h"
+#include "em_lpp_public_struct.h"
+
+#ifdef __BIP_SUPPORT__
+#include "bip_msgid.h"
+#include "bip_if.h"
+#endif
+
+//#include "ssds_imc_struct.h"
+#include "ssds_l4c_struct.h"
+
+#ifdef __XCAP_SUPPORT__
+#include "xcap_msgid.h"
+#include "xcap_if.h"
+#include "atp_xcap_struct.h"
+#endif
+
+#ifdef __DISPATCHER_SUPPORT__
+#include "dispatcher_msgid.h"
+#include "ipcore_dispatcher_struct.h"
+#include "n3epc_dispatcher_struct.h"
+#endif
+
+#ifdef __MD_CRYPTO_SUPPORT__
+#include "crypto_msgid.h"
+#include "crypto_struct.h"
+#endif
+
+#undef register
+#endif /* __CDMA2000_RAT__ */
+
+#ifdef __HTTP_TLS_SUPPORT__
+#include "http_tls_msgid.h"
+#include "http_if.h"
+#include "tls_if.h"
+#endif
+
+#ifdef __MD_CERT_SUPPORT__
+#include "cert_msgid.h"
+#include "cert_struct.h"
+#endif
+
+#ifdef __SASE_SUPPORT__
+#include "sase_msgid.h"
+#include "sase_if.h"
+#endif
+
+#if defined(__FIVEG_NAS__)
+#include "vgmm_ratdm_struct.h"
+#include "nas_sv_vgmm_struct.h"
+#include "vgmm_upcm_struct.h"
+#include "ddm_vgmm_struct.h"
+//#include "vgmm_msg_unpack.h"
+//#include "vgsm_msg_unpack.h"
+
+/* UPDS */
+#include "upds_msgid.h"
+#include "upds_common.h"
+#include "upds_context.h"
+#include "ursp_upds_struct.h"
+#include "upds_vgmm_struct.h"
+
+#endif /* __FIVEG_NAS__ */
+
+
+#if defined (__NR_RAT__)
+#if defined (__ENDC__)
+#include "errc_nrrc_struct.h"
+#endif /*__ENDC__*/
+#include "rrc_nrrc_struct.h"
+#include "rr_nrrc_struct.h"
+#include "upcm_nmac_struct.h"
+//#include "nmac_enum_struct.h"
+#include "erm_nrrc_struct.h" /// ERM NRRC SAP
+#endif /* __NR_RAT__ */
+
+#ifdef __PERF_SUPPORT__
+#include "perf.h" /// protocol exception recovery framework enum for format string
+#endif // ~ #ifdef __PERF_SUPPORT__
+#include "perf_api.h" /// protocol exception recovery framework API
+
+#ifdef __IPC_ADAPTER__
+#ifndef __MTK_TARGET__
+#include "oemdebug.h"
+#include "oemutility.h"
+#endif
+#include "ipc_adapter_public_struct.h"
+#include "ipc_adapter_public_def.h"
+#include "ipc_adapter_public_em_struct.h"
+#include "ipc_adapter_msgid.h"
+#include "ipc_adapter_cc_struct.h"
+#include "ipc_adapter_pwr_struct.h"
+#include "ipc_adapter_sms_struct.h"
+#include "ipc_adapter_atp_struct.h"
+#include "ipc_adapter_sat_struct.h"
+#include "ipc_adapter_phb_struct.h"
+#include "ipc_adapter_smu_struct.h"
+#include "ipc_adapter_ss_struct.h"
+#include "ipc_adapter_imei_struct.h"
+#include "ipc_adapter_cfg_struct.h"
+#include "ipc_adapter_embms_struct.h"
+#include "ipc_adapter_l23_struct.h"
+#include "ipc_adapter_domestic_struct.h"
+#include "ipc_adapter_jpn_struct.h"
+#include "ipca_smu_private_enum.h"
+#include "ipca_smu_context.h"
+#include "ipca_embms_context.h"
+#include "ipca_ctrl_struct.h"
+#include "ipca_phb_enum.h"
+#include "ipca_imei_enum.h"
+#include "ipca_pwr_enum.h"
+#include "ipca_pwr_context.h"
+#include "ipca_sms_hdlr.h"
+#include "ipc_adapter_nw_struct.h"
+#include "ipc_adapter_dspl_struct.h"
+#include "ipc_adapter_misc_struct.h"
+#include "ipca_nw_enum.h"
+#include "ipca_nw_context.h"
+#include "ipca_misc_enum.h"
+#include "ipc_adapter_enum.h"
+#include "ipc_adapter_gprs_struct.h"
+#include "ipca_ctrl_context.h"
+#include "ipca_factory_enum.h"
+#include "ipc_adapter_factory_struct.h"
+#include "ipc_adapter_sap_struct.h"
+#include "ipca_gprs_enum.h"
+#include "ipca_gprs_context.h"
+#include "ipca_gprs_ps.h"
+#include "ipca_gprs_ps_routine_struct.h"
+#include "ipc_adapter_em_struct.h"
+#include "ipca_sat_private_struct.h"
+#include "ipca_sat_private_enum.h"
+#include "ipca_cc_utility.h"
+#include "ipc_adapter_srlte_struct.h"
+#include "ipca_srlte_context.h"
+#include "ipca_em_struct.h"
+#include "ipca_jpn_private_struct.h"
+#include "ipca_jpn_private_defs.h"
+#include "ipca_domestic_main.h"
+#include "ipca_sap_enum.h"
+#include "ipca_sap_context.h"
+#endif //__IPC_ADAPTER__
+
+#ifdef __L5_SUPPORT__
+#include "l5_msgid.h"
+#include "l5_structs.h"
+#include "l5ath_def.h"
+#include "l5ath_switch_def.h"
+#include "l5ath_rf_def.h"
+#include "l5uss_def.h"
+#include "l5ucat_def.h"
+#include "l5mipc_sms.h"
+#include "l5sms_def.h"
+#include "l5sys_def.h"
+#include "l5usms_def.h"
+#include "l5ath_ss_def.h"
+#include "l5mipc_struct.h"
+#include "l5updn_def.h"
+#include "l5_nw_structs.h"
+#include "l5usim_struct.h"
+#include "l5_switch_structs.h"
+#include "l5_common.h"
+#include "tmc_l5_struct.h"
+#include "l5ucc_struct.h"
+#include "l5u_structs.h"
+#include "l5uims_def.h"
+#include "l5io_structs.h"
+#include "l5u_structs.h"
+#include "ath_cmd.h"
+#include "nccmni_if.h"
+#include "idc_l5_str.h"
+#if ((defined __ECALL_SUPPORT__) || (defined __NG_ECALL_SUPPORT__))
+#include "l5uecall_def.h"
+#endif
+#endif /* __L5_SUPPORT__ */
+
+#ifdef __MD_TFWK__
+#include "tfwk.h"
+#endif
+
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to libParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as above can lead to build time inefficiency.
+*
+* common header file => libParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => libParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in libParseDbModem_tdd_fdd.c
+* 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
+********************************************** Warning **********************************************/
diff --git a/mcu/service/dhl/database/msglog_db/libParseDbModem_4g.c b/mcu/service/dhl/database/msglog_db/libParseDbModem_4g.c
new file mode 100644
index 0000000..a699fa0
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/libParseDbModem_4g.c
@@ -0,0 +1,81 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * swParseDbModem.c
+ *
+ * Project:
+ * --------
+ * VMOLY
+ *
+ * Description:
+ * ------------
+ * This file collects the customer module/primitve information to be included
+ * in the database.
+ * The enum id for module type is "customer_module_type".
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ *
+ *******************************************************************************/
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+
diff --git a/mcu/service/dhl/database/msglog_db/libParseDbModem_tdd_fdd.c b/mcu/service/dhl/database/msglog_db/libParseDbModem_tdd_fdd.c
new file mode 100644
index 0000000..2efdd56
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/libParseDbModem_tdd_fdd.c
@@ -0,0 +1,1454 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * libParserDbModem.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects primitve IDs and struct definition from the Modem
+ * application part for pre-processing.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ * 09 23 2019 louis-tw.huang
+ * [MOLY00439533] [Gen97][IDC] IDC feature development [EWSP0000046233]
+ *
+ * 10 31 2018 kun-lin.wu
+ * [MOLY00361478] [Gen97] Gemini Compile Option Clean Up
+ *
+ * 08 23 2018 yu-hsiang.peng
+ * [MOLY00343261] [MT6297] [Logging Service] DHL 2.0 Landing
+ * [DHL2.0] Port to VMOLY (dhl mak & DB)
+ *
+ * 08 21 2018 yi-lin.lee
+ * [MOLY00346596] [VMOLY][UTT] code sync - Change LTT to UTT
+ *
+ *******************************************************************************/
+
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to libParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => libParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => libParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in libParseDbModem_tdd_fdd.c
+* 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
+********************************************** Warning **********************************************/
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+//"ps\\tools\\asn1lib\\include\\act-ttbuffmgr.h"
+#undef STDC_HEADERS //it will include stdio.h
+
+#ifdef __RVCT__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+
+#define _ARMABI
+
+#endif
+
+#ifdef __UE_SIMULATOR__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+#endif
+
+#include "kal_public_api.h"
+#include "kal_public_defs.h" //MSBB change #include "stack_msgs.h"
+#include "sap_info.h"
+#include "msg_id_to_em_info_map.h"
+#include "em_mapping_for_tool.h"
+
+#include "SST_sla.h"
+#if !defined(DISABLE_MDDBG_FUNCTION)
+#endif
+
+/* Start of EM related structure */
+#include "em_l4_common_public_struct.h"
+#include "em_as_common_public_struct.h"
+#include "em_nwsel_common_public_struct.h"
+#include "em_gas_public_struct.h"
+#include "em_uas_public_struct.h"
+/* End of EM related structure */
+
+#ifdef __CDMA2000_RAT__
+#endif
+
+/* DVFS */
+#ifdef DVFS_ENABLE
+#endif
+
+/* l1 */
+#include "mph_types.h"
+#include "mph_cs_def.h"
+#include "mph_cs_msg.h"
+#ifdef __PS_SERVICE__
+#include "mph_ps_def.h"
+#include "mph_ps_msg.h"
+#endif
+#if ( defined(__GSM_RAT__) || defined(__UMTS_RAT__) )
+/* For Dual Mode L1 */
+/* For Dual Mode L1 */
+#endif /* __GSM_RAT__ && __UMTS_RAT__ */
+
+#if defined(GEN_FOR_PC)
+#endif //#if defined(GEN_FOR_PC)
+
+#ifndef NWSEL_NOT_PRESENT
+#include "nwsel_msgid.h"
+#include "nwsel_mm_struct.h"
+#include "nwsel_ratcm_struct.h"
+#include "nwsel_context.h"
+#include "nwsel_def.h"
+#include "nwsel_eval_struct.h"
+#include "ddm_nwsel_struct.h"
+#endif
+
+#ifndef GMSS_NOT_PRESENT
+#endif
+
+#ifdef DUMMY_PROTOCOL
+#ifdef __GSM_RAT__
+#include "dps_testTool.h"
+#include "dps_rlc_sap.h"
+#endif //__GSM_RAT__
+#endif
+
+/* other module */
+
+#ifndef __L1_STANDALONE__
+/*For Protol modules*/
+
+#ifdef __PS_SERVICE__
+//#include "asn-incl.h"
+#endif
+
+#include "irat_common_struct.h"
+
+/* MBMSAL */
+
+/* FLC */
+#if defined(__FLC2__) && defined(__FLC_SUPPORT__)
+#endif
+
+#ifdef __MOD_CC__
+
+
+#endif
+
+
+#ifdef __MOD_CSM__
+#include "mcd_ss_parameters.h"
+#include "mcd_ss_tcapmessages.h"
+#include "ps2sat_struct.h"
+#include "l4c_aux_struct.h"
+#include "l4c_common_enum.h"
+#include "csmcc_enums.h"
+#include "csmcc_common_enums.h"
+#include "ps2sat_struct.h"
+#include "l4c2csm_cc_struct.h"
+#include "mncc_struct.h"
+
+#include "stack_timer.h"
+#include "l4_defs.h"
+#include "csmcc_defs.h"
+#include "csmcc_bc_defs.h"
+#include "csmcc_bc_types.h"
+#include "csmcc_common_enums.h"
+#include "csmcc_enums.h"
+#include "csmcc_types.h"
+#include "csmcc_atfunc.h"
+
+#include "l4c2csm_ss_struct.h"
+
+
+#if defined(__L1_GPS_REF_TIME_SUPPORT__) || defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)
+#endif
+
+#ifdef __AGPS_CONTROL_PLANE__
+/* SSAGPS */
+#ifdef GEN_FOR_PC
+ #ifndef __RVCT__
+ #define __int64
+ #endif //#if !defined(__RVCT__)
+#define __cdecl
+#endif //#ifndef __L1_STANDALONE__
+
+#include "applib2_asn_common.h"
+#include "applib2_mtkasn_global.h"
+#include "ss_asn.h"
+#include "l4c2csm_ss_lcs_struct.h"
+#endif
+#include "l4c_lbs_struct.h"
+#include "mnss_struct.h"
+#include "csmss_common_enums.h"
+#endif /*__MOD_CSM__*/
+
+#ifdef __MOD_SIM__
+#include "sim_common_enums.h"
+
+ /* ripple */
+
+/* C2K */
+#ifdef __CDMA2000_RAT__
+#endif /* __CDMA2000_RAT__ */
+
+#endif /*__MOD_SIM__*/
+
+#ifdef __MOD_SMU__
+
+#if defined(__MMI_FMI__)
+#endif
+#include "sim_common_enums.h"
+#endif /*__MOD_SMU__*/
+
+#ifdef __MOD_PHB__
+#endif /*__MOD_PHB__*/
+
+#ifdef __MOD_UEM__
+#include "device.h"
+#endif /*__MOD_UEM__*/
+
+#ifdef __MOD_SMSAL__
+
+/* for context */
+
+#endif /*__MOD_SMSAL__*/
+
+#ifdef __MOD_SMS__
+
+/* SMS <--> SMSAL */
+
+/* SMS Context */
+
+/* SMS <--> MM */
+#endif
+
+#ifndef PPP_NOT_PRESENT
+#include "l4c2ppp_struct.h"
+#include "ppp2l4c_struct.h"
+/* PPP for CSD usage */
+#include "tcpip2ppp_struct.h"
+#include "ppp2csd_struct.h"
+ #ifdef __PPP_UT__
+#include "ppp_types.h"
+#include "ppp_buff_mgr.h"
+#include "ppp_fsm.h"
+#include "ppp_crc.h"
+#include "ppp_lcp.h"
+#include "ppp_ipcp.h"
+#include "ppp_main.h"
+#include "ext_modem_ppp_struct.h"
+ #endif // ~ #ifdef __PPP_UT__
+#endif /* ~PPP_NOT_PRESENT */
+
+#ifdef __MOD_CISS__
+#endif /* __MOD_CISS__ */
+
+//#ifdef __PS_SERVICE__
+#ifdef __MOD_TCM__
+#if defined(__MMI_FMI__)
+#endif
+/* mtk00938 2008-02-20: for streaming and secondary PDP context */
+/* End of Jeff Wu */
+
+
+
+#ifdef __TURN_ON_GENERAL_SECONDARY_PDP__
+#endif /* __TURN_ON_GENERAL_SECONDARY_PDP__ */
+
+#ifdef __ACL_SUPPORT__
+#include "tcm_acl_support.h"
+#endif /* __ACL_SUPPORT__ */
+
+#ifdef __UGTCM__
+#endif /* __UGTCM__ */
+
+#endif /* __MOD_TCM__ */
+//#endif /* __PS_SERVICE__ */
+
+#include "nwsel_def.h"
+#include "nwsel_context.h"
+#include "nwsel_mm_struct.h"
+#include "nwsel_ratcm_struct.h"
+
+#ifndef RR_NOT_PRESENT
+#ifdef __UMTS_RAT__
+#include "as_common.h"
+#endif
+
+/* For Poring CSN.1*/
+
+#include "rr_common_headers.h"
+#include "rr_common_def.h"
+#include "rr_context.h"
+
+
+#include "rr_mpal_interface.h"
+#include "rmc_lapdm_interface.h"
+
+
+#ifdef __UMTS_RAT__
+/* John 2006/06/10*/
+#include "csi_asn.h"
+#ifdef __GSM_RAT__
+#include "csi_gsm_asn.h"
+#endif
+#ifdef __UMTS_RAT__
+#include "csi_umts_asn.h"
+#endif
+
+#include "uas_gas_enums.h"
+#include "uas_gas_struct.h"
+#include "mrs_utility.h"
+
+#ifdef __LTE_RAT__
+#include "uas_eas_struct.h"
+#include "gas_eas_struct.h"
+#include "mtk_uper_asn.h"
+#endif
+#include "mrs_as_struct.h"
+#include "rac_mrs_struct.h"
+
+#if defined(__LTE_RAT__)
+#endif
+
+/* For generating 3G LBM TRACE_PEER enum */
+
+#endif /* __UMTS_RAT__ */
+
+#if defined(__GEMINI__)
+#if defined(__UMTS_RAT__)
+#ifdef __GSM_RAT__
+#endif /* __GSM_RAT__ */
+#endif /* __UMTS_RAT__ */
+#ifdef __LTE_RAT__
+#endif /* __LTE_RAT__ */
+#ifdef __CDMA2000_RAT__
+#endif /* __CDMA2000_RAT__ */
+#endif /* __GEMINI__ */
+
+#ifdef __GEMINI__
+#endif /* __GEMINI__ */
+
+#include "rr2mpal_struct.h"
+#include "mpal2rr_struct.h"
+#include "rrm2rmpc_struct.h"
+#include "mph_cs_msg.h"
+#include "sim_common_enums.h"
+
+/* CSN codec*/
+#include "mtk_csn.h"
+
+#ifdef __PS_SERVICE__
+/* Evelyn 20090415: Merge R6 */
+#endif
+
+#include "rrm_context.h"
+#include "lapdm_common.h"
+#include "psi_si_common.h"
+#include "si.h"
+#include "si_context.h"
+#include "rr_sendmsgs_to_mpal.h"
+#include "si_update_funcs.h"
+#include "si_msg_decode.h"
+#include "rmc_enums.h"
+#include "rmc_peer_msg_enums.h"
+
+#ifdef __PS_SERVICE__
+
+/* peer message */
+#include "rmc_peer_dl.h"
+
+#include "rlc_mac_enums.h"
+#include "rlc2mac_struct.h"
+#include "rlcmac_struct.h"
+#include "mac2rlc_struct.h"
+#include "mac2rmpc_struct.h"
+#ifdef __ADAPTIVE_PAGING_PERIOD_IN_UNACK_MODE__
+#endif
+#include "rr_data_ind.h"
+#include "psi_si_common.h"
+#include "psi.h"
+#include "mac_context.h"
+#include "rlc_context.h"
+#include "reasm_context.h"
+#ifndef __MTK_TARGET__
+#include "gprs_rlcmac_common_struct.h"
+#endif
+#endif /* end of __PS_SERVICE__ */
+
+#ifdef __UMTS_RAT__
+#include "uas_gas_enums.h"
+
+#endif /* __UMTS_RAT__ */
+
+#include "meas_context.h"
+#include "rmc_context.h"
+
+#include "rcs_context.h"
+
+#include "lapdm_context.h"
+#include "rmc_common_access.h"
+#include "rmc_cell_resel.h"
+#include "rmpc_common_func.h"
+#include "rmc_meas.h"
+#include "rr_utils.h"
+#include "rr_peh.h"
+#include "rmc_dedicated_proc.h"
+#include "csrr_utils.h"
+#include "csrr_recv_lapdm_mesgs.h"
+#include "csrr_recv_mpal_mesgs.h"
+#include "csrr_ded_access.h"
+#include "csrr_ded_proc.h"
+#include "rmc_dedicated_meas.h"
+#include "rmpc_nbr_cell.h"
+
+// Evelyn 20080902: For MAC UT
+// Rachel 20101114: For MPAL UT
+#include "mpal_context.h"
+
+
+
+#include "mll1_gsm.h"
+#include "mll1_umts_fdd.h"
+
+
+#ifdef __AGPS_CONTROL_PLANE__
+#include "csrr_agps_context.h"
+#endif
+
+#endif /* RR_NOT_PRESENT */
+
+#ifndef MM_NOT_PRESENT
+#include "l3_inc_enums.h"
+#include "mm_mmi_enums.h"
+#include "mmcm_enums.h"
+#include "mmas_enums.h"
+#include "mm_ratcm_enums.h"
+#include "mm_ratcm_struct.h"
+#include "security_keys_enums.h"
+
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "mcd_mm_common_gen_struct.h"
+#include "mcd_mm_cs_peer_struct.h"
+
+#include "security_keys_struct.h"
+#include "mm2cm_struct.h"
+#include "mm2mmi_struct.h"
+#include "cm2mm_struct.h"
+#include "mmi2mm_struct.h"
+#include "mm_common.h"
+#include "mm_cs_defs.h"
+
+#include "mm_mmi_enums.h"
+#include "l4crac_enums.h"
+#include "l3_inc_enums.h"
+#include "nvram_enums.h"
+#include "mm2sms_enums.h"
+
+#include "mcd_l3_inc_struct.h"
+#include "mcd_l3_inc_gprs_struct.h"
+#include "l3_inc_local.h"
+#include "mmi2mm_struct.h"
+#include "mm2mmi_struct.h"
+#include "l4c2rac_struct.h"
+#include "rac2l4c_struct.h"
+#include "nvram_struct.h"
+#include "as2mmi_struct.h"
+
+#ifdef __PS_SERVICE__
+#include "mcd_mm_ps_peer_struct.h"
+#include "mm_ps_defs.h"
+#include "mm_ps_context.h"
+#endif
+
+#include "mm_cs_context.h"
+#include "mm_common_context.h"
+
+#endif /* #ifndef MM_NOT_PRESENT */
+
+
+#ifdef __MOD_L4A__
+#include "l4a.h"
+#endif
+
+#ifdef WISDOM_MMI
+#include "ws_msg_struct.h"
+#endif
+
+/**************************************************************************
+ * GPRS NAS DATA PATH BEGINS
+ **************************************************************************/
+#ifdef __PS_SERVICE__
+
+
+#ifndef SNDCP_NOT_PRESENT
+/* other needed struct and enums */
+/* sndcp peer struct */
+/* sm local struct */
+
+
+#endif /* SNDCP_NOT_PRESENT */
+
+#ifndef SM_NOT_PRESENT
+/* other needed struct and enums */
+
+
+/* sm peer struct */
+/* sm local struct */
+
+/* sm conn sturct */
+
+
+#endif /* SM_NOT_PRESENT */
+
+
+
+#ifndef LLC_NOT_PRESENT
+
+/* other needed struct and enums */
+#include "l3llc_enums.h"
+/* In interface/include */
+
+/* llc local struct */
+#include "cipher2llc_struct.h"
+
+
+/* llc asn peer struct (Order shall be kept) */
+
+/* other needed struct and enums */
+
+
+#endif /* LLC_NOT_PRESENT */
+
+#endif /* __PS_SERVICE__ */
+
+#endif /*__L1_STANDALONE__*/
+
+/**************************************************************************
+ * GPRS NAS DATA PATH ENDS
+ **************************************************************************/
+
+#ifndef DATA_NOT_PRESENT
+
+
+
+
+
+#endif /* DATA_NOT_PRESENT */
+
+#include "m12190_pcore.h"
+#if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__)
+#endif
+
+#ifdef __AST_TL1_TDD__
+#include "tl1cal_ast.h"
+#endif
+
+#include "l1cal.h"
+
+
+//#ifdef __MCD__
+
+//#endif
+
+#include "uart_sw.h"
+
+#ifdef __IRDA_SUPPORT__
+#ifndef OBEX_NOT_PRESENT
+#include "irda_enums.h"
+#include "irda_struct.h"
+#include "obex_app_enums.h"
+#include "obex2app_struct.h"
+#include "app2obex_struct.h"
+#endif
+
+#ifndef IRCOMM_NOT_PRESENT
+#include "irda_enums.h"
+#include "irda_struct.h"
+#include "ircomm_app_enums.h"
+#include "app2ircomm_struct.h"
+#include "ircomm2app_struct.h"
+#endif
+#endif /* __IRDA_SUPPORT__ */
+
+#if defined(__MOD_SMSAL__) && !defined(SOC_NOT_PRESENT) //kevin 05/23
+#include "smsal2soc_struct.h"
+#endif /*__MOD_SMSAL__*/
+
+#ifndef __L1_STANDALONE__
+#endif
+
+#ifdef __LTE_RAT__
+#include "mll1_gsm.h"
+#include "mll1_umts_fdd.h"
+#endif /*__LTE_RAT__*/
+
+#if defined(__MOD_RAC__)
+#ifdef __LTE_RAT__
+#endif /* __LTE_RAT__ */
+#endif /* __MOD_RAC__ */
+
+#ifndef L4_NOT_PRESENT
+#endif
+
+/* for BMT */
+/* for BMT */
+
+
+#ifdef __WIFI_SUPPORT__
+#include "wndrv_cnst.h"
+#include "wndrv_cal.h"
+#include "wndrv_ft_types.h"
+#include "wndrv_ft_msg.h"
+#include "wndrv_supc_types.h"
+#include "wndrv_supc_msg.h"
+#include "wndrv_tool_types.h"
+#include "wndrv_tool_msg.h"
+#include "supc_abm_msgs.h"
+#include "mmi2abm_struct.h"
+#include "wndrv_abm_msg.h"
+#ifdef WIFI_BB_MT5921
+#include "wndrv_trace_enum.h"
+#endif
+#endif
+
+#ifndef __L1_STANDALONE__
+#ifdef GEN_FOR_PC
+#include "sasken_msg.h"
+#include "smsal_peer.h"
+#include "mpal2rr_unpack_struct.h"
+#include "rr2mpal_unpack_struct.h"
+#ifdef __UMTS_FDD_MODE__
+#include "nas_msg.h"
+#endif
+
+#ifdef __UMTS_RAT__
+#include "ub_msg.h"
+#endif /* #ifdef __UMTS_RAT__ */
+#ifdef __PS_SERVICE__
+#endif /*__PS_SERVICE__*/
+#endif /*GEN_FOR_PC*/
+#endif /*__L1_STANDALONE__*/
+
+
+#ifdef __PS_SERVICE__
+#include "ps_ratdm_struct.h"
+#endif
+
+#ifndef __MTK_TARGET__
+#include "uart_sim_struct.h"
+#endif
+
+
+#ifdef __IPERF__
+#include "soc_api.h"
+#endif /* __IPERF__ */
+
+#ifdef __DRM_SUPPORT__
+#endif /* __DRM_SUPPORT__ */
+
+#ifdef GIS_SUPPORT
+#include "gis_struct.h"
+#endif
+
+#ifdef __CMUX_SUPPORT__
+#endif /* __CMUX_SUPPORT__ */
+
+
+#ifdef __IPCORE_SUPPORT__
+#include "ipc_enums.h"
+#endif /* __IPCORE_SUPPORT__ */
+
+#ifdef __IPFCORE_SUPPORT__
+#endif /* __IPFCORE_SUPPORT__ */
+
+#ifdef __TMC_SUPPORT__
+#endif /* __TMC_SUPPORT__ */
+
+#ifdef __HIF_AOMGR_SUPPORT__
+#include "aomgr_struct.h"
+#include "aomgr_enums.h"
+#endif /* __HIF_AOMGR_SUPPORT__ */
+
+#ifdef __ETHERCORE_SUPPORT__
+#include "ethercore_struct.h"
+#endif /* __ETHERCORE_SUPPORT__ */
+
+#ifdef __NMU_ENABLE__
+#endif
+
+#ifdef __USB_ECM_SUPPORT__
+#include "cdcecm_struct.h"
+#endif
+
+#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
+#endif
+
+#ifndef __L1_STANDALONE__
+
+/* for NAS/RATCM inerface */
+
+#include "ratcm_ratdm_struct.h"
+#include "ratcm_context.h"
+
+#ifdef __PS_SERVICE__
+
+#ifndef UART_SW_H
+#endif // ~ #ifndef UART_SW_H
+#ifndef _PS_RATDM_STRUCT_H
+#include "ps_ratdm_struct.h"
+#endif // ~ #ifndef _PS_RATDM_STRUCT_H
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "ndis_ratdm_struct.h"
+#endif
+/* L4C -> RATDM */
+//#ifndef _L4C_RATDM_STRUCT_H
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "l4c_ratdm_struct.h"
+#endif
+//#endif
+
+/* L4C -> IPCORE */
+
+/* For RATDM/RABM UT */
+#include "dlist.h"
+#include "ratdm_context.h"
+#endif
+
+#ifdef __GSM_RAT__
+/* for RATCM/GAS interface */
+#endif
+
+#endif /* ! __L1_STANDALONE__ */
+
+
+/* mtk04121 */
+#if defined(__MOD_TCM__)
+/* PPP Dial-up */
+
+#ifdef __TURN_ON_GENERAL_SECONDARY_PDP__
+#endif /* __TURN_ON_GENERAL_SECONDARY_PDP__ */
+
+#ifdef __ACL_SUPPORT__
+#include "tcm_acl_support.h"
+#endif /* __ACL_SUPPORT__ */
+
+#ifdef __UGTCM__
+#endif /* __UGTCM__ */
+
+#if defined(__ETCM__)
+#endif
+#endif
+
+/**************************************************************************
+ * WCDMA INTERFACE BEGINS
+ **************************************************************************/
+#ifdef __UMTS_RAT__
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "ul1_cnst.h"
+#include "ul1_def.h"
+#include "ul1_struct.h"
+#include "ul1hisr_struct.h"
+#endif
+#ifdef __CGEN_UMTS_TDD128_MODE__
+#include "tl1_cnst.h"
+#include "tl1_def.h"
+#include "tl1_struct.h"
+#endif
+
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "mll1_umts_fdd.h"
+#endif /*__UMTS_FDD_MODE__*/
+
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#endif /*__UMTS_FDD_MODE__*/
+
+#ifdef __UL1_ON_MNT__
+/* for UL1 MoDIS */
+#include "ul1_types.h"
+#endif
+
+#ifdef DUMMY_PROTOCOL
+/* 3G DPS */
+#include "udps_testTool.h"
+#endif
+
+
+/* for MAL1 interface */
+#ifdef __MA_L1__
+#include "mal1_def.h"
+#include "cti_msg.h"
+#include "dual_msg.h"
+#include "mal1_struct.h"
+#endif
+
+#ifndef __L1_STANDALONE__
+
+#include "as_common.h"
+
+/* for UAS common structure and enums */
+#include "uas_common_enums.h"
+#include "uas_common_struct.h"
+
+/* for inter-core common structure and enum */
+#include "gas_gise_def.h"
+#include "gas_gise_enum.h"
+#include "gas_gise_struct.h"
+#include "uas_gas_inter_core_enum.h"
+#include "uas_gas_inter_core_struct.h"
+#include "gas_eas_inter_core_enum.h"
+#include "gas_eas_inter_core_struct.h"
+
+#ifdef GEN_FOR_PC
+//John 960724
+#endif
+
+#include "rrc_asn.h"
+#include "urr_common.h"
+//#ifdef __UMTS_FDD_MODE__
+#include "urr_enums.h"
+#include "urr_struct.h"
+//#endif
+
+/* for UAS internal interface */
+/* for URR/UL2D interface */
+#include "cbmc_enums.h"
+#include "cbmc_struct.h"
+#include "bmc_common.h"
+#include "cpdcp_enums.h"
+#include "cpdcp_struct.h"
+#include "ccsr_struct.h"
+#include "crabm_struct.h"
+#include "meme_umac_enums.h"
+#include "meme_umac_struct.h"
+#include "rrce_urlc_enums.h"
+#include "rrce_urlc_struct.h"
+#ifdef __CGEN_UMTS_FDD_MODE__
+#include "rrce_pdcp_struct.h"
+#endif
+#include "rrce_umac_struct.h"
+#include "rrce_bmc_struct.h"
+#include "rrce_drlc_struct.h"
+
+
+/* for URR/UL2 interface */
+#include "ul2_common_def.h"
+#include "crlc_enums.h"
+#include "crlc_struct.h"
+#include "cmac_enums.h"
+#include "capability.h"
+#include "cmac_struct.h"
+#include "umac_common_enums.h"
+#include "umac_context.h"
+
+/* for UL2/UL2D interface */
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "rlc_cid.h"
+#endif
+#include "csr_umac_enums.h"
+#include "csr_umac_struct.h"
+#include "csr_drlc_struct.h"
+#include "pdcp_drlc_struct.h"
+#include "rabm_pdcp_struct.h"
+#include "drlc_urlc_struct.h"
+#include "urlc_umac_enums.h"
+#include "urlc_umac_struct.h"
+#include "drlc_umac_struct.h"
+#include "pdcp_urlc_struct.h"
+#include "rlc_common.h"
+#include "l2l_comm.h"
+#include "ul2_common.h"
+#include "ciphering_common.h"
+#include "retransmission_buffer.h"
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "rlc_cid.h"
+#include "urlc_drv_enums.h"
+#include "urlc_drv_struct.h"
+#include "seq_common.h"
+#include "urlc_seq_struct.h"
+#include "umac_seq_struct.h"
+#include "cseq_struct.h"
+#include "bmc_urlc_struct.h"
+#endif
+/* for URR internal interface */
+#include "urr_acknowledge.h"
+#include "urr_slce_enums.h"
+#include "urr_slce_struct.h"
+#include "rrce_csce_enums.h"
+#include "rrce_csce_struct.h"
+#include "rrce_meme_enums.h"
+#include "rrce_meme_struct.h"
+#include "rrce_sibe_enums.h"
+#include "rrce_sibe_struct.h"
+#include "rrce_slce_enums.h"
+#include "rrce_slce_struct.h"
+#include "rrce_usime_struct.h"
+#include "csce_usime_struct.h"
+#include "seq_enums.h"
+#include "seq_struct.h"
+#include "csce_cse_enums.h"
+#include "cse_racache.h"
+#include "csce_cse_struct.h"
+#include "csce_meme_enums.h"
+#include "csce_meme_struct.h"
+#include "csce_sibe_enums.h"
+#include "csce_sibe_struct.h"
+#include "cse_slce_struct.h"
+#include "csce_slce_struct.h"
+#include "cse_meme_struct.h"
+#include "cse_sibe_enums.h"
+#include "cse_sibe_struct.h"
+#include "sibe_slce_enums.h"
+#include "sibe_slce_struct.h"
+#include "adr_drlc_enums.h"
+#include "adr_drlc_struct.h"
+#include "bmc_drlc_struct.h"
+#include "meme_sibe_enums.h"
+#include "meme_sibe_struct.h"
+#include "meme_slce_enums.h"
+#include "meme_slce_struct.h"
+#include "dbme_struct.h"
+#include "urr_signal_in.h"
+#include "nvram_data_items.h"
+//#ifdef __UMTS_FDD_MODE__
+#include "sibe_enums.h"
+#include "sibe_struct.h"
+#include "usime_struct.h"
+//#endif
+
+/* discuss with SIM owner, UAS add sim header file when requirement.*/
+#if defined(UNIT_TEST) && defined(__UMTS_TDD128_MODE__)
+#endif
+
+/* for RATCM/UAS interface */
+#include "usim_data.h"
+#include "ratcm_csce_enums.h"
+#include "ratcm_csce_struct.h"
+#include "cs_types.h"
+#include "ratcm_csr_struct.h"
+#include "ratdm_rabm_struct.h"
+
+/* for EAS interface */
+
+/* for UAS/GAS interface */
+#include "uas_gas_enums.h"
+#include "uas_gas_struct.h"
+
+
+#ifdef __GEMINI__
+/* for GAS/UL2 interface */
+#include "gas_ul2_gemini_struct.h"
+#include "gas_ul2d_gemini_struct.h"
+#endif /* __GEMINI__ */
+
+/*Vito: for CSR UT */
+#include "rab.h"
+#include "csr_fsm.h"
+
+/* Jeff Wu 2006-02-13: For RABM/PDCP UT */
+#include "as_common.h"
+#include "cpdcp.h"
+#include "pdcp.h"
+#include "ps_data.h"
+#include "bigend.h"
+#include "pdcp_context.h"
+#include "rabm_fsm.h"
+#include "rabm_context.h"
+#include "rabm_timer.h"
+
+/* Evan Chen 2007-08-13: For MM UT */
+
+
+/* Gibran Chang 2006/03/23: For CSCE */
+#include "csce_fsm.h"
+#include "csce_context.h"
+
+/* Nicky Chou 2014/08/25: For LCSCE */
+#include "lcsce_context.h"
+#include "lcsce.h"
+#include "lcsce_struct.h"
+#include "lcsce_enum.h"
+#include "csce_lcsce_struct.h"
+#include "csce_lcsce_enum.h"
+#include "csce_meme_inter_core_struct.h"
+#include "csce_meme_inter_core_enum.h"
+
+/* For LMEME */
+#include "lmeme.h"
+#include "lmeme_context.h"
+#include "lmeme_struct.h"
+#include "lmeme_enum.h"
+#include "meme_lmeme_struct.h"
+#include "meme_lmeme_enum.h"
+
+/*For LRRCE*/
+#if defined(__CGEN_UMTS_TDD128_MODE__)
+#include "lrrce.h"
+#include "lrrce_lurlc_struct.h"
+#include "rrce_lrrce_enum.h"
+#include "rrce_lrrce_struct.h"
+#endif
+
+/* Dennis Weng 2010/08/09: For SIBE */
+#include "sibe_fsm.h"
+/* YenChih Yang 2012/04/18: For USIME */
+#include "usime_context.h"
+
+/* For MEME */
+/* For TDD please modify the code wrapped by __UMTS_TDD128_MODE__ */
+/* For TDD please modify the code wrapped by __UMTS_FDD_MODE__ */
+#ifdef __GEMINI__
+#endif
+
+#if defined(__CGEN_UMTS_TDD128_MODE__)
+#include "meme_fsm.h"
+#include "memetypes.h"
+#include "meme_def.h"
+#include "rrc_meme_utilities.h"
+#include "rrc_meme_timing.h"
+#include "meme_context.h"
+#include "rrc_protocol_timing.h"
+#endif
+
+#if defined(__CGEN_UMTS_FDD_MODE__) /* defined(__UMTS_FDD_MODE__) */
+#include "meme_fsm.h"
+#include "meme_def.h"
+#include "rrc_meme_utilities.h"
+#include "meme_context.h"
+#include "rrc_meme_phys_layer.h"
+#endif
+
+/* MH Change 2006/04/18: For RRCE */
+#include "rrci_fsm.h"
+#include "rrcn_fsm.h"
+#include "rrce_context.h"
+#include "rrc_fsm_tmr_utils.h"
+#include "rrce_fsm.h"
+
+/* John Tang 2005/11/08: For DB Unit-test tool */
+#ifdef GEN_FOR_PC
+
+#define __int64
+#define __cdecl
+#include "db_schema.h"
+#include "./fdd/db_dump_api_fdd.h"
+#ifdef __UMTS_TDD128_MODE__
+#include "./tdd/db_dump_api_tdd.h"
+#endif
+#endif //#ifndef __L1_STANDALONE__
+
+
+#include "rrc_db_all_struct.h"
+
+
+/* Alfie: 2006-0422 For SLCE Trace Info Start */
+#ifndef __size_t
+#define __size_t 1
+typedef unsigned int size_t; /* used for dbme.h */
+#endif
+
+#include "uas_common_enums.h"
+#include "db_access.h"
+#ifdef __CGEN_UMTS_FDD_MODE__ /* __UMTS_FDD_MODE__ */
+#include "dbme_context.h"
+#endif
+#include "crlc_enums.h"
+#include "crlc_struct.h"
+#include "rrce_slce_enums.h"
+#include "seq_enums.h"
+#include "seq_struct.h"
+#include "slce_context.h"
+#include "slce_fsm.h"
+/* Alfie: 2006-0422 For SLCE Trace Info End */
+
+
+/*Christine 2006/05/02*/
+#include "transaction.h"
+#include "rrcc_fsm.h"
+
+#endif
+//Matt 2007/11/30 for VT feature
+/*
+#ifdef __VIDEO_CALL_SUPPORT__
+#include "vt_med_enum.h"
+#include "vt_med_struct.h"
+#include "vt_mmi_struct.h"
+#include "..\..\..\3g324m\interface\inc\vt_tst_enum.h"
+#include "..\..\..\3g324m\appl\inc\vt_ut_struct.h"
+#include "csm2vt_struct.h"
+#endif
+*/
+
+#endif /* __UMTS_RAT__ */
+#ifdef __L1_STANDALONE__
+#ifdef __MOD_NVRAM__
+#include "nvram_data_items.h"
+
+#if defined(__MMI_FMI__)
+#include "nvram_common_defs.h"
+#include "common_nvram_editor_data_item.h"
+#endif
+
+#include "nvram_editor_data_item.h"
+#endif /*__MOD_NVRAM__*/
+#endif
+/**************************************************************************
+ * WCDMA INTERFACE ENDS
+ **************************************************************************/
+
+#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
+#ifdef __AGPS_SUPPORT__
+#endif /* __AGPS_SUPPORT__ */
+#endif
+
+
+#ifdef __RRLP_SUPPORT__
+#endif /* __RRLP_SUPPORT__ */
+
+#ifdef __AGPS_SUPPORT__
+
+#if defined(__UAGPS_CP_SUPPORT__)
+#include "uagps_cp_csce_struct.h"
+#endif /* __UAGPS_CP_SUPPORT__ */
+
+#endif /* __AGPS_SUPPORT__ */
+
+//#if defined(__AGNSS_SUPPORT__)
+//#endif /* #if defined(__AGNSS_SUPPORT__) */
+
+/* for LPP*/
+#if defined(__LTE_RAT__) && defined(__LPP_SUPPORT__)
+/* LPPe */
+#if defined(__LPP_EXT_SUPPORT__)
+#endif
+#endif
+
+//#ifdef __ACMT_SUPPORT__
+//#endif
+
+/*For UL1A*/
+#if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__)
+#endif
+
+#if defined (__WMT_SUPPORT__) || defined(__WIFI_BT_SINGLE_ANTENNA_SUPPORT__)
+#include "wmt_struct.h"
+#endif /* __WMT_SUPPORT__*/
+
+#ifdef __GADGET_SUPPORT__
+#include "widget_adp_struct.h"
+#endif /* __GADGET_SUPPORT__ */
+
+#if defined(__RMMI_UT__)
+#include "l3_inc_struct.h"
+#include "tcm_common_enums.h"
+#include "tcm_common.h"
+#include "tcm_timer.h"
+#endif
+
+
+#ifndef __MTK_TARGET__
+#include "ciss_context.h"
+#include "l4c_ps_c2k.h"
+#endif
+
+#if defined(__L4C_GPRS_UT__)
+#endif
+
+#ifndef __L1_STANDALONE__
+#endif
+#ifdef __VIDEO_ARCHI_V2__
+#endif /* __VIDEO_ARCHI_V2__ */
+
+/* mpl & source*/
+
+#if defined(__L1_GPS_REF_TIME_SUPPORT__) || defined(__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)
+#endif /*(__L1_GPS_REF_TIME_SUPPORT__) || (__L1_GPS_AUTO_TIMING_SYNC_SUPPORT__)*/
+
+#if defined (__MOD_NVRAM__)
+#include "nvram_editor_data_item.h"
+#endif
+/* mtk04121 */
+
+/* SIM CODEGEN begin */
+#ifndef SIM_NOT_PRESENT
+#endif
+/* SIM CODEGEN end */
+
+/* EVAL CODEGEN begin */
+#ifdef __EVAL_ENABLE__
+#endif
+/* EVAL CODEGEN end */
+
+//etc interface
+
+/* TFTLIB CODEGEN */
+
+/* mtk00938: Multimode interfaces */
+#ifdef __LTE_RAT__
+#endif
+
+/* mtk00938: This file is necessary even without LTE */
+#include "irat_common_struct.h"
+
+/* MOD_PAM */
+#ifdef __PS_SERVICE__
+#endif /* __PS_SERVICE__ */
+
+/* UTT/LTT/GTEST */
+#ifdef __GTEST_ENABLE__
+// #include "ltt_msgid.h"
+#include "utt_msgid.h"
+#include "utt_msg_struct.h"
+#include "utt_main_cfg_includes.h"
+#endif /* __GTEST_ENABLE__ */
+
+#if 0
+#if defined (__EL1_ENABLE__) && !defined(__UE_SIMULATOR__)
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#if defined(__LTE_RAT__) && defined(__L1EDPS_ENABLE__)
+/* under construction !*/
+/* under construction !*/
+#endif /* __LTE_RAT__ */
+#if defined(__MTK_TARGET__) && !defined(__L1EDPS_ENABLE__)
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif /* __MTK_TARGET__ */
+#endif /* __EL1_ENABLE__ */
+#endif
+
+#if (defined (__IDC_ENABLED__) || defined(__HQA_IDC_ENABLED__))
+#if (CUR_GEN <= MD_GEN95)
+#include "el1_ipc_str.h"
+#include "el1_idc.h"
+#endif
+#endif
+#if defined(__EL2_ENABLE__) || defined(__L1EDPS_ENABLE__)
+#endif
+
+
+#if 0
+#if defined(__EL2_ENABLE__) || defined(__L1EDPS_ENABLE__)
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+#endif
+
+/* global enum */
+/***************************************************************
+* if add _msgid.h or _sap.h file, should include the _msgid.h or _sap.h in : *
+* kal_debug_msg_sap_defs.h & libParseDbModem.c & srcParseDbModem.c *
+****************************************************************/
+#include "urr_msgid.h"
+#include "ul2_msgid.h"
+#include "ul2d_msgid.h"
+
+
+#if defined(__GSM_RAT__) || defined(__UMTS_RAT__) // BJM
+#include "l1_dm.h"
+#ifdef __MTK_UL1_FDD__
+#endif /* __MTK_UL1_FDD__ */
+#endif /* defined(__GSM_RAT__) || defined(__UMTS_RAT__) */
+
+//mtk04121
+#if defined(__ETCM__)
+
+
+#endif
+
+
+#include "uas_data_common.h"
+
+/* for RAC/GAS interface */
+
+#if defined(__IMS_SUPPORT__)
+/* VDM */
+
+/* SDM */
+
+/* IMSP */
+
+/* IMC */
+
+/* IMCSMS */
+
+/* IWLAN */
+
+
+#endif /* defined(__IMS_SUPPORT__) */
+
+/* CCCI IPC */
+#if defined(__CCCIDEV_SUPPORT__)
+#endif /*defined(__CCCIDEV_SUPPORT__)*/
+
+/* CCISM */
+#if defined(__HIF_CCISM_SUPPORT__)
+#endif /*defined(__HIF_CCISM_SUPPORT__)*/
+
+
+#ifdef __IPCORE_SUPPORT__
+#endif /* __IPCORE_SUPPORT__ */
+
+#if defined(__HLT_SUPPORT__)
+#endif
+#include "mml1_meta_if.h"
+#include "ft_msg.h"
+
+#ifdef __MTK_MD_DIRECT_USB_SUPPORT__
+#include "ufpm_em_struct.h"
+#endif
+
+
+
+#ifdef __EL1_ENABLE__
+#endif
+
+#ifdef __MD_TCPIP_SUPPORT__
+#ifdef __NAL_TEST__
+#include "nal_tp_struct.h"
+#endif
+#endif
+
+/* L4B Begin */
+#include "l4b_msgid.h"
+#ifndef __MTK_TARGET__
+//for l4b.gv
+#include "l4b_context.h"
+#include "l4bpwr_context.h"
+#include "l4bnw_context.h"
+#include "l4bsim_context.h"
+#include "l4bsms_context.h"
+#include "l4bsbp_context.h"
+#endif
+/* L4B End */
+
+
+
+
+
+
+
+
+
+
+
+#ifdef __CDMA2000_RAT__
+#include "cphevdoflbrp.h"
+#undef register
+#define register
+#include "PPP.H"
+#include "evl1shtimingloop.h"
+#include "cph1xflrake.h"
+
+/* Add C2K EM headers */
+
+#undef register
+#endif /* __CDMA2000_RAT__ */
+
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to libParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => libParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => libParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in libParseDbModem_tdd_fdd.c
+* 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
+********************************************** Warning **********************************************/
diff --git a/mcu/service/dhl/database/msglog_db/srcParseDbModem.c b/mcu/service/dhl/database/msglog_db/srcParseDbModem.c
new file mode 100644
index 0000000..f17c6eb
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/srcParseDbModem.c
@@ -0,0 +1,994 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * srcParseDbModem.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects primitve IDs and struct definition from the Modem
+ * part for pre-processing.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ * 11 16 2020 shih-yu.chen
+ * [MOLY00595245] [Colgin] TMC development
+ * [TMC] patch back to MD700.
+ *
+ * 09 18 2020 tingwen.chen
+ * [MOLY00569501] [Gen97] TC10 patch back
+ * - Porting : 11422244 (smu_handler.c) / 11420054 (smu_handler.c) / 12120489 (smu_hander.c)
+ * - Porting : srcParseDbModem.c, IPCA part
+ *
+ * 09 18 2020 guanglong.wu
+ * [MOLY00554348] [Colgin] cell measure and white cell lock feature development
+ *
+ * [white cell list] From MP7.PreCheckin branch sync CL 12992971 to R3.MP
+ *
+ * 07 17 2020 can.lin
+ * [MOLY00520469] [5G] Add MISC (0x0A) / LTE fallback Message (0x62).
+ * Enhance ENDC control for NR15.R3.MP (MPD)
+ *
+ * 02 14 2020 actory.ou
+ * [MOLY00499908] [MT6873][Margaux][Q0][MP2][SQC][Log profiling]LTE VoLTE PS Standard filter - W06 target fail - MOD_CCISMCORE
+ * [VMOLY][MPD] add ccci enum for log reduction
+ *
+ * 12 09 2019 tingwen.chen
+ * [MOLY00464446] [VZW] Remote SIM Lock modem part (MPD)
+ * - Verizon RSU
+ * - Align all operator locks in l4c_sim_cmd
+ * - Code revise
+ *
+ * 12 09 2019 jun-jie.su
+ * [MOLY00395217] [Gen97] TMC development
+ * add tmc header file.
+ *
+ * 12 09 2019 jun-jie.su
+ * [MOLY00395217] [Gen97] TMC development
+ * add TX pwr struct reference.
+ *
+ * 12 06 2019 can.lin
+ * [MOLY00463601] [Gen97] Modify SASE module
+ *
+ * SASE DHL Definition
+ *
+ * 12 02 2019 jun-han.lin
+ * [MOLY00462166] MDFPM support feature option on/off
+ *
+ * MDFPM feature option on/off
+ *
+ * 11 08 2019 ya.li
+ * [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'
+ *
+ * .
+ *
+ * 10 27 2019 ian-yw.chen
+ * [MOLY00452386] [Rose][Petrus][Q0]Failed to read NVRAM_EF_MTF_DMF_MISC_STATISTICS_LID record pop up during test.(5/5)
+ * .
+ *
+ * 09 24 2019 howen.pu
+ * [MOLY00440880] EM info with XCAP information
+ * XCAP - VMOLY Common.
+ *
+ * 09 23 2019 louis-tw.huang
+ * [MOLY00439533] [Gen97][IDC] IDC feature development [EWSP0000046233]
+ *
+ * 09 09 2019 yu-hsiang.peng
+ * [MOLY00402569] [VMOLY] Logging Related Feature Patch
+ * [TRUNK] MPD, custom cmd + sap reboot
+ * 2019.09.09
+ *
+ * 09 06 2019 amit.singh
+ * [MOLY00433282] VMOLY KPALV module check-in
+ *
+ * VMOLY Latest patch MPD C.
+ *
+ * 08 26 2019 chen-wei.lan
+ * [MOLY00433041] [Gen97][EPSFB] IT related issues
+ * uac
+ *
+ * 08 08 2019 mika.kaikkonen
+ * [MOLY00397648] [Submarine] Modem Certificate module
+ *
+ * Cert definitions to libParseDbModem.c and srcParseDbModem.c.
+ *
+ * 07 29 2019 peter.yu
+ * [MOLY00425848] [MT6297][Apollo][MP1][SQC][EM][China][Shenzhen][FDD][4GMM][CU+NA][TCID:EM_EL2_001]the active of SRB1 display KAL_FALSE,not KAL_TRUE.
+ * Correct EM structure header files for database.
+ *
+ * 07 18 2019 jun-quan.chen
+ * [MOLY00422579] [MDDP] DPFM porting to VMOLY
+ * [MPD] DPFM patch back
+ *
+ * 07 12 2019 deepti.singh
+ * [MOLY00397188] [Submarine]HTTP dev
+ * HTTP VMOLY PB
+ *
+ * 07 09 2019 amit.singh
+ * [MOLY00420334] Dispatcher module check-in VMOLY [SUBMARINE]
+ *
+ * Dispatcher code check-in
+ *
+ * 04 24 2019 ian-yw.chen
+ * [MOLY00401131] [Gen97] porting from 95
+ *
+ * [porting from UMOLYE][to_20181230]
+ * other part
+ * (MPD)
+ *
+ * 04 12 2019 head.hsu
+ * [MOLY00398433] [Gen97][VMOLY] Protocol Assert Remove phase 1
+ * PERF (Protocol Exception Recovery Framework) create
+ *
+ * 03 28 2019 mingchuang.qiao
+ * [MOLY00394747] [Gen97][DPMAIF] Reduce log
+ * Reduce DPMAIF Log Throughput.
+ *
+ * 03 26 2019 max.mo
+ * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature.Max
+ *
+ * 03 26 2019 max.mo
+ * [MOLY00393456] [Gen97][VMOLY] 45G InterRAT & interSystem feature.Max
+ *
+ * 03 15 2019 bo-hun.chen
+ * [MOLY00378534] [Mcddll] VGSM/VGMM part - subsidiary(ADZ) build error.
+ *
+ * 03 13 2019 bo-hun.chen
+ * [MOLY00378534] [Mcddll] VGSM/VGMM part
+ *
+ * [MOLY00378534] [VGSM] mcddll
+ *
+ * 02 27 2019 yuri.huang
+ * [MOLY00377335] [MakeFile] [UMOLYE] [Modify Makefile Rules] MPD SUB flow for 2g/3g
+ *
+ * .
+ *
+ * 02 12 2019 head.hsu
+ * [MOLY00383920] [New Task] PERF (Protocol Exception Framework) task create
+ * rollback
+ *
+ * 01 28 2019 jun-quan.chen
+ * [MOLY00381488] [Gen97] [MCF] MCF porting to VMOLY
+ * [MCF] [MPD] MCF porting to VMOLY
+ *
+ * 01 21 2019 devin.yang
+ * [MOLY00378746] [System Service] [KAL Config] ISR Centraliztion Framework.
+ * ISR Centralization Framework.
+ *
+ * 01 02 2019 jocobrian.chang
+ * [MOLY00327370] [Gen97]MML1 framework development.
+ * Remove unused code.
+ * ERS00026161.
+ *
+ * 12 20 2018 yu-hsiang.peng
+ * [MOLY00372896] [Gen97] sAP logging support
+ * [VMOLY.EVB.SEPT] sAP support - DB part
+ *
+ * 10 12 2018 mt.tsai
+ * [MOLY00357585] [Gen95][WIPC] WIPC Module removal
+ * [MD95] WIPC module removal
+ *
+ * 10 12 2018 jocobrian.chang
+ * [MOLY00313049] [Gen97]NL1 LCM development. ERS00017231.
+ *
+ * 08 29 2018 shen-pin.lin
+ * [MOLY00348913] [MT6297][L4][PS]+E5GOPT for 5G
+ *
+ * E5GOPT merge from UMOLYE
+ *
+ * 08 29 2018 shen-pin.lin
+ * [MOLY00348913] [MT6297][L4][PS]+E5GOPT for 5G
+ *
+ * E5GOPT merge from UMOLYE
+ *
+ * 08 29 2018 shen-pin.lin
+ * [MOLY00348913] [MT6297][L4][PS]+E5GOPT for 5G
+ *
+ * E5GOPT merge from UMOLYE
+ *
+ * 08 23 2018 yu-hsiang.peng
+ * [MOLY00343261] [MT6297] [Logging Service] DHL 2.0 Landing
+ * [DHL2.0] Port to VMOLY (dhl mak & DB)
+ *
+ * 08 20 2018 yingfui.hung
+ * [MOLY00346992] [Gen97][RAC] RAC revise and vgRAC implementation
+ * CL6151862 - 6171771
+ *
+ * 08 17 2018 kuan-wei.chen
+ * [MOLY00346647] [MT6297][VDM/L4] changes for 97
+ * [VMOLY] vdm related others
+ *
+ * 08 17 2018 james-chi-ju.chang
+ * [MOLY00306148] [NAS] pangu giant CR
+ * interface
+ *
+ * 07 30 2018 chi-chun.lu
+ * [MOLY00342741] [MakeFile] [UMOLYE] [Modify Makefile Rules] enhance build flow for cgen tdd/fdd preprocessing files
+ *
+ * .
+ *
+ *******************************************************************************/
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to srcParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => srcParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => srcParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in srcParseDbModem_tdd_fdd.c
+* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to srcParseDbModem.c
+********************************************** Warning **********************************************/
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+//"ps\\tools\\asn1lib\\include\\act-ttbuffmgr.h"
+#undef STDC_HEADERS //it will include stdio.h
+
+#ifdef __RVCT__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+
+#define _ARMABI
+
+#endif
+#include "L1Trc.h"
+
+#include "kal_public_api.h"
+#include "kal_public_defs.h" //MSBB change #include "stack_msgs.h"
+#include "sap_info.h"
+#include "msg_id_to_em_info_map.h"
+
+#include "kal_trace.h"
+#include "stack_ltlcom.h"
+#include "stacklib.h" /* Basic type for dll, evshed, stacktimer */
+#include "stack_timer.h"
+#include "event_shed.h"
+
+#include "intrCtrl.h"
+
+#if defined (__DHL_V2_ENABLE__)
+//reserve for dhl2.0
+#include "GV.h"
+#include "dhl_def.h"
+#else
+#include "GV.h"
+#include "dhl_def.h"
+#include "dhl_notify.h"
+#endif
+
+#include "custom_cmd.h"
+
+#include "protocol_section.h"
+
+#if defined(GEN_FOR_PC)
+//#include "tst_Catcher_version.h"
+#endif //#if defined(GEN_FOR_PC)
+
+#ifndef L4_NOT_PRESENT
+#include "l4c2uem_struct.h"
+#include "l4c2smu_struct.h"
+#include "l4c2smu_vzw_struct.h"
+#include "l4c2csm_cc_struct.h"
+#include "l4c2smsal_struct.h"
+#endif
+
+#ifdef __MOD_NVRAM__
+#include "nvram_data_items.h"
+#include "ex_item.h"
+
+#if defined(__MMI_FMI__)
+#include "nvram_common_defs.h"
+#include "common_nvram_editor_data_item.h"
+#endif
+
+#include "nvram_editor_data_item.h"
+#include "nvram_editor.h"
+#include "nvram_lid_list_for_mcf.h"
+#include "nvram_lid_structure_check_extend_list.h"
+#endif /*__MOD_NVRAM__*/
+
+#include "perf_api.h" /// protocol exception recovery framework API
+
+#ifdef __EM_MODE__
+#include "em_l4_common_public_struct.h"
+#include "em_as_common_public_struct.h"
+#include "em_nwsel_common_public_struct.h"
+#include "em_struct.h"
+/* Start of EM related structure */
+#include "em_audio_public_struct.h"
+#include "em_cc_public_struct.h"
+#include "em_dhl_public_struct.h"
+#include "em_el1_public_struct.h"
+#ifdef __EL2_ARCH_V1__
+#include "em_el2_public_struct.h"
+#endif
+#ifdef __EL2_ARCH_V2__
+#include "em_enl2_public_struct.h"
+#endif
+#include "em_emm_public_struct.h"
+#include "em_errc_public_struct.h"
+#include "em_esm_public_struct.h"
+#include "em_gas_public_struct.h"
+#include "em_imc_public_struct.h"
+#include "em_l1_public_struct.h"
+#include "em_l4_public_struct.h"
+#include "em_llc_public_struct.h"
+#include "em_ltecsr_public_struct.h"
+#include "em_mcf_public_struct.h"
+#include "em_mm_public_struct.h"
+#include "em_mmrf_public_struct.h"
+#include "em_nwsel_public_struct.h"
+#include "em_public_struct.h"
+#include "em_ratcm_public_struct.h"
+#include "em_sim_public_struct.h"
+#include "em_sm_public_struct.h"
+#include "em_sndcp_public_struct.h"
+#include "em_ss_public_struct.h"
+#include "em_uas_public_struct.h"
+#include "em_ul1_public_struct.h"
+#include "em_ul2_public_struct.h"
+#include "em_vdm_public_struct.h"
+#include "em_sms_public_struct.h"
+#include "em_imcsms_public_struct.h"
+#include "em_xcap_public_struct.h"
+/* End of EM related structure */
+#endif /* __EM_MODE__ */
+
+
+
+#ifndef ABM_NOT_PRESENT
+#include "abm_soc_enums.h"
+#include "abm2soc_struct.h"
+#include "app2cbm_struct.h"
+#include "wndrv_cnst.h"
+#include "wndrv_supc_types.h"
+#include "wndrv_api.h"
+#include "supc_abm_msgs.h"
+#include "mmi2abm_struct.h"
+#include "soc2abm_struct.h"
+
+#if defined(__MMI_FMI__)
+#endif
+
+#include "l4c2abm_struct.h"
+/* Jeff Wu 2008-02-20: for streaming and secondary PDP context */
+#include "mmi_sm_enums.h"
+/* End of Jeff Wu */
+#include "abm2l4c_struct.h"
+#include "l4c2ppp_struct.h"
+#include "ppp2l4c_struct.h"
+#include "abm_def.h"
+#endif /* ~ABM_NOT_PRESENT */
+
+
+
+#ifndef MED_NOT_PRESENT
+#include "aud_defs.h"
+#include "med_struct.h"
+#endif /* MED_NOT_PRESENT */
+
+#ifndef MED_V_NOT_PRESENT
+#include "med_global.h"
+#endif /* MED_V_NOT_PRESENT */
+#if defined(__VIDEO_ARCHI_V2__)
+#endif
+#ifndef TCPIP_NOT_PRESENT
+#include "soc_api.h"
+#include "soc2tcpip_struct.h"
+#include "tcpip2ppp_struct.h"
+#include "ppp2tcpip_struct.h"
+#endif
+
+#ifdef __HOTSPOT_SUPPORT__
+#include "hostap_abm_msgs.h"
+#endif
+
+#ifndef SOC_NOT_PRESENT
+#include "inet_ut_struct.h"
+#include "..\..\..\inet_ps\soc\include\soc_feature.h"
+#include "soc_api.h"
+#include "app2soc_struct.h"
+#include "soc2tcpip_struct.h"
+#include "abm_soc_enums.h"
+#include "abm2soc_struct.h"
+#include "soc2abm_struct.h"
+#include "soc_enum.h"
+#endif
+
+#ifdef __J2ME__
+#include ".\..\..\applib\misc\include\app_datetime.h"
+#endif
+
+#ifdef __EMAIL__
+#include "rtc_sw.h"
+#ifdef __SSL_SUPPORT__
+#endif /* __SSL_SUPPORT__ */
+#include "che_api.h"
+
+
+#endif /* __EMAIL__ */
+
+#ifdef __IMPS__
+#include "fs_type.h"
+#include "fat_fs.h"
+#endif /* __IMPS__ */
+
+#ifdef WAP_SUPPORT
+#include "custom_wap_config.h"
+#endif
+#ifdef MMS_SUPPORT
+#endif
+#include "resource_audio.h"
+
+#if defined (__MTV_SUPPORT__) || defined(__ATV_SUPPORT__)
+#endif
+#if defined (__CMMB_SUPPORT__)
+#include ".\..\..\plutommi\MtkApp\DTVPlayer\DTVPlayerInc\DTVPlayerEnum.h"
+#endif
+
+
+#ifdef NEPTUNE_MMI
+#ifndef __L1_STANDALONE__
+#endif /* __L1_STANDALONE__ */
+#endif
+
+#ifdef __XDM__
+#include "fs_type.h"
+#include "fat_fs.h"
+#endif /* __XDM__ */
+
+#ifdef __RTSP__
+#include "app2rtsp_struct.h"
+#endif /* __RTSP__ */
+
+/* for BMT */
+#include "drvsignals.h"
+/* for BMT */
+
+#ifdef __SIP__
+#include "inet_msg_def.h"
+#endif /* __SIP__ */
+
+#ifdef __POC__
+#include "mmi2poc_struct.h"
+#include "poc_enum.h"
+#endif /* __POC__ */
+
+#ifdef __BTMTK__
+#include "bluetooth_bm_struct.h"
+#include "bluetooth_struct.h"
+#include "bt_dm_struct.h"
+#include "bt_hfg_struct.h"
+#include "bt_hsg_struct.h"
+#include "bt_hidd_struct.h"
+#include "bt_a2dp_base_struct.h"
+#endif
+
+#ifdef __SYNCML_SUPPORT__
+#endif
+
+#include "mexe_struct.h"
+
+#ifdef __VOIP__
+#endif /* __VOIP__ */
+
+#ifdef __TCPIP__
+#include "..\..\..\inet_ps\tcpip\include\tcpip_config.h"
+#include "..\..\..\inet_ps\tcpip\include\in.h"
+#include "..\..\..\inet_ps\tcpip\include\ip.h"
+#include "..\..\..\inet_ps\tcpip\include\tcp.h"
+#include "..\..\..\inet_ps\tcpip\include\if.h"
+#ifdef __WIFI_SUPPORT__
+#include "wndrv_cnst.h"
+#include "wndrv_tcpip_msg.h"
+#endif /* __WIFI_SUPPORT__ */
+#endif /* __TCPIP__ */
+
+
+#ifdef __WIFI_SUPPORT__
+#include "..\..\..\inet_ps\dhcp\include\dhcp_const.h"
+#include "..\..\..\inet_ps\dhcp\include\dhcp_enum.h"
+#include "..\..\..\inet_ps\dhcp\include\dhcp_context.h"
+#include "dhcp_abm_enums.h"
+#include "dhcp_sip_enums.h"
+#include "dhcp2abm_struct.h"
+#include "dhcp2sip_struct.h"
+#include "tcpip2dhcp_struct.h"
+#endif /* __WIFI_SUPPORT__ */
+#ifdef __HOTSPOT_SUPPORT__
+#include "dhcpd2abm_struct.h"
+#endif /* __HOTSPOT_SUPPORT__ */
+
+#ifdef __SAF__
+#endif /* __SAF__ */
+
+#ifdef NEPTUNE_MMI
+#include ".\..\..\interface\modem\mmi_msg_struct.h"
+#endif
+
+#ifdef __SSL_SUPPORT__
+#endif /* __SSL_SUPPORT__ */
+
+#if defined(__GPS_SUPPORT__) || defined(__BT_GPS_SUPPORT__)
+#include "gps_struct.h"
+#endif
+
+#ifdef __CERTMAN_SUPPORT__
+#endif
+
+#if defined __SUPL_SUPPORT__
+#include "supl2lcsp_enums.h"
+#include "supl2lcsp_struct.h"
+#endif
+
+#ifndef FMT_NOT_PRESENT
+#endif
+
+#if defined(__UDX_SUPPORT__) || defined(__MULTI_VCARD_SUPPORT__)
+#endif
+
+#ifdef WAP_SUPPORT
+#endif /* WAP_SUPPORT */
+
+#ifdef __CCA_SUPPORT__
+#endif /* __CCA_SUPPORT__ */
+
+#ifdef __MTP_ENABLE__
+#endif
+
+#ifndef __MTK_TARGET__
+#include "rmmi_context.h"
+#endif
+
+#if defined(OPERA_V10_BROWSER) || defined(__GADGET_SUPPORT__)
+#endif
+
+#if defined (__MMI_IMAGE_VIEWER__) && !defined (NEPTUNE_MMI)
+#endif /* __MMI_IMAGE_VIEWER__ */
+
+#ifdef __CMMB_CAS_MBBMS_SUPPORT__
+#endif
+
+#if defined(__CMMB_SUPPORT__)
+#endif
+#if defined(__H264_HW_OPEN_API_SUPPORT__) || defined(__H264_DEC_HW_SUPPORT__) || defined (__H264_SW_OPEN_API_SUPPORT__)
+#endif
+
+#if defined(DRV_DISPLAY_DRIVER_V2)
+#include ".\..\..\interface\hal\display\wfc\wfc.h"
+#include ".\..\..\hal\display\debug\inc\lcd_catcher_log.h"
+#include ".\..\..\interface\hal\display\common\display_io.h"
+#include ".\..\..\hal\display\common\include\display_io_internal.h"
+#endif
+
+#include "fs_gprot.h"
+
+#ifdef __PLST_SERVICE_DB_SUPPORT__
+#include "..\..\..\plutommi\Service\PlstSrv\PlstSrvMsgStruct.h"
+#endif
+
+#include "mspm_public_api.h"
+
+/* global enum */
+/***************************************************************
+* if add _msgid.h or _sap.h file, should include the _msgid.h or _sap.h in : *
+* kal_debug_msg_sap_defs.h & srcParseDbModem.c & srcParseDbModem.c *
+****************************************************************/
+#include "module_msg_range.h"
+#include "perf_msgid.h"
+#include "sysservice_msgid.h"
+#include "cc_msgid.h"
+#include "ciss_msgid.h"
+#include "nwsel_msgid.h"
+#include "gmss_msgid.h"
+#include "mm_msgid.h"
+#include "sms_msgid.h"
+#include "sim_public_msgid.h"
+#include "sim_ps_msgid.h"
+#include "ps_public_l4_msgid.h"
+#include "l4_msgid.h"
+#include "psdm_msgid.h"
+#include "rr_msgid.h"
+#include "llc_msgid.h"
+#include "p2p_msgid.h"
+#include "sndcp_msgid.h"
+#include "sm_msgid.h"
+#include "data_msgid.h"
+#include "ps_public_vt_msgid.h"
+#include "VT_msgid.h"
+#include "nvram_msgid.h"
+#include "l1_msgid.h"
+#include "mll1_msgid.h"
+#include "hal_l1_msgid.h"
+#include "l1hisr_msgid.h"
+#include "ft_msgid.h"
+#include "tst_msgid.h"
+#include "audio_msgid.h"
+#include "cldmacore_msgid.h"
+#include "ratcm_msgid.h"
+#include "ratdm_msgid.h"
+#include "urr_msgid.h"
+#include "ul2_msgid.h"
+#include "ul2d_msgid.h"
+#include "uas_gas_msgid.h"
+#include "mrs_msgid.h"
+#include "uas_gas_gemini_msgid.h"
+#include "ul1_msgid.h"
+#include "ul1data_msgid.h"
+#include "ul1hisr_msgid.h"
+#include "ul1c_msgid.h"
+#include "ll1_msgid.h"
+#include "ul1tst_msgid.h"
+#include "ulcs_msgid.h"
+#include "lpp_msgid.h"
+#include "gps_msgid.h"
+#include "tl1_msgid.h"
+#include "tl1data_ast_msgid.h"
+// #include "tl1hisr_ast_msgid.h" File Removed (Tafang)
+#include "tl1fta_ast_msgid.h"
+#include "rsva_msgid.h"
+#include "mspm_msgid.h"
+#include "ndis_msgid.h"
+#include "ps_public_ups_msgid.h"
+#include "ups_msgid.h"
+#include "ps_public_supl_msgid.h"
+#include "supl_msgid.h"
+#include "cmux_msgid.h"
+#include "ppp_msgid.h"
+#include "ext_modem_msgid.h"
+#include "wmt_msgid.h"
+#include "em_msgid.h"
+#include "fs_msgid.h"
+#include "med_msgid.h"
+#include "dps_msgid.h"
+#include "udps_msgid.h"
+#include "drv_msgid.h"
+#include "meut_msgid.h"
+#include "l1_ext_msgid.h"
+#include "haplus_msgid.h"
+#include "hif_mw_msgid.h"
+#include "hif_svc_msgid.h"
+#include "las_msgid.h"
+#include "el1_msgid.h"
+#include "mcf_msgid.h"
+#include "sap_relayer_msgid.h"
+
+#include "sap_range.h"
+#include "svc_sap.h"
+#include "md_sap.h"
+#include "md_svc_sap.h"
+#include "md_drv_sap.h"
+#include "md_mmi_sap.h"
+#include "md_mw_sap.h"
+#include "mw_sap.h"
+#include "drv_sap.h"
+
+#if defined (__IDC_ENABLED__) && defined (__MD97__)
+#include "idc_md_msgid.h"
+#include "idc_msgid.h"
+#endif
+
+#include "srv_modid.h"
+#include "modem_2g3g_modid.h"
+#include "modem_4g_modid.h"
+#include "modem_5g_modid.h"
+#include "middleware_modid.h"
+#include "drv_modid.h"
+#include "hisr_modid.h"
+#include "isr_modid.h"
+#if defined(__CL1_TASK_ENABLE__)
+#include "cl1d_rf_tst_elt_msg_struct.h"
+#include "elt_msgid.h"
+#endif
+#include "mbci_struct.h"
+
+#if defined (__ETCM__)
+#include "eval_msgid.h"
+#include "upcm_msgid.h"
+#endif
+
+#include "l4c_eval_struct.h"
+
+#include "mdfpm_msgid.h"
+
+/* CCCI IPC */
+#if defined(__CCCIDEV_SUPPORT__)
+#include "ccci_ipc_msgid.h"
+#endif
+/* CCCI IPC */
+#if defined(__CCCIDEV_SUPPORT__)
+#include "ccci_tty_if.h" //dump dev_id enum
+#include "ccci_fs_if.h" //dump op enum
+#include "dcl.h" //dump SIO_CMD enum
+#endif
+
+#if defined(__HIF_LHIF_SUPPORT__)
+#include "lhifcore_msgid.h"
+#endif
+
+/* CCISM */
+#if defined(__HIF_CCISM_SUPPORT__)
+#include "ccismcore_msgid.h"
+#endif /*defined(__HIF_CCISM_SUPPORT__)*/
+
+#ifdef __IPCORE_SUPPORT__
+#include "ipc_struct.h"
+#include "ipc_enums.h"
+#include "pfm_struct.h"
+#include "pfm_enums.h"
+#endif /* __IPCORE_SUPPORT__ */
+
+#ifdef __IPFCORE_SUPPORT__
+#include "ipfc_enums.h"
+#endif /* __IPFCORE_SUPPORT__ */
+
+#ifdef __DPFM_SUPPORT__
+#include "dpfm_enums.h"
+#include "dpfm_struct.h"
+#endif /* __DPFM_SUPPORT__ */
+
+#ifdef __TMC_SUPPORT__
+#include "tmc_struct.h"
+#include "tmc_enums.h"
+#include "tmc_l5_struct.h"
+#endif /* __TMC_SUPPORT__ */
+
+#if defined(__HLT_SUPPORT__)
+#include "hlt_if.h"
+#endif
+
+#ifdef __MTK_MD_DIRECT_USB_SUPPORT__
+#include "ufpm_em_struct.h"
+#endif
+
+#ifdef __BIP_SUPPORT__
+#include "bip_msgid.h"
+#include "bip_if.h"
+#endif
+
+#ifdef __MCF_SUPPORT__
+#include "mcf_struct.h"
+#include "mcf_enum.h"
+#endif
+
+#include "iwlan_msgid.h"
+
+#include "ssds_msgid.h"
+#include "atp_ssds_struct.h"
+//#include "ssds_imc_struct.h"
+#include "ssds_l4c_struct.h"
+
+#include "atp_analyzer.h"
+#include "atp_structs.h"
+#include "atp_msgid.h"
+#include "atp_l4c_struct.h"
+#include "l4c2rac_struct.h"
+
+#include "atp_defs.h"
+
+#ifdef __KPALV_SUPPORT__
+#include "kpalv_msgid.h"
+#include "kpalv_struct.h"
+#endif
+
+#ifdef __CDMA2000_RAT__
+/* Add C2K EM headers */
+#include "em_public_struct_evl1.h"
+#include "em_public_struct_xl1.h"
+#include "em_public_struct_chsc.h"
+#include "em_public_struct_evl2.h"
+#include "em_public_struct_xl2.h"
+#include "em_public_struct_evl3.h"
+#include "em_public_struct_xl3.h"
+#include "em_public_struct_c2k_hlp.h"
+#include "em_public_struct_cval.h"
+#endif /* __CDMA2000_RAT__ */
+
+#ifdef __MD_TCPIP_SUPPORT__
+#include "tcpip_msgid.h"
+#endif
+
+#include "vdm_l4c_struct.h"
+#include "sdm_l4c_struct.h"
+#include "vdm_gmss_struct.h"
+#ifdef __XCAP_SUPPORT__
+#include "xcap_msgid.h"
+#include "xcap_if.h"
+#endif
+
+#ifdef __SASE_SUPPORT__
+#include "sase_msgid.h"
+#include "sase_if.h"
+#include "atp_sase_struct.h"
+#endif
+
+#ifdef __NR_ENABLE__
+#include "tmc_l1_struct.h"
+#endif
+
+#ifdef __DISPATCHER_SUPPORT__
+#include "dispatcher_msgid.h"
+#include "ipcore_dispatcher_struct.h"
+#include "n3epc_dispatcher_struct.h"
+#endif
+
+#ifdef __MT_FRAMEWORK_SUPPORT__
+#include "mtf_struct.h"
+#endif
+
+#include "nas_sv_msgid.h"
+#include "smic_msgid.h"
+
+/* Move to lte_sec libParseDbModem.c */
+//#if defined(__FIVEG_NAS__)
+//For MCDDLL
+//#include "vgmm_msg_unpack.h"
+//#include "vgsm_msg_unpack.h"
+//#endif /* __FIVEG_NAS__ */
+
+/* Move to lte_sec libParseDbModem.c */
+// #if defined (__NR_RAT__)
+// #include "nr_fwk_trace_enum.h"
+// #include "nr_rx_trace_enum.h"
+// #include "nr_tx_trace_enum.h"
+// #include "mml1_fwk_lcm_public.h"
+// #endif /* __NR_RAT__ */
+
+#if defined(__HIF_DPMAIF_DP_SUPPORT__)
+#include "dpmaif_msgid.h"
+#endif
+
+#ifdef __HTTP_TLS_SUPPORT__
+#include "http_tls_msgid.h"
+#include "http_if.h"
+#include "tls_if.h"
+#endif
+
+#ifdef __MD_CERT_SUPPORT__
+#include "cert_msgid.h"
+#endif
+
+
+#ifdef __IPC_ADAPTER__
+#ifndef __MTK_TARGET__
+#include "oemdebug.h"
+#include "oemutility.h"
+#endif
+#include "ipc_adapter_public_struct.h"
+#include "ipc_adapter_public_def.h"
+#include "ipc_adapter_public_em_struct.h"
+#include "ipc_adapter_msgid.h"
+#include "ipc_adapter_cc_struct.h"
+#include "ipc_adapter_pwr_struct.h"
+#include "ipc_adapter_sms_struct.h"
+#include "ipc_adapter_atp_struct.h"
+#include "ipc_adapter_sat_struct.h"
+#include "ipc_adapter_phb_struct.h"
+#include "ipc_adapter_smu_struct.h"
+#include "ipc_adapter_ss_struct.h"
+#include "ipc_adapter_imei_struct.h"
+#include "ipc_adapter_cfg_struct.h"
+#include "ipc_adapter_embms_struct.h"
+#include "ipc_adapter_l23_struct.h"
+#include "ipc_adapter_domestic_struct.h"
+#include "ipc_adapter_jpn_struct.h"
+#include "ipca_smu_private_enum.h"
+#include "ipca_smu_context.h"
+#include "ipca_embms_context.h"
+#include "ipca_ctrl_struct.h"
+#include "ipca_phb_enum.h"
+#include "ipca_imei_enum.h"
+#include "ipca_pwr_enum.h"
+#include "ipca_pwr_context.h"
+#include "ipca_sms_hdlr.h"
+#include "ipc_adapter_nw_struct.h"
+#include "ipc_adapter_dspl_struct.h"
+#include "ipc_adapter_misc_struct.h"
+#include "ipca_nw_enum.h"
+#include "ipca_nw_context.h"
+#include "ipca_misc_enum.h"
+#include "ipc_adapter_enum.h"
+#include "ipc_adapter_gprs_struct.h"
+#include "ipca_ctrl_context.h"
+#include "ipca_factory_enum.h"
+#include "ipc_adapter_factory_struct.h"
+#include "ipc_adapter_sap_struct.h"
+#include "ipca_gprs_enum.h"
+#include "ipca_gprs_context.h"
+#include "ipca_gprs_ps.h"
+#include "ipca_gprs_ps_routine_struct.h"
+#include "ipc_adapter_em_struct.h"
+#include "ipca_sat_private_struct.h"
+#include "ipca_sat_private_enum.h"
+#include "ipca_cc_utility.h"
+#include "ipc_adapter_srlte_struct.h"
+#include "ipca_srlte_context.h"
+#include "ipca_em_struct.h"
+#include "ipca_jpn_private_struct.h"
+#include "ipca_jpn_private_defs.h"
+#include "ipca_domestic_main.h"
+#include "ipca_sap_enum.h"
+#include "ipca_sap_context.h"
+#endif //__IPC_ADAPTER__
+
+
+#ifdef __WHITE_CELL_LOCK__
+#ifdef __L5_SUPPORT__
+#include "l5_l4c_struct.h"
+#endif /* __L5_SUPPORT__*/
+#endif /* __WHITE_CELL_LOCK__ */
+
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to srcParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => srcParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => srcParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in srcParseDbModem_tdd_fdd.c
+* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to srcParseDbModem.c
+********************************************** Warning **********************************************/
diff --git a/mcu/service/dhl/database/msglog_db/srcParseDbModem_tdd_fdd.c b/mcu/service/dhl/database/msglog_db/srcParseDbModem_tdd_fdd.c
new file mode 100644
index 0000000..d1143fc
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/srcParseDbModem_tdd_fdd.c
@@ -0,0 +1,111 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * srcParseDbModem.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects primitve IDs and struct definition from the Modem
+ * part for pre-processing.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ *******************************************************************************/
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to srcParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => srcParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => srcParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in srcParseDbModem_tdd_fdd.c
+* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to srcParseDbModem.c
+********************************************** Warning **********************************************/
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+//"ps\\tools\\asn1lib\\include\\act-ttbuffmgr.h"
+#undef STDC_HEADERS //it will include stdio.h
+
+#ifdef __RVCT__
+#ifndef __int64
+ typedef long long __int64;
+#endif
+
+#define _ARMABI
+
+#endif
+
+/********************************************* Warning **********************************************
+* Please make sure header file is included correctly!
+* If the common header file is added to srcParseDbModem_tdd_fdd.c, the context of header file will be preprocessed twice.
+* The change as mentioned previously can lead to build time inefficiency.
+*
+* common header file => srcParseDbModem.c
+* Tdd/Fdd(2g/3g) header file => srcParseDbModem_tdd_fdd.c
+*
+* If the header file relate to Tdd/Fdd (2g/3g), please include the header file in srcParseDbModem_tdd_fdd.c
+* If the header file is common header file or is not related to Tdd/Fdd(2g/3g), please add the header file to srcParseDbModem.c
+********************************************** Warning **********************************************/
\ No newline at end of file
diff --git a/mcu/service/dhl/database/msglog_db/swParseDbModem.c b/mcu/service/dhl/database/msglog_db/swParseDbModem.c
new file mode 100644
index 0000000..bf3b882
--- /dev/null
+++ b/mcu/service/dhl/database/msglog_db/swParseDbModem.c
@@ -0,0 +1,106 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ *
+ * Filename:
+ * ---------
+ * custom_parse_db.c
+ *
+ * Project:
+ * --------
+ * MOLY
+ *
+ * Description:
+ * ------------
+ * This file collects the customer module/primitve information to be included
+ * in the database.
+ * The enum id for module type is "customer_module_type".
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ * =============================================================================
+ * $Log$
+ *
+ * 09 19 2019 yaoyong.ju
+ * [MOLY00441460] [VMOLY]Rebuild NVRAM file in SW RD dormain
+ * .
+ * Fix the build issue that LID info will not be updated on SW RD dormain
+ *
+ * 07 30 2018 chi-chun.lu
+ * [MOLY00342741] [MakeFile] [UMOLYE] [Modify Makefile Rules] enhance build flow for cgen tdd/fdd preprocessing files
+ *
+ * .
+ *
+ *******************************************************************************/
+
+#ifdef _MODIS_ON_VC9_
+#define __w64
+#endif
+
+typedef int cgen_use_spare_msg_id;
+typedef int cgen_use_spare_sap_id;
+typedef int cgen_use_spare_module_id;
+typedef unsigned short msg_type;
+typedef unsigned short sap_type;
+typedef unsigned short module_type;
+
+
+#ifdef __GNUC__
+ typedef struct __va_list { void *__ap; } __builtin_va_list;
+ #define INLINE __inline
+ #define inline __inline
+#endif
+
+#define __declspec(s)
+
+#include "kal_public_api.h"
+
+#ifdef __MOD_NVRAM__
+#include "nvram_data_items.h"
+#include "ex_item.h"
+
+#if defined(__MMI_FMI__)
+#include "nvram_common_defs.h"
+#include "common_nvram_editor_data_item.h"
+#endif
+
+#include "nvram_editor_data_item.h"
+#include "nvram_editor.h"
+#include "nvram_lid_list_for_mcf.h"
+#include "nvram_lid_structure_check_extend_list.h"
+#endif /*__MOD_NVRAM__*/