[Feature]Upload Modem source code
Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/protocol/layer4/l4/include/l4c2tcm_func.h b/mcu/protocol/layer4/l4/include/l4c2tcm_func.h
new file mode 100644
index 0000000..14dda7b
--- /dev/null
+++ b/mcu/protocol/layer4/l4/include/l4c2tcm_func.h
@@ -0,0 +1,837 @@
+/*****************************************************************************
+* 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:
+ * ---------
+ * L4C2TCM_FUNC.H
+ *
+ * Project:
+ * --------
+ * MAUI
+ *
+ * Description:
+ * ------------
+ * This file handles AT get and query command.
+ *
+ * Author:
+ * -------
+ * -------
+ *
+ *============================================================================
+ * HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *------------------------------------------------------------------------------
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ *
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ * removed!
+ * removed!
+ * removed!
+ *
+ *------------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *============================================================================
+ ****************************************************************************/
+
+/********************************************************************************
+* Copyright Statement:
+* --------------------
+*
+* This product has been developed using a protocol stack
+* developed by Sasken Communication Technologies Limited.
+*
+********************************************************************************/
+
+
+#ifndef _L4C2TCM_FUNC_H
+#define _L4C2TCM_FUNC_H
+
+//#include "ps_public_struct.h"
+//#include "tcm_common.h"
+//#include "kal_non_specific_general_types.h"
+//#include "mmi_l3_enums.h"
+//#include "l4c_common_enum.h"
+//#include "tcm_common_enums.h"
+//#include "l3_inc_enums.h"
+//#include "l4c2tcm_struct.h"
+
+#include "mmi_sm_enums.h"
+//#include "custom_mmi_default_value.h"
+
+#include "kal_general_types.h"
+#include "ps_public_enum.h"
+#include "ps_public_enum_public.h"
+#include "tcm_context_enum.h"
+
+#include "tcm_api.h"
+
+#include "tcm_context.h"
+#include "l4c_utility.h"
+
+#include "ps_public_struct.h"
+
+#include "nvram_editor_data_item.h" /* __MEDIATEK_SMART_QOS__ */
+
+// mtk04002_20120518: should NOT include tftlib_api.h here (will cause codegen error) => modify to include tftlib_common_struct.h
+#include "tftlib_common_struct.h"
+
+#include "c2k_irat_msg_struct.h"
+#include "mcd_l3_inc_struct.h"
+
+extern const kal_uint8 rmmi_sdu_err_ratio_string_table[8][3];
+extern const kal_uint8 rmmi_residual_ber_string_table[10][3];
+
+#ifdef __TCPIP__ /* ABM */
+typedef struct
+{
+ kal_uint8 cid;
+ kal_uint32 ext_rx_data;
+ kal_uint32 ext_tx_data;
+} l4c_ext_gprs_statistics_info_struct;
+#endif
+
+#ifdef __TCM_EXT_CALL_HISTORY_SUPPORT__
+typedef struct
+{
+ kal_uint64 call_history_total_ext_tx_data;
+ kal_uint64 call_history_total_ext_rx_data;
+ kal_uint64 call_history_last_ext_tx_data;
+ kal_uint64 call_history_last_ext_rx_data;
+ kal_uint64 call_history_total_ext_conn_duration_in_secs;
+ kal_uint32 call_history_last_ext_conn_duration_in_secs;
+ kal_uint8 which_cid_is_last_cid;
+}l4c_ext_gprs_call_history_info_struct;
+#endif // ~ __TCM_EXT_CALL_HISTORY_SUPPORT__
+
+//mtk04121
+typedef struct
+{
+ kal_uint8 context_id;
+ kal_uint8 bearer_id;
+ kal_uint8 apn_length;
+ kal_uint8 apn[MAX_APN_LEN];
+ kal_bool src_addr_sb_net_mask_present;
+ kal_uint8 src_addr_sb_net_mask[IPV4_ADDR_LEN * 2];
+ kal_bool ipv6_src_addr_sb_net_mask_present;
+ kal_uint8 ipv6_src_addr_sb_net_mask[IPV6_ADDR_LEN * 2];
+ kal_bool gw_addr_present;
+ kal_uint8 gw_addr[IPV4_ADDR_LEN];
+ kal_bool ipv6_gw_addr_present;
+ kal_uint8 ipv6_gw_addr[IPV6_ADDR_LEN];
+ kal_bool dns_present;
+ kal_uint8 dns[IPV4_ADDR_LEN];
+ kal_bool dns2_present;
+ kal_uint8 dns2[IPV4_ADDR_LEN];
+ kal_bool dns3_present;
+ kal_uint8 dns3[IPV4_ADDR_LEN];
+ kal_bool ipv6_dns_present;
+ kal_uint8 ipv6_dns[IPV6_ADDR_LEN];
+ kal_bool ipv6_dns2_present;
+ kal_uint8 ipv6_dns2[IPV6_ADDR_LEN];
+ kal_bool ipv6_dns3_present;
+ kal_uint8 ipv6_dns3[IPV6_ADDR_LEN];
+ kal_bool p_cscf_prim_addr_present;
+ kal_uint8 p_cscf_prim_addr[IPV4_ADDR_LEN];
+ kal_bool p_cscf_sec_addr_present;
+ kal_uint8 p_cscf_sec_addr[IPV4_ADDR_LEN];
+ kal_bool p_cscf_third_addr_present;
+ kal_uint8 p_cscf_third_addr[IPV4_ADDR_LEN];
+ kal_bool ipv6_p_cscf_prim_addr_present;
+ kal_uint8 ipv6_p_cscf_prim_addr[IPV6_ADDR_LEN];
+ kal_bool ipv6_p_cscf_sec_addr_present;
+ kal_uint8 ipv6_p_cscf_sec_addr[IPV6_ADDR_LEN];
+ kal_bool ipv6_p_cscf_third_addr_present;
+ kal_uint8 ipv6_p_cscf_third_addr[IPV6_ADDR_LEN];
+ kal_bool im_cn_signalling_flag_present;
+ kal_uint8 im_cn_signalling_flag;
+} l4c_prim_pdp_rdp_info_struct;
+
+//mtk04121
+typedef struct
+{
+ kal_uint8 context_id;
+ kal_uint8 primary_context_id;
+ kal_bool bearer_id_present;
+ kal_uint8 bearer_id;
+ kal_bool im_cn_signalling_flag_present;
+ kal_uint8 im_cn_signalling_flag;
+ kal_bool wlan_offlad_present;
+ kal_uint8 wlan_offlad;
+ kal_bool pdu_session_id_present;
+ kal_uint8 pdu_session_id;
+} l4c_sec_pdp_rdp_info_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_prim_pdp_info_struct prim_pdp_info[MAX_L4_PS_PDN_NUM];
+} l4c_prim_pdp_info_list_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_sec_pdp_info_struct sec_pdp_info[MAX_L4_PS_CID_NUM];
+} l4c_sec_pdp_info_list_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_qos_struct qos_info[MAX_L4_PS_CID_NUM];
+} l4c_qos_list_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_eqos_struct qos_info[MAX_L4_PS_CID_NUM];
+} l4c_eqos_list_struct;
+
+typedef struct
+{
+ kal_uint8 num_of_inactivity_timer;
+ l4c_apn_info_struct timer_info[TCM_APN_TABLE_SIZE];
+} l4ctcm_query_eapnsync_struct;
+
+//mtk04121
+typedef struct
+{
+ kal_uint8 context_id;
+ kal_uint8 qci;
+ kal_bool max_bitrate_present;
+ kal_uint8 max_bitrate_up_lnk;
+ kal_uint8 max_bitrate_down_lnk;
+ kal_uint8 ext_max_bitrate_up_lnk;
+ kal_uint8 ext_max_bitrate_down_lnk;
+ kal_uint8 ext2_max_bitrate_up_lnk;
+ kal_uint8 ext2_max_bitrate_down_lnk;
+ kal_bool guarntd_bit_rate_present;
+ kal_uint8 guarntd_bit_rate_up_lnk;
+ kal_uint8 guarntd_bit_rate_down_lnk;
+ kal_uint8 ext_guarntd_bit_rate_up_lnk;
+ kal_uint8 ext_guarntd_bit_rate_down_lnk;
+ kal_uint8 ext2_guarntd_bit_rate_up_lnk;
+ kal_uint8 ext2_guarntd_bit_rate_down_lnk;
+ kal_uint8 apn_ambr_present;
+ kal_uint8 apn_ambr_up_lnk;
+ kal_uint8 apn_ambr_down_lnk;
+ kal_uint8 ext_apn_ambr_up_lnk;
+ kal_uint8 ext_apn_ambr_down_lnk;
+ kal_uint8 ext2_apn_ambr_up_lnk;
+ kal_uint8 ext2_apn_ambr_down_lnk;
+
+ kal_bool is_use_ext_qos_for_dl_gbr;
+ kal_bool is_use_ext_qos_for_ul_gbr;
+ kal_bool is_use_ext_qos_for_dl_mbr;
+ kal_bool is_use_ext_qos_for_ul_mbr;
+ kal_uint64 ext_eps_qos_dl_gbr;
+ kal_uint64 ext_eps_qos_ul_gbr;
+ kal_uint64 ext_eps_qos_dl_mbr;
+ kal_uint64 ext_eps_qos_ul_mbr;
+
+ kal_bool is_use_ext_apn_ambr_for_dl;
+ kal_bool is_use_ext_apn_ambr_for_ul;
+ kal_uint64 ext_apn_ambr_for_dl;
+ kal_uint64 ext_apn_ambr_for_ul;
+} l4c_eps_qos_rdp_struct;
+
+
+typedef struct
+{
+ kal_uint8 context_id;
+ kal_uint8 num_of_vgqos;
+ tcm_vgqos_struct vgqos[VGSM_MAX_QFI_NUM];
+} l4c_vgqos_rdp_struct;
+
+//mtk04121
+typedef struct
+{
+ kal_uint8 length;
+ l4c_eps_qos_struct qos_info[MAX_L4_PS_CID_NUM];
+} l4c_eps_qos_list_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_vgqos_struct qos_info[MAX_L4_PS_CID_NUM];
+} l4c_vgqos_list_struct;
+
+typedef struct
+{
+ kal_uint8 context_id;
+
+ kal_uint8 pri_dns[IPV4_ADDR_LEN];
+ kal_uint8 sec_dns[IPV4_ADDR_LEN];
+
+ l4c_tcm_activate_pdp_request_ipv4_dns_enum act_pdp_with_pco_req_v4_dns ;
+ l4c_tcm_activate_pdp_request_ipv6_dns_enum act_pdp_with_pco_req_v6_dns; // only valid for IPv6 and IPv4v6, possible value:
+ // TCM_ACTIVATE_PDP_NEED_REQUEST_IPV6_DNS &
+ // TCM_ACTIVATE_PDP_NOT_REQUEST_IPV6_DNS
+ kal_bool ipv6_dns1_present;
+ kal_uint8 ipv6_dns1[IPV6_ADDR_LEN];
+ kal_bool ipv6_dns2_present;
+ kal_uint8 ipv6_dns2[IPV6_ADDR_LEN];
+ l4c_tcm_activate_pdp_request_ipv4_mtu_enum act_pdp_with_pco_req_v4_mtu;
+ kal_uint16 ipv4_mtu_size;
+ kal_uint8 initial_attach;
+ kal_uint32 op_pco_id;
+ plmn_id_rat_struct op_pco_plmn_id;
+ kal_uint8 op_pco_action;
+ kal_bool req_msisdn;
+ kal_bool pcscf_reselection_support;
+ kal_bool ps_data_off_support_present;
+ kal_uint8 ps_data_off_support_value;
+
+ kal_uint32 user_defined_op_pco_id;
+ plmn_id_rat_struct user_defined_op_pco_plmn_id;
+
+ kal_bool epdg_v6_addr_req;
+ plmn_id_rat_struct epdg_v6_addr_req_cointainer;
+
+ kal_bool epdg_v4_addr_req;
+ plmn_id_rat_struct epdg_v4_addr_req_cointainer;
+
+ kal_bool vzw_5guw_req;
+ plmn_id_rat_struct vzw_5guw_req_cointainer;
+} l4c_config_option_struct;
+
+typedef struct
+{
+ kal_uint8 context_id;
+ kal_uint8 user_name[MAX_GPRS_USER_NAME_LEN];
+ kal_uint8 password[MAX_GPRS_PASSWORD_LEN];
+ kal_uint8 auth_type;
+} l4c_cgauth_info_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_config_option_struct config_option_info[MAX_L4_PS_PDN_NUM];
+} l4c_config_option_list_struct;
+
+typedef struct
+{
+ kal_uint8 length;
+ l4c_cgauth_info_struct cgauth_info[MAX_L4_PS_PDN_NUM];
+} l4c_cgauth_info_list_struct;
+
+
+kal_bool l4ctcm_is_emergency_pdn_by_context_id(kal_uint8 context_id);
+
+/* +CGDCONT */
+#ifdef __TC10__
+kal_bool l4ctcm_is_cid_activated(kal_uint8 cid);
+#endif /*__TC10__*/
+
+kal_bool l4ctcm_get_pri_pdp_info(l4c_prim_pdp_info_list_struct *p_info);
+void l4ctcm_get_pri_pdp_info_by_context_id(kal_uint8 context_id, l4c_prim_pdp_info_struct *p_info);
+void l4ctcm_get_old_psi_present_by_context_id(kal_uint8 context_id, kal_bool *p_val);
+
+/* +CGDSCONT */
+kal_bool l4ctcm_get_sec_pdp_info(l4c_sec_pdp_info_list_struct *p_info);
+
+/* +CGSCONTRDP */
+kal_bool l4ctcm_get_sec_pdp_rdp_info(kal_uint8 cid, l4c_sec_pdp_rdp_info_struct *p_info);
+
+//mtk04121
+/* +CGTFT */
+kal_bool l4ctcm_set_tft_info(tft_info_struct *p_info);
+kal_bool l4ctcm_get_tft_info(tft_info_list_struct *p_info);
+kal_bool l4ctcm_undef_cgtft(kal_uint8 cid) ;
+
+/* +EGDELPF */
+kal_bool l4ctcm_set_egdelpf(kal_uint8 cid, kal_uint8 pf_id) ;
+kal_bool l4ctcm_get_egdelpf(kal_uint8 cid, kal_uint8 *p_pf_total_num, kal_uint8 *p_pf_list);
+kal_bool l4ctcm_undef_egdelpf(kal_uint8 cid) ;
+
+/* +EGLNKPF */
+kal_bool l4ctcm_set_eglnkpf(kal_uint8 cid, kal_uint8 lnkpf_id) ;
+kal_bool l4ctcm_get_eglnkpf(kal_uint8 cid, kal_uint8 *p_pf_total_num, kal_uint8 *p_pf_list);
+kal_bool l4ctcm_undef_eglnkpf(kal_uint8 cid) ;
+
+//mtk04121
+/* +CGTFTRDP */
+kal_bool l4ctcm_get_tft_rdp_info(tft_info_list_struct *p_info);
+
+/* +CGQREQ / +CGQMIN */
+kal_bool l4ctcm_get_qos_info(atci_qos_enum type, l4c_qos_list_struct *p_info);
+
+/* +CGQREQ / +CGQMIN */
+kal_bool l4ctcm_get_eqos_info(atci_qos_enum type, l4c_eqos_list_struct *p_info);
+
+kal_bool l4ctcm_encode_sdu_size(kal_uint16 size, kal_uint16 *p_val);
+
+kal_bool l4ctcm_encode_transfer_delay(kal_uint16 delay, kal_uint16 *p_val);
+
+//mtk04121
+/* +CGEQOS */
+kal_bool l4ctcm_get_eps_qos_info(l4c_eps_qos_list_struct *p_info);
+kal_bool l4ctcm_get_vgqos_info(l4c_vgqos_list_struct *p_info);
+
+//mtk04121
+/* +CGEQOSRDP */
+kal_bool l4ctcm_get_eps_qos_rdp_info(kal_uint8 cid, l4c_eps_qos_rdp_struct *p_info);
+kal_bool l4ctcm_get_vgqos_rdp_info(kal_uint8 cid, l4c_vgqos_rdp_struct *p_info);
+kal_bool l4ctcm_get_session_ambr(kal_uint8 cid, pdus_session_ambr_struct *p_session_ambr);
+
+kal_uint8 l4ctcm_get_pdp_type(kal_uint8 context_id);
+kal_bool l4ctcm_get_bearer_id_by_cid(kal_uint8 context_id, tcm_fic_type_enum fic_type, kal_uint8 *bearer_id);
+
+/* +EGPPPAUTH */
+kal_bool l4ctcm_get_config_option_info(l4c_config_option_list_struct *p_info);
+kal_bool l4ctcm_get_cgauth_info(l4c_cgauth_info_list_struct *p_info);
+
+/* EAPNSYNC */
+void l4ctcm_get_eapnsync_info(l4ctcm_query_eapnsync_struct *p_eapn_info);
+
+kal_bool l4ctcm_get_context_state(kal_uint8 *p_total_context, kal_uint8 *p_state_list);
+kal_bool l4ctcm_get_context_state_of_ap_view(kal_uint8 *p_total_context, kal_uint8 *p_state_list);
+
+#ifdef __HSDPA_SUPPORT__
+void l4ctcm_get_bearer_capability(kal_uint8 *p_valid_contexts, kal_uint8 *p_context_id, data_speed_activate_enum *p_bearer_capability); //hspa_mmi_h2
+#endif //__HSDPA_SUPPORT__
+
+// kal_bool l4ctcm_pdp_capability(kal_uint8 **rsp_str);
+
+#ifdef __TCPIP__ /* ABM */
+kal_bool l4ctcm_get_ext_gprs_statistics_info(kal_uint8 cid, l4c_ext_gprs_statistics_info_struct *p_info);
+#endif
+
+#ifdef __TCM_EXT_CALL_HISTORY_SUPPORT__
+kal_bool l4ctcm_query_ext_gprs_history(kal_uint8 last_cid, l4c_ext_gprs_call_history_info_struct * p_info);
+kal_bool l4ctcm_reset_ext_gprs_history(kal_bool reset_all, kal_bool reset_certain_cid_last_history, kal_uint8 context_id, kal_bool reset_total_history);
+kal_bool l4ctcm_reset_ext_gprs_history_command(kal_uint32 reset_command);
+#endif // MAUI_01643919, mtk02285, 20090316
+
+kal_bool l4ctcm_set_sib_pdp_addr_type(kal_uint8 pdp_addr_type, kal_uint8 cid);
+kal_uint8 l4ctcm_get_nw_applied_pdp_addr_type(kal_uint8 cid);
+kal_bool l4ctcm_get_nw_applied_apn(kal_uint8 cid, apn_struct *apn);
+
+void l4ctcm_set_voice_centric(kal_bool is_voice_centric);
+
+kal_bool check_pdp_context_exist_func(void);
+
+kal_bool check_remote_pdp_context_exist_func(void);
+
+kal_bool l4ctcm_pid_to_cid(kal_uint8 profile_id, kal_uint8 *context_id);
+
+kal_bool l4ctcm_cmux_port_to_cid (kal_uint8 profile_id, kal_uint8 *context_id);
+
+extern kal_bool tcml4c_is_pseudo_imsi(void);
+
+/* +EGGRNTRSPT */
+extern kal_bool l4ctcm_set_sib_processing_time_limit_in_secs(kal_uint8 cid, kal_uint32 processing_time_limit_in_secs);
+extern kal_bool l4ctcm_set_sib_req_processing_info_unlimited(kal_uint8 cid);
+extern kal_bool l4ctcm_set_sib_req_processing_info_default(kal_uint8 cid);
+extern kal_uint32 l4ctcm_get_sib_processing_time_limit_in_secs(kal_uint8 cid);
+extern tcm_im_cn_signalling_enum l4ctcm_get_user_defined_im_cn_signalling_flag(kal_uint8 context_id);
+
+extern kal_bool l4ctcm_get_nw_applied_ladn_info(l4ctcm_ladn_info_list_struct *ladn_info_list);
+
+kal_bool l4aps_tcm_get_5g_qos_flow_action_table(kal_uint8 cid, qos_flow_action_table_struct *qf_action_table_result, kal_uint8 *qfi_with_default_rule);
+kal_bool l4ctcm_get_vzw_5GUW_Allowed(kal_uint8 *vzw_5GUW_Allowed);
+#ifdef __TCM_UT__
+void l4ctcm_get_eps_qos_info_tester(kal_char *p_case_num);
+void l4ctcm_get_eps_qos_rdp_info_tester(kal_char *p_case_num);
+
+void l4ctcm_get_vgqos_info_tester(kal_char *p_case_num);
+void l4ctcm_get_vgqos_rdp_info_tester(kal_char *p_case_num);
+void l4ctcm_get_session_ambr_tester(kal_char *p_case_num);
+#endif // __TCM_UT__
+
+#if (defined(__FAST_DORMANCY__) || defined(__NO_PSDATA_SEND_SCRI__))
+kal_bool check_if_has_activation_pending_pdp(void);
+kal_bool check_if_has_deactivation_pending_pdp(void);
+kal_bool check_if_has_modification_pending_pdp(void);
+kal_bool check_if_has_mt_activation_pending_pdp(void);
+#endif /* (defined(__FAST_DORMANCY__) || defined(__NO_PSDATA_SEND_SCRI__)) */
+
+#ifdef __ACL_SUPPORT__
+kal_uint8 l4ctcm_get_acl_type(void);
+#endif
+
+#endif /* ~_L4C2TCM_FUNC_H */