1 /****************************************************************************** 2 * 3 * Copyright (C) 1999-2012 Broadcom Corporation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 /****************************************************************************** 20 * 21 * The original Work has been changed by NXP Semiconductors. 22 * 23 * Copyright (C) 2013-2014 NXP Semiconductors 24 * 25 * Licensed under the Apache License, Version 2.0 (the "License"); 26 * you may not use this file except in compliance with the License. 27 * You may obtain a copy of the License at 28 * 29 * http://www.apache.org/licenses/LICENSE-2.0 30 * 31 * Unless required by applicable law or agreed to in writing, software 32 * distributed under the License is distributed on an "AS IS" BASIS, 33 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 34 * See the License for the specific language governing permissions and 35 * limitations under the License. 36 * 37 ******************************************************************************/ 38 39 #ifndef __CONFIG_H 40 #define __CONFIG_H 41 42 #ifdef __cplusplus 43 extern "C" { 44 #endif 45 46 int GetNxpStrValue(const char* name, char* p_value, unsigned long len); 47 int GetNxpNumValue(const char* name, void* p_value, unsigned long len); 48 int GetNxpByteArrayValue(const char* name, char* pValue, long bufflen, 49 long* len); 50 void resetNxpConfig(void); 51 int isNxpConfigModified(); 52 int updateNxpConfigTimestamp(); 53 54 #ifdef __cplusplus 55 }; 56 #endif 57 58 #define NAME_NXPLOG_EXTNS_LOGLEVEL "NXPLOG_EXTNS_LOGLEVEL" 59 #define NAME_NXPLOG_NCIHAL_LOGLEVEL "NXPLOG_NCIHAL_LOGLEVEL" 60 #define NAME_NXPLOG_NCIX_LOGLEVEL "NXPLOG_NCIX_LOGLEVEL" 61 #define NAME_NXPLOG_NCIR_LOGLEVEL "NXPLOG_NCIR_LOGLEVEL" 62 #define NAME_NXPLOG_FWDNLD_LOGLEVEL "NXPLOG_FWDNLD_LOGLEVEL" 63 #define NAME_NXPLOG_TML_LOGLEVEL "NXPLOG_TML_LOGLEVEL" 64 65 #define NAME_MIFARE_READER_ENABLE "MIFARE_READER_ENABLE" 66 #define NAME_FW_STORAGE "FW_STORAGE" 67 #define NAME_NXP_NFC_DEV_NODE "NXP_NFC_DEV_NODE" 68 #define NAME_NXP_FW_TYPE "NXP_FW_TYPE" 69 #define NAME_NXP_FW_PROTECION_OVERRIDE "NXP_FW_PROTECION_OVERRIDE" 70 #define NAME_NXP_SYS_CLK_SRC_SEL "NXP_SYS_CLK_SRC_SEL" 71 #define NAME_NXP_SYS_CLK_FREQ_SEL "NXP_SYS_CLK_FREQ_SEL" 72 #define NAME_NXP_SYS_CLOCK_TO_CFG "NXP_SYS_CLOCK_TO_CFG" 73 #define NAME_NXP_ACT_PROP_EXTN "NXP_ACT_PROP_EXTN" 74 #define NAME_NXP_EXT_TVDD_CFG "NXP_EXT_TVDD_CFG" 75 #define NAME_NXP_EXT_TVDD_CFG_1 "NXP_EXT_TVDD_CFG_1" 76 #define NAME_NXP_EXT_TVDD_CFG_2 "NXP_EXT_TVDD_CFG_2" 77 #define NAME_NXP_EXT_TVDD_CFG_3 "NXP_EXT_TVDD_CFG_3" 78 #define NAME_NXP_RF_CONF_BLK_1 "NXP_RF_CONF_BLK_1" 79 #define NAME_NXP_RF_CONF_BLK_2 "NXP_RF_CONF_BLK_2" 80 #define NAME_NXP_RF_CONF_BLK_3 "NXP_RF_CONF_BLK_3" 81 #define NAME_NXP_RF_CONF_BLK_4 "NXP_RF_CONF_BLK_4" 82 #define NAME_NXP_RF_CONF_BLK_5 "NXP_RF_CONF_BLK_5" 83 #define NAME_NXP_RF_CONF_BLK_6 "NXP_RF_CONF_BLK_6" 84 #define NAME_NXP_CORE_CONF_EXTN "NXP_CORE_CONF_EXTN" 85 #define NAME_NXP_CORE_CONF "NXP_CORE_CONF" 86 #define NAME_NXP_NFC_PROFILE_EXTN "NXP_NFC_PROFILE_EXTN" 87 #define NAME_NXP_CHINA_TIANJIN_RF_ENABLED "NXP_CHINA_TIANJIN_RF_ENABLED" 88 #define NAME_NXP_SWP_SWITCH_TIMEOUT "NXP_SWP_SWITCH_TIMEOUT" 89 #define NAME_NXP_SWP_FULL_PWR_ON "NXP_SWP_FULL_PWR_ON" 90 #define NAME_NXP_CORE_RF_FIELD "NXP_CORE_RF_FIELD" 91 #define NAME_NXP_I2C_FRAGMENTATION_ENABLED "NXP_I2C_FRAGMENTATION_ENABLED" 92 #define NAME_ISO_DEP_MAX_TRANSCEIVE "ISO_DEP_MAX_TRANSCEIVE" 93 #define NAME_AID_MATCHING_PLATFORM "AID_MATCHING_PLATFORM" 94 #define NAME_NFC_DEBUG_ENABLED "NFC_DEBUG_ENABLED" 95 #define NAME_RF_STATUS_UPDATE_ENABLE "RF_STATUS_UPDATE_ENABLE" 96 #define NAME_DEFAULT_ROUTE "DEFAULT_ROUTE" 97 #define NAME_DEFAULT_OFFHOST_ROUTE "DEFAULT_OFFHOST_ROUTE" 98 #define NAME_DEFAULT_NFCF_ROUTE "DEFAULT_NFCF_ROUTE" 99 #define NAME_DEFAULT_SYS_CODE_ROUTE "DEFAULT_SYS_CODE_ROUTE" 100 #define NAME_DEFAULT_SYS_CODE_PWR_STATE "DEFAULT_SYS_CODE_PWR_STATE" 101 #define NAME_DEVICE_HOST_WHITE_LIST "DEVICE_HOST_WHITE_LIST" 102 #define NAME_OFF_HOST_ESE_PIPE_ID "OFF_HOST_ESE_PIPE_ID" 103 #define NAME_OFF_HOST_SIM_PIPE_ID "OFF_HOST_SIM_PIPE_ID" 104 #define NAME_NFA_PROPRIETARY_CFG "NFA_PROPRIETARY_CFG" 105 #define NAME_PRESENCE_CHECK_ALGORITHM "PRESENCE_CHECK_ALGORITHM" 106 #define NAME_NXP_PHASE_TIRM_OFFSET_SIGN_UPDATE "NXP_PHASE_TIRM_OFFSET_SIGN_UPDATE" 107 #define NAME_OFFHOST_ROUTE_ESE "OFFHOST_ROUTE_ESE" 108 #define NAME_OFFHOST_ROUTE_UICC "OFFHOST_ROUTE_UICC" 109 #define NAME_DEFAULT_ISODEP_ROUTE "DEFAULT_ISODEP_ROUTE" 110 111 /* default configuration */ 112 #define default_storage_location "/data/vendor/nfc" 113 114 #endif 115