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 { 45 #endif 46 47 int GetNxpStrValue(const char* name, char* p_value, unsigned long len); 48 int GetNxpNumValue(const char* name, void* p_value, unsigned long len); 49 int GetNxpByteArrayValue(const char* name, char* pValue,long bufflen, 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_FW_PROTECION_OVERRIDE "NXP_FW_PROTECION_OVERRIDE" 68 #define NAME_NXP_SYS_CLK_SRC_SEL "NXP_SYS_CLK_SRC_SEL" 69 #define NAME_NXP_SYS_CLK_FREQ_SEL "NXP_SYS_CLK_FREQ_SEL" 70 #define NAME_NXP_SYS_CLOCK_TO_CFG "NXP_SYS_CLOCK_TO_CFG" 71 #define NAME_NXP_ACT_PROP_EXTN "NXP_ACT_PROP_EXTN" 72 #define NAME_NXP_EXT_TVDD_CFG "NXP_EXT_TVDD_CFG" 73 #define NAME_NXP_EXT_TVDD_CFG_1 "NXP_EXT_TVDD_CFG_1" 74 #define NAME_NXP_EXT_TVDD_CFG_2 "NXP_EXT_TVDD_CFG_2" 75 #define NAME_NXP_EXT_TVDD_CFG_3 "NXP_EXT_TVDD_CFG_3" 76 #define NAME_NXP_RF_CONF_BLK_1 "NXP_RF_CONF_BLK_1" 77 #define NAME_NXP_RF_CONF_BLK_2 "NXP_RF_CONF_BLK_2" 78 #define NAME_NXP_RF_CONF_BLK_3 "NXP_RF_CONF_BLK_3" 79 #define NAME_NXP_RF_CONF_BLK_4 "NXP_RF_CONF_BLK_4" 80 #define NAME_NXP_RF_CONF_BLK_5 "NXP_RF_CONF_BLK_5" 81 #define NAME_NXP_RF_CONF_BLK_6 "NXP_RF_CONF_BLK_6" 82 #define NAME_NXP_CORE_CONF_EXTN "NXP_CORE_CONF_EXTN" 83 #define NAME_NXP_CORE_CONF "NXP_CORE_CONF" 84 #define NAME_NXP_CORE_MFCKEY_SETTING "NXP_CORE_MFCKEY_SETTING" 85 #define NAME_NXP_CORE_STANDBY "NXP_CORE_STANDBY" 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_NFC_MERGE_RF_PARAMS "NXP_NFC_MERGE_RF_PARAMS" 92 #define NAME_NXP_I2C_FRAGMENTATION_ENABLED "NXP_I2C_FRAGMENTATION_ENABLED" 93 #define NAME_AID_MATCHING_PLATFORM "AID_MATCHING_PLATFORM" 94 95 96 /* default configuration */ 97 #define default_storage_location "/data/nfc" 98 99 #endif 100