blob: 6be68b64234488845d968b0f7d73b8239bbfd057 [file] [log] [blame]
/*****************************************************************************
* 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:
* ---------
* l4b_at_cmd.def
*
*
* Description:
* ------------
* define the items in l4b_atp_at_cmd_table, and expended for
* MSG_ID_L4B_L4BXXX_YYY_REQ and MSG_ID_L4B_L4BXXX_YYY_CNF
*
* Author:
* -------
* Hong Yu
*
*==============================================================================
*******************************************************************************/
/*
This table defines at commands that will be handeled by L4B
1. L4B_AT_CMD: (<ENUM_ID>,<AT_prefix>,<cmd_mode>,<dest>,<forward_msg>,<forwrd_msg_func_ptr>,<cnfrm_msg>,<at_rsp_func_ptr>)
<ENUM_ID>
-For enum expansion. The name convention is L4B_AT_XXX
<AT_prefix>
-The AT command prefix for string compare. Commands should be in upper case
-Please write in upper case
<cmd_mode>
-Command mode in atp_cmd_mode_enum
-This field is a bitmask
<dest>
-The forward destination of this AT command
-For multi-SIM modules, only protocol stack 1 module is enough. L4B will help to increment according to Gemini
<forward_msg>
-L4B will send <forward_msg> to <dest> when receiving the matched AT command
-<forward_msg> shall be MSG_ID_L4B_L4BXXX_YYY_REQ
<forward_msg_func_ptr>
-The ilm constructor function pointer for <forward_msg>, which type is L4B_AT_CMD_TO_ILM_FUNC
<cnfrm_msg>
-The confirm message from L4BXXX to L4B
-<cnfrm_msg> shall be MSG_ID_L4B_L4BXXX_YYY_CNF, which is pair to <forward_msg>
<at_rsp_func_ptr>
-The AT response constructor function pointer, which will be invoked by L4B when receiving <cnfrm_msg>
-The type of this function pointer is L4B_ILM_TO_AT_RSP_FUNC
2. L4B_FORWARD_TO_ATCI_CMD: (<ENUM_ID>,<AT_prefix>,<cmd_mode>)
<ENUM_ID>
-For enum expansion
<AT_prefix>
-The AT command prefix for string compare. Commands should be in upper case
<cmd_mode>
-Command mode in atp_cmd_mode_enum
-This field is bitmap
L4B will forward this AT command from ATP to ATCI by MSG_ID_L4B_ATCI_AT_CMD_REQ
3. L4B_FORWARD_TO_CVAL_CMD: (<ENUM_ID>,<AT_prefix>,<cmd_mode>)
<ENUM_ID>
-For enum expansion
<AT_prefix>
-The AT command prefix for string compare. Commands should be in upper case
<cmd_mode>
-Command mode in atp_cmd_mode_enum
-This field is bitmap
L4B will forward this AT command from ATP to CVAL by MSG_ID_L4B_CVAL_AT_CMD_REQ
*/
/* L4BPWR AT cmd begin */
L4B_AT_CMD(L4B_AT_EFUN, "+EFUN", ATP_SET_OR_EXECUTE_OR_READ_MODE, MOD_L4BPWR, MSG_ID_L4B_L4BPWR_EFUN_REQ, l4bpwr_efun_req_construct_func, MSG_ID_L4B_L4BPWR_EFUN_CNF, l4bpwr_efun_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EBOOT, "+EBOOT", ATP_ALL_CMD_MODE, MOD_L4BPWR, MSG_ID_L4B_L4BPWR_SILENT_REBOOT_REQ, l4bpwr_silent_reboot_req_construct_func, MSG_ID_L4B_L4BPWR_SILENT_REBOOT_CNF, l4bpwr_silent_reboot_cnf_construct_func)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EPOF,"+EPOF", ATP_ALL_CMD_MODE)
/* L4BPWR AT cmd end */
// To be forwarded to CVAL
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CFSH, "+CFSH", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VP, "+VP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CRM, "+CRM", ATP_ALL_CMD_MODE)
#ifdef __TC10_IPC_CDMA_SUPPORT__
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CDV, "+CDV", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CHV, "+CHV", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KA, "+EC2KA", ATP_ALL_CMD_MODE)
#else
#if defined(C2K_L4_AT_CMD)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CDV, "+CDV", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CHV, "+CHV", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_A, "A", ATP_ALL_CMD_MODE)
#endif
#endif
/* L4BCC AT cmd end */
/* VDM AT cmd begin */
//VDM only send AT to CVAL; VDM now communicate with L4C by ILM instead of AT
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VMEMEXIT, "+VMEMEXIT", ATP_ALL_CMD_MODE)
/* VDM AT cmd end */
/* L4BNW AT cmd begin */
L4B_AT_CMD(L4B_AT_ERAT, "+ERAT", ATP_SET_OR_EXECUTE_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_ERAT_REQ, l4bnw_erat_req_construct_func, MSG_ID_L4B_L4BNW_ERAT_CNF, l4bnw_erat_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EGTYPE, "+EGTYPE", ATP_SET_OR_EXECUTE_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_EGTYPE_REQ, l4bnw_egtype_req_construct_func, MSG_ID_L4B_L4BNW_EGTYPE_CNF, l4bnw_egtype_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CGATT, "+CGATT", ATP_SET_OR_EXECUTE_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_CGATT_REQ, l4bnw_cgatt_req_construct_func, MSG_ID_L4B_L4BNW_CGATT_CNF, l4bnw_cgatt_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EREG, "+EREG", ATP_ALL_CMD_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_EREG_REQ, l4bnw_ereg_req_construct_func, MSG_ID_L4B_L4BNW_EREG_CNF, l4bnw_ereg_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EGREG, "+EGREG", ATP_ALL_CMD_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_EGREG_REQ, l4bnw_egreg_req_construct_func, MSG_ID_L4B_L4BNW_EGREG_CNF, l4bnw_egreg_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ECSQ, "+ECSQ", ATP_ALL_CMD_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_ECSQ_REQ, l4bnw_ecsq_req_construct_func, MSG_ID_L4B_L4BNW_ECSQ_CNF, l4bnw_ecsq_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EOPS, "+EOPS", ATP_READ_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_EOPS_REQ, l4bnw_eops_req_construct_func, MSG_ID_L4B_L4BNW_EOPS_CNF, l4bnw_eops_cnf_construct_func)
L4B_AT_CMD(L4B_AT_V, "+V", ATP_ALL_CMD_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_ATV_REQ, l4bnw_atv_req_construct_func, MSG_ID_L4B_L4BNW_ATV_CNF, l4bnw_atv_cnf_construct_func)
L4B_AT_CMD(L4B_AT_Z, "+Z", ATP_ALL_CMD_MODE, MOD_L4BNW, MSG_ID_L4B_L4BNW_ATZ_REQ, l4bnw_atz_req_construct_func, MSG_ID_L4B_L4BNW_ATZ_CNF, l4bnw_atz_cnf_construct_func)
// To be forwarded to CVAL
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VLOCINFO, "+VLOCINFO", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECBAND, "+ECBAND", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_C2KECSQ, "+C2KECSQ", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EIPRL, "+EIPRL", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EFCELL, "+EFCELL", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EDEFROAM, "+EDEFROAM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EROAMBAR, "+EROAMBAR", ATP_ALL_CMD_MODE)
/* L4BNW AT cmd end */
/* L4BSAT AT cmd begin */
// To be forwarded to ATCI
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_STKSS, "+STKSS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_STKUSSD, "+STKUSSD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_STKDTMF, "+STKDTMF", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_STKCTRL, "+STKCTRL", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_STKPCI, "+STKPCI", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CUSATA, "+CUSATA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CUSATD, "+CUSATD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CUSATR, "+CUSATR", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CUSATW, "+CUSATW", ATP_ALL_CMD_MODE)
// To be forwarded to CVAL
// To be controlled by L4BSAT
L4B_AT_CMD(L4B_AT_CUSATE, "+CUSATE", ATP_ALL_CMD_MODE, MOD_L4BSAT, MSG_ID_L4B_L4BSAT_CUSATE_REQ, l4bsat_cusate_req_construct_func, MSG_ID_L4B_L4BSAT_CUSATE_CNF, l4bsat_cusate_cnf_construct_func)
L4B_AT_CMD(L4B_AT_STKTR, "+STKTR", ATP_ALL_CMD_MODE, MOD_L4BSAT, MSG_ID_L4B_L4BSAT_STKTR_REQ, l4bsat_generic_req_construct_func, MSG_ID_L4B_L4BSAT_STKTR_CNF, l4bsat_generic_cnf_construct_func)
L4B_AT_CMD(L4B_AT_STKCALL, "+STKCALL", ATP_ALL_CMD_MODE, MOD_L4BSAT, MSG_ID_L4B_L4BSAT_STKCALL_REQ, l4bsat_generic_req_construct_func, MSG_ID_L4B_L4BSAT_STKCALL_CNF, l4bsat_generic_cnf_construct_func)
L4B_AT_CMD(L4B_AT_STKSMS, "+STKSMS", ATP_ALL_CMD_MODE, MOD_L4BSAT, MSG_ID_L4B_L4BSAT_STKSMS_REQ, l4bsat_generic_req_construct_func, MSG_ID_L4B_L4BSAT_STKSMS_CNF, l4bsat_generic_cnf_construct_func)
#if defined(__TC10__) && defined(__IPC_ADAPTER__)
L4B_AT_CMD(L4B_AT_STKSIMINIT, "+STKSIMINIT", ATP_ALL_CMD_MODE, MOD_L4BSAT, MSG_ID_L4B_L4BSAT_STKSIMINIT_REQ, l4bsat_stksiminit_req_construct_func, MSG_ID_L4B_L4BSAT_STKSIMINIT_CNF, l4bsat_generic_cnf_construct_func)
L4B_AT_CMD(L4B_AT_STKCONF, "+STKCONF", ATP_ALL_CMD_MODE, MOD_L4BSAT, MSG_ID_L4B_L4BSAT_STKCONF_REQ, l4bsat_generic_req_construct_func, MSG_ID_L4B_L4BSAT_STKCONF_CNF, l4bsat_generic_cnf_construct_func)
#endif
/* L4BSAT AT cmd end */
/* L4BSIM AT cmd begin */
// To be forwarded to ATCI
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESCG, "+ESCG", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EUSIM, "+EUSIM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ETESTSIM, "+ETESTSIM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMS, "+ESIMS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMEXIST, "+ESIMEXIST", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CIMI, "+CIMI", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EVSIM, "+EVSIM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EVSIMKEY, "+EVSIMKEY", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EVSIMEF, "+EVSIMEF", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EVSIMPRO, "+EVSIMPRO", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CPOL, "+CPOL", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CPLS, "+CPLS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_PACSP, "+PACSP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMREC, "+ESIMREC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CPUC, "+CPUC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSRM, "+CSRM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMAUTH, "+ESIMAUTH", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EAUTH, "+EAUTH", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EBTSAP, "+EBTSAP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMINFO, "+ESIMINFO", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMTC, "+ESIMTC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMTEST, "+ESIMTEST", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EDMSIM, "+EDMSIM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSUS, "+CSUS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CUAD, "+CUAD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ERSA, "+ERSA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_EAPVSIM, "+EAPVSIM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESPN, "+ESPN", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESADM, "+ESADM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ES3G, "+ES3G", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESIMMAP, "+ESIMMAP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_USIMSMT, "+USIMSMT", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESSTQ, "+ESSTQ", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ERMODE, "+ERMODE", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CMOD, "+CMOD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CRC, "+CRC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CBST, "+CBST", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ETMOEVT, "+ETMOEVT", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ETMOSLB, "+ETMOSLB", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ETMOSK, "+ETMOSK", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESMLCK, "+ESMLCK", ATP_ALL_CMD_MODE)
// To be forwarded to CVAL
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VCIMI, "+VCIMI", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CSNID, "+CSNID", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VMIN, "+VMIN", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VPRLID, "+VPRLID", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EUIMCFG, "+EUIMCFG", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECSTQ, "+ECSTQ",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECSQTH, "+ECSQTH",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ROAM, "$ROAM",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_QCMIPGETP, "$QCMIPGETP",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_GPSREP, "+GPSREPORT",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_DDTM, "+DDTM",ATP_ALL_CMD_MODE)
#if defined(__IPC_ADAPTER__) && defined(__TC10_IPC_CDMA_SUPPORT__)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VTD, "+VTD",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VTS, "+VTS",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VTC, "+VTC",ATP_ALL_CMD_MODE)
#endif
// To be controlled by L4BSIM
L4B_AT_CMD(L4B_AT_ECRLA, "+ECRLA", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ECRLA_REQ, l4bsim_ecrla_req_construct_func, MSG_ID_L4B_L4BSIM_ECRLA_CNF, l4bsim_ecrla_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ECRSM, "+ECRSM", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ECRSM_REQ, l4bsim_ecrsm_req_construct_func, MSG_ID_L4B_L4BSIM_ECRSM_CNF, l4bsim_ecrsm_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ICCID, "+ICCID", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ICCID_REQ, l4bsim_iccid_req_construct_func, MSG_ID_L4B_L4BSIM_ICCID_CNF, l4bsim_iccid_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CNUM, "+CNUM", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CNUM_REQ, l4bsim_cnum_req_construct_func, MSG_ID_L4B_L4BSIM_CNUM_CNF, l4bsim_cnum_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ESIMAPP, "+ESIMAPP", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ESIMAPP_REQ, l4bsim_esimapp_req_construct_func, MSG_ID_L4B_L4BSIM_ESIMAPP_CNF, l4bsim_esimapp_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CRLA, "+CRLA", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CRLA_REQ, l4bsim_crla_req_construct_func, MSG_ID_L4B_L4BSIM_CRLA_CNF, l4bsim_crla_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CGLA, "+CGLA", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CGLA_REQ, l4bsim_cgla_req_construct_func, MSG_ID_L4B_L4BSIM_CGLA_CNF, l4bsim_cgla_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CRSM, "+CRSM", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CRSM_REQ, l4bsim_crsm_req_construct_func, MSG_ID_L4B_L4BSIM_CRSM_CNF, l4bsim_crsm_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CSIM, "+CSIM", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CSIM_REQ, l4bsim_csim_req_construct_func, MSG_ID_L4B_L4BSIM_CSIM_CNF, l4bsim_csim_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CCHO, "+CCHO", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CCHO_REQ, l4bsim_ccho_req_construct_func, MSG_ID_L4B_L4BSIM_CCHO_CNF, l4bsim_ccho_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CCHC, "+CCHC", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CCHC_REQ, l4bsim_cchc_req_construct_func, MSG_ID_L4B_L4BSIM_CCHC_CNF, l4bsim_cchc_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ECIMI, "+ECIMI", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ECIMI_REQ, l4bsim_ecimi_req_construct_func, MSG_ID_L4B_L4BSIM_ECIMI_CNF, l4bsim_ecimi_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ECPIN, "+ECPIN", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ECPIN_REQ, l4bsim_ecpin_req_construct_func, MSG_ID_L4B_L4BSIM_ECPIN_CNF, l4bsim_ecpin_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CPIN, "+CPIN", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CPIN_REQ, l4bsim_cpin_req_construct_func, MSG_ID_L4B_L4BSIM_CPIN_CNF, l4bsim_cpin_cnf_construct_func)
#ifdef __TC10_IPC_CDMA_SUPPORT__
L4B_AT_CMD(L4B_AT_EPIN1, "+EPIN1", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_EPIN1_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_EPIN1_CNF, l4bsim_epin12_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EPIN2, "+EPIN2", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_EPIN2_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_EPIN2_CNF, l4bsim_epin12_cnf_construct_func)
#else
L4B_AT_CMD(L4B_AT_EPIN1, "+EPIN1", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_EPIN1_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_EPIN1_CNF, l4bsim_repack_generic_at_rsp)
L4B_AT_CMD(L4B_AT_EPIN2, "+EPIN2", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_EPIN2_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_EPIN2_CNF, l4bsim_repack_generic_at_rsp)
#endif
#ifdef __SIM_MULTI_PIN__
L4B_AT_CMD(L4B_AT_EPINC, "+EPINC", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_EPINC_REQ, l4bsim_epinc_req_construct_func, MSG_ID_L4B_L4BSIM_EPINC_CNF, l4bsim_epinc_cnf_construct_func)
#else
L4B_AT_CMD(L4B_AT_EPINC, "+EPINC", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_EPINC_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_EPINC_CNF, l4bsim_epinc_cnf_construct_func)
#endif
L4B_AT_CMD(L4B_AT_CPWD, "+CPWD", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CPWD_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_CPWD_CNF, l4bsim_repack_generic_at_rsp)
L4B_AT_CMD(L4B_AT_ECLCK, "+ECLCK", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ECLCK_REQ, l4bsim_parse_e_cmd_app_id_at_req, MSG_ID_L4B_L4BSIM_ECLCK_CNF, l4bsim_eclck_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CLCK, "+CLCK", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_CLCK_REQ, l4bsim_parse_cmd_mode_from_generic_at_cmd, MSG_ID_L4B_L4BSIM_CLCK_CNF, l4bsim_repack_generic_at_rsp)
L4B_AT_CMD(L4B_AT_ESLOTSINFO, "+ESLOTSINFO", ATP_ALL_CMD_MODE, MOD_L4BSIM, MSG_ID_L4B_L4BSIM_ESLOTSINFO_REQ, l4bsim_eslotsinfo_req_construct_func, MSG_ID_L4B_L4BSIM_ESLOTSINFO_CNF, l4bsim_eslotsinfo_cnf_construct_func)
/* L4BSIM AT cmd end */
/* L4BSMS AT cmd begin */
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CMGS,"+CMGS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CNMA,"+CNMA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CMGW,"+CMGW", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CMGD,"+CMGD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CMGR,"+CMGR", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSCA,"+CSCA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSAS,"+CSAS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSMS,"+CSMS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CPMS,"+CPMS", ATP_ALL_CMD_MODE)
// To be controlled by L4BSMS
L4B_AT_CMD(L4B_AT_CNMI, "+CNMI", ATP_ALL_CMD_MODE, MOD_L4BSMS, MSG_ID_L4B_L4BSMS_CNMI_REQ, l4bsms_cnmi_req_construct_func, MSG_ID_L4B_L4BSMS_CNMI_CNF, l4bsms_proxy_cmd_cnf_construct_func)
L4B_AT_CMD(L4B_AT_CMGF, "+CMGF", ATP_ALL_CMD_MODE, MOD_L4BSMS, MSG_ID_L4B_L4BSMS_CMGF_REQ, l4bsms_cmgf_req_construct_func, MSG_ID_L4B_L4BSMS_CMGF_CNF, l4bsms_proxy_cmd_cnf_construct_func)
L4B_AT_CMD(L4B_AT_EMEMS, "+EMEMS", ATP_ALL_CMD_MODE, MOD_L4BSMS, MSG_ID_L4B_L4BSMS_EMEMS_REQ, l4bsms_emems_req_construct_func, MSG_ID_L4B_L4BSMS_EMEMS_CNF, l4bsms_proxy_emems_cmd_cnf_construct_func)
//M2
// To be forwarded to ATCI
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSCB,"+CSCB", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CMMS,"+CMMS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSMP,"+CSMP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ETWS,"+ETWS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ECBMR,"+ECBMR", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ECSCBSW,"+ECSCBSW", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ECSCBCFG,"+ECSCBCFG", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESMSMOIP,"+ESMSMOIP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESMSMTIP,"+ESMSMTIP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESMMA,"+ESMMA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESMSMAIP,"+ESMSMAIP", ATP_ALL_CMD_MODE)
#if (defined(__UE_SIMULATOR__)&& defined(__CDMA2000_RAT__))
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CPON, "+CPON",ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CPOF, "+CPOF",ATP_ALL_CMD_MODE)
#endif
/*commands forwarfed to CVAL*/
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KCNMA, "+EC2KCNMA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KCMGW, "+EC2KCMGW", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KCMGD, "+EC2KCMGD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KCPMS, "+EC2KCPMS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECSCB, "+ECSCB", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECSCBCHA, "+ECSCBCHA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECSCBLAN, "+ECSCBLAN", ATP_ALL_CMD_MODE)
#if defined(__TC10_IPC_CDMA_SUPPORT__)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KCMGS, "+EC2KCMGS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_SCRN, "+SCRN", ATP_ALL_CMD_MODE)
#endif
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VSIPDUNACCNT, "+VSIPDUNACCNT", ATP_ALL_CMD_MODE)
#ifdef __MDVSIM__
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KVSIMEF, "+EC2KVSIMEF", ATP_ALL_CMD_MODE)
#endif
/* L4BSMS AT cmd end */
/* L4BSS AT cmd begin */
// To be forwarded to ATCI
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ESSP, "+ESSP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_ECUSD, "+ECUSD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CUSD, "+CUSD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CLIP, "+CLIP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CLIR, "+CLIR", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_COLP, "+COLP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CNAP, "+CNAP", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_ATCI_CMD(L4B_AT_CSSN, "+CSSN", ATP_ALL_CMD_MODE)
// To be controlled by L4BSS
/* L4BSS AT cmd end */
/* L4B common AT cmd begin */
// To be forwarded to CVAL
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KCMEE, "+EC2KCMEE", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CCID, "+CCID", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VIPSEND, "+VIPSEND", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_GSN, "+GSN", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_MEID, "^MEID", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CTA, "+CTA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECTBSR, "+ECTBSR", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECCONST, "+ECCONST", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EVPMODE, "+EVPMODE", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_DSDORMANT, "^DSDORMANT", ATP_ALL_CMD_MODE)
#if defined(__TC10__) && defined(__TC10_IPC_CDMA_SUPPORT__)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ERADIOCFG, "+ERADIOCFG", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EQPAGE, "+EQPAGE", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VGETNVDATA, "+VGETNVDATA", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VSYSS, "+VSYSS", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VCHAN, "+VCHAN", ATP_ALL_CMD_MODE)
#endif
/* L4B common AT cmd end */
/* L4BSBP AT cmd begin */
L4B_AT_CMD(L4B_AT_EDSBP, "+EDSBP", ATP_ALL_CMD_MODE, MOD_L4BSBP, MSG_ID_L4B_L4BSBP_EDSBP_REQ, l4bsbp_edsbp_req_construct_func, MSG_ID_L4B_L4BSBP_EDSBP_CNF, l4bsbp_edsbp_cnf_construct_func)
L4B_AT_CMD(L4B_AT_ESBP, "+ESBP", ATP_SET_OR_EXECUTE_MODE, MOD_L4BSBP, MSG_ID_L4B_L4BSBP_ESBP_REQ, l4bsbp_esbp_req_construct_func, MSG_ID_L4B_L4BSBP_ESBP_CNF, l4bsbp_esbp_cnf_construct_func)
/* L4BSBP AT cmd end */
/* L4B engineer mode AT cmd begin */
// To be forwarded to CVAL
#if defined (__TC10_IPC_CDMA_SUPPORT__)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VGMUID, "+VGMUID", ATP_ALL_CMD_MODE)
#endif
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VMHAAUTH, "+VMHAAUTH", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VMOBID, "+VMOBID", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECTM, "+ECTM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECRFTX, "+ECRFTX", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EHRPD, "+EHRPD", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECLSC, "+ECLSC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ENWINFO, "+ENWINFO", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECREGTYPE, "+ECREGTYPE", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECBANDCFG, "+ECBANDCFG", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ERXTESTMODE, "+ERXTESTMODE", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECSETNAM, "+ECSETNAM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECREADNAM, "+ECREADNAM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ECECCNUM, "+ECECCNUM", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EHRPDREV, "+EHRPDREV", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VMCC, "+VMCC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_VMNC, "+VMNC", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_CS0, "+CS0", ATP_ALL_CMD_MODE)
/* L4B engineer mode AT cmd end */
/* To be forwarded to CVAL */
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_GPSTCPCONNIND, "^GPSTCPCONNIND", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_EC2KGPSFLOW, "+EC2KGPSFLOW", ATP_ALL_CMD_MODE)
#if defined(__TC10__) && defined(__TC10_IPC_CDMA_SUPPORT__)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ESVCINFO, "+ESVCINFO", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ELOCKCH, "+ELOCKCH", ATP_ALL_CMD_MODE)
L4B_FORWARD_TO_CVAL_CMD(L4B_AT_ERTRE, "+ERTRE", ATP_ALL_CMD_MODE)
#endif
/* L4B LBS AT cmd end */