blob: 7a89701082f418099213b68ded476f64695c9f1e [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) 2012
*
* 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:
* ---------
* ccci_rpc_conf.h
*
* Project:
* --------
* MOLY
*
* Description:
* ------------
* CCCI RPC OP ID definition
*
* Author:
* -------
* -------
*
*
* ==========================================================================
* $Log$
*
* 08 04 2021 li-cheng.tsai
* [MOLY00665029] [Gen97]AMMS DRDI new architecture porting
*
* [NR15.R3.MD700.MP] feature id and rpc op id code sync from NR15.R3.MP
*
* 09 18 2020 li-cheng.tsai
* [MOLY00569647] [MP7.PRECHECKIN.DEV][Code sync] sync code from T700
* [R3.MP][OA]DATA CARD RPC OP ID config modify.
*
* 09 15 2020 li-cheng.tsai
* [MOLY00569647] [MP7.PRECHECKIN.DEV][Code sync] sync code from T700
* [MP7/PRECHECKIN.DEV][OA]DATA CARD RPC OP ID config modify.
*
* 08 19 2020 adel.liao
* [MOLY00557552] [MT6880][Colgin][M.2][MP6][SQC][Function][SI1]After enable PIN and restart,can not enter the PIN input interface,and camp on network directly.
*
* DATA CARD RPC OP ID config modify.
*
* 08 04 2020 li-cheng.tsai
* [MOLY00548378] [Gen97][Colgin] DRDI enable for MT6880_MMRF_MT6190_EVB
*
* [T700 MP][OA][MD CCCI]patch back from MT6880, open rpc service IPC_RPC_GPIO_ADC_GET_PINVALUE_OP
*
* 07 22 2020 li-cheng.tsai
* [MOLY00548378] [Gen97][Colgin] DRDI enable for MT6880_MMRF_MT6190_EVB
*
* [MT6880 MP][OA][MD CCCI]open rpc service IPC_RPC_GPIO_ADC_GET_PINVALUE_OP
*
* 02 28 2020 vend_mcd_cienet025
* [MOLY00502290] [OK] SD??SIM???????, ?????????2????SIM???NANO SD?
* huawei 5G project RPC request
*
* 12 06 2019 jin.lee
* [MOLY00457747] [6763 LG KOR project] call for LGE_SECURITY patch from LR11.W1552.MD.TC01.SP to LR12A.R3.TC01.DEV
*
* . Migrate to VOMOLY.TRUNK.VOMLY
*
* 08 08 2019 actory.ou
* [MOLY00427628] [MMRF] query operator index for common sar feature
* [VMOLY][OA] sync ccci rpc msg
*
* 04 19 2019 actory.ou
* [MOLY00395176] [Thin Modem 1.0][PCIe platform] PCIe Platform 1st Release on Apollo
* [PCIe][OA][CCCI] support pcie thin modem 1.0
*
* 08 16 2017 chien-hui.lu
* [MOLY00271091] [CCCI RPC] add RPC OP ID for get AP system property
* [CCCI_RPC] add RPC OP ID for AP system property. (OPPO feature request)
*
* 07 04 2017 chien-hui.lu
* [MOLY00260407] [MML1][RF] drdi index from ap dtsi
* [CCCI RPC] add for DTSI query.
*
* 05 23 2017 chien-hui.lu
* [MOLY00251502] [IPCORE][LHIFCORE] dynamic queue mapping
* [CCCI_RPC][LHIFCORE] dynamic queue mapping.
*
* 11 13 2014 cs.huang
* [MOLY00084393] [UMOLY][CCCI] CCCI common header arrangement
* Merging
*
* //UMOLY/TRUNK/UMOLY/mcu/pcore/interface/service/hif/ccci_ch_cfg.h
*
* to //UMOLY/TRUNK/UMOLY/mcu/common/interface/service/hif/ccci_ch_cfg.h
*
* 06 11 2014 ian.cheng
* [MOLY00069231] [TK6291] MOLY CCCI merge
* TK6291 CCCI migration
*
* 03 18 2014 cs.huang
* [MOLY00059872] [CCCI RPC] Add ADC/GPIO pin value op id, and adjust RF_CLK_BUFFER op id
* [CCCI RPC] Add ADC/GPIO pin value op id, and adjust RF_CLK_BUFFER op id.
*
****************************************************************************/
#if defined(__CCCI_PRODUCT_TYPE_THIN_MODEM__) //thin modem configuration
// Format: OPNAME, OPID (2 bytes) is support or not
X_CCCI_RPC_CONF(IPC_RPC_CPSVC_SECURE_ALGO_OP , 0x2001 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_GET_SECURE_RO_OP , 0x2002 , KAL_FALSE)
#ifdef LGE_FW_COMMON
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READSIMLOCKTYPE_OP , 0x3001 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READFUSGFLAG_OP , 0x3002 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_CHECKUNLOCKCODEVALIDNESS_OP , 0x3003 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_CHECKNETWORKCODEVALIDNESS_OP , 0x3004 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITESIMLOCKTYPE_OP , 0x3005 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READIMEI_OP , 0x3006 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITEIMEI_OP , 0x3007 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READNETWORKCODELISTNUM_OP , 0x3008 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READNETWORKCODE_OP , 0x3009 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_NETWORK_CODE_LIST_NUM_OP , 0x300A , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_UNLOCK_CODE_VERIFY_FAIL_COUNT_OP , 0x300B , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READ_UNLOCK_CODE_VERIFY_FAIL_COUNT_OP , 0x300C , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_UNLOCK_FAIL_COUNT_OP , 0x300D , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READ_UNLOCK_FAIL_COUNT_OP , 0x300E , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_UNLOCK_CODE_OP , 0x300F , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_VERIFY_UNLOCK_CODE_OP , 0x3010 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_NETWORK_CODE_OP , 0x3011 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_INIT_SIM_LOCK_DATA_OP , 0x3012 , KAL_FALSE)
#endif
X_CCCI_RPC_CONF(IPC_RPC_EINT_GETNUM_OP , 0x4001 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_GPIO_GETPIN_OP , 0x4002 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_ADC_GETNUM_OP , 0x4003 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_QUERY_EMI_OP , 0x4004 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_EINT_GETATTRIBUTE_OP , 0x4005 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_GPIO_GETVALUE_OP , 0x4006 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_ADC_GETVALUE_OP , 0x4007 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_RF_CLK_BUFFER_OP , 0x4008 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_GPIO_ADC_GET_PINVALUE_OP , 0x4009 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_USIM2NFC_OP , 0x400A , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_DSP_EMI_MPU_SETTING , 0x400B , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_CCCI_QUEUE_MAPPING , 0x400C , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_LHIFCORE_QUEUE_MAPPING , 0x400D , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_DTSI_QUERY_OP , 0x400E , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_QUERY_AP_SYS_PROPERTY , 0x400F , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_SAR_TABLE_IDX_QUERY_OP , 0x4010 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_EFUSE_BLOWING , 0x4011 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_TRNG_GET_RANDOM_NUMBER , 0x4012 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_QUERY_CARD_TYPE , 0x4013 , KAL_FALSE)
X_CCCI_RPC_CONF(IPC_RPC_AMMS_DRDI_CONTROL , 0x4014 , KAL_FALSE)
X_CCCI_RPC_CONF(EEMCS_OP_IT_VAL , 0x4321 , KAL_TRUE)
#else //if defined(__CCCI_PRODUCT_TYPE_THIN_MODEM__)
// Format: OPNAME, OPID (2 bytes) is support or not
X_CCCI_RPC_CONF(IPC_RPC_CPSVC_SECURE_ALGO_OP , 0x2001 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_GET_SECURE_RO_OP , 0x2002 , KAL_TRUE)
#ifdef LGE_FW_COMMON
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READSIMLOCKTYPE_OP , 0x3001 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READFUSGFLAG_OP , 0x3002 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_CHECKUNLOCKCODEVALIDNESS_OP , 0x3003 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_CHECKNETWORKCODEVALIDNESS_OP , 0x3004 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITESIMLOCKTYPE_OP , 0x3005 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READIMEI_OP , 0x3006 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITEIMEI_OP , 0x3007 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READNETWORKCODELISTNUM_OP , 0x3008 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READNETWORKCODE_OP , 0x3009 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_NETWORK_CODE_LIST_NUM_OP , 0x300A , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_UNLOCK_CODE_VERIFY_FAIL_COUNT_OP , 0x300B , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READ_UNLOCK_CODE_VERIFY_FAIL_COUNT_OP , 0x300C , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_UNLOCK_FAIL_COUNT_OP , 0x300D , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_READ_UNLOCK_FAIL_COUNT_OP , 0x300E , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_UNLOCK_CODE_OP , 0x300F , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_VERIFY_UNLOCK_CODE_OP , 0x3010 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_WRITE_NETWORK_CODE_OP , 0x3011 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LGESVC_FAC_INIT_SIM_LOCK_DATA_OP , 0x3012 , KAL_TRUE)
#endif
X_CCCI_RPC_CONF(IPC_RPC_EINT_GETNUM_OP , 0x4001 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_GPIO_GETPIN_OP , 0x4002 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_ADC_GETNUM_OP , 0x4003 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_QUERY_EMI_OP , 0x4004 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_EINT_GETATTRIBUTE_OP , 0x4005 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_GPIO_GETVALUE_OP , 0x4006 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_ADC_GETVALUE_OP , 0x4007 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_RF_CLK_BUFFER_OP , 0x4008 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_GPIO_ADC_GET_PINVALUE_OP , 0x4009 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_USIM2NFC_OP , 0x400A , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_DSP_EMI_MPU_SETTING , 0x400B , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_CCCI_QUEUE_MAPPING , 0x400C , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_LHIFCORE_QUEUE_MAPPING , 0x400D , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_DTSI_QUERY_OP , 0x400E , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_QUERY_AP_SYS_PROPERTY , 0x400F , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_SAR_TABLE_IDX_QUERY_OP , 0x4010 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_EFUSE_BLOWING , 0x4011 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_TRNG_GET_RANDOM_NUMBER , 0x4012 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_QUERY_CARD_TYPE , 0x4013 , KAL_TRUE)
X_CCCI_RPC_CONF(IPC_RPC_AMMS_DRDI_CONTROL , 0x4014 , KAL_TRUE)
X_CCCI_RPC_CONF(EEMCS_OP_IT_VAL , 0x4321 , KAL_TRUE)
#endif