1 /* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef _NXP_CONFIG_H 18 #define _NXP_CONFIG_H 19 20 #ifdef __cplusplus 21 extern "C" 22 { 23 #endif 24 25 int GetNxpStrValue (const char* name, char* p_value, unsigned long len); 26 int GetNxpNumValue (const char* name, void* p_value, unsigned long len); 27 int GetNxpByteArrayValue (const char* name, char* pValue, long bufflen, long *len); 28 void resetNxpConfig (void); 29 int isNxpConfigModified (); 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #define NAME_NXPLOG_EXTNS_LOGLEVEL "NXPLOG_EXTNS_LOGLEVEL" 36 #define NAME_NXPLOG_NCIHAL_LOGLEVEL "NXPLOG_NCIHAL_LOGLEVEL" 37 #define NAME_NXPLOG_NCIX_LOGLEVEL "NXPLOG_NCIX_LOGLEVEL" 38 #define NAME_NXPLOG_NCIR_LOGLEVEL "NXPLOG_NCIR_LOGLEVEL" 39 #define NAME_NXPLOG_FWDNLD_LOGLEVEL "NXPLOG_FWDNLD_LOGLEVEL" 40 #define NAME_NXPLOG_TML_LOGLEVEL "NXPLOG_TML_LOGLEVEL" 41 42 #define NAME_MIFARE_READER_ENABLE "MIFARE_READER_ENABLE" 43 #define NAME_FW_STORAGE "FW_STORAGE" 44 #define NAME_NXP_ACT_PROP_EXTN "NXP_ACT_PROP_EXTN" 45 #define NAME_NXP_RF_CONF_BLK_1 "NXP_RF_CONF_BLK_1" 46 #define NAME_NXP_RF_CONF_BLK_2 "NXP_RF_CONF_BLK_2" 47 #define NAME_NXP_RF_CONF_BLK_3 "NXP_RF_CONF_BLK_3" 48 #define NAME_NXP_RF_CONF_BLK_4 "NXP_RF_CONF_BLK_4" 49 #define NAME_NXP_CORE_CONF_EXTN "NXP_CORE_CONF_EXTN" 50 #define NAME_NXP_CORE_CONF "NXP_CORE_CONF" 51 #define NAME_NXP_CORE_MFCKEY_SETTING "NXP_CORE_MFCKEY_SETTING" 52 #define NAME_NXP_CORE_STANDBY "NXP_CORE_STANDBY" 53 #define NAME_NXP_DEFAULT_SE "NXP_DEFAULT_SE" 54 #define NAME_NXP_NFC_CHIP "NXP_NFC_CHIP" 55 #define NAME_NXP_SWP_RD_START_TIMEOUT "NXP_SWP_RD_START_TIMEOUT" 56 #define NAME_NXP_SWP_RD_TAG_OP_TIMEOUT "NXP_SWP_RD_TAG_OP_TIMEOUT" 57 #define NAME_NXP_DEFAULT_NFCEE_TIMEOUT "NXP_DEFAULT_NFCEE_TIMEOUT" 58 #define NAME_NXP_DEFAULT_NFCEE_DISC_TIMEOUT "NXP_DEFAULT_NFCEE_DISC_TIMEOUT" 59 #define NAME_NXP_CE_ROUTE_STRICT_DISABLE "NXP_CE_ROUTE_STRICT_DISABLE" 60 #define NAME_NXP_P61_LS_DEFAULT_INTERFACE "NXP_P61_LS_DEFAULT_INTERFACE" 61 #define NAME_NXP_P61_JCOP_DEFAULT_INTERFACE "NXP_P61_JCOP_DEFAULT_INTERFACE" 62 #define NAME_NXP_JCOPDL_AT_BOOT_ENABLE "NXP_JCOPDL_AT_BOOT_ENABLE" 63 #define NAME_NXP_P61_LTSM_DEFAULT_INTERFACE "NXP_P61_LTSM_DEFAULT_INTERFACE" 64 #define NAME_NXP_LOADER_SERICE_VERSION "NXP_LOADER_SERVICE_VERSION" 65 /* default configuration */ 66 #define default_storage_location "/data/nfc" 67 68 #endif // _NXP_CONFIG_H 69