nxpandroid | 64fd68c | 2015-09-23 16:45:15 +0530 | [diff] [blame] | 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 | * |
nxpandroid | 34627bd | 2016-05-27 15:52:30 +0530 | [diff] [blame^] | 23 | * Copyright (C) 2015 The Android Open Source Project |
nxpandroid | 64fd68c | 2015-09-23 16:45:15 +0530 | [diff] [blame] | 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 | * |
nxpandroid | 34627bd | 2016-05-27 15:52:30 +0530 | [diff] [blame^] | 29 | * http://www.apache.org/licenses/LICENSE-2.0 |
nxpandroid | 64fd68c | 2015-09-23 16:45:15 +0530 | [diff] [blame] | 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 _NXP_CONFIG_H |
| 40 | #define _NXP_CONFIG_H |
| 41 | |
| 42 | #ifdef __cplusplus |
| 43 | extern "C" |
| 44 | { |
| 45 | #endif |
| 46 | |
nxpandroid | 34627bd | 2016-05-27 15:52:30 +0530 | [diff] [blame^] | 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 | |
nxpandroid | 64fd68c | 2015-09-23 16:45:15 +0530 | [diff] [blame] | 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_NAME "NXP_FW_NAME" |
| 68 | #define NAME_NXP_ACT_PROP_EXTN "NXP_ACT_PROP_EXTN" |
| 69 | #define NAME_NXP_RF_CONF_BLK_1 "NXP_RF_CONF_BLK_1" |
| 70 | #define NAME_NXP_RF_CONF_BLK_2 "NXP_RF_CONF_BLK_2" |
| 71 | #define NAME_NXP_RF_CONF_BLK_3 "NXP_RF_CONF_BLK_3" |
| 72 | #define NAME_NXP_RF_CONF_BLK_4 "NXP_RF_CONF_BLK_4" |
nxpandroid | 34627bd | 2016-05-27 15:52:30 +0530 | [diff] [blame^] | 73 | #define NAME_NXP_RF_CONF_BLK_5 "NXP_RF_CONF_BLK_5" |
| 74 | #define NAME_NXP_RF_CONF_BLK_6 "NXP_RF_CONF_BLK_6" |
nxpandroid | 64fd68c | 2015-09-23 16:45:15 +0530 | [diff] [blame] | 75 | #define NAME_NXP_CORE_CONF_EXTN "NXP_CORE_CONF_EXTN" |
| 76 | #define NAME_NXP_CORE_CONF "NXP_CORE_CONF" |
| 77 | #define NAME_NXP_CORE_MFCKEY_SETTING "NXP_CORE_MFCKEY_SETTING" |
| 78 | #define NAME_NXP_CORE_STANDBY "NXP_CORE_STANDBY" |
| 79 | #define NAME_NXP_DEFAULT_SE "NXP_DEFAULT_SE" |
| 80 | #define NAME_NXP_NFC_CHIP "NXP_NFC_CHIP" |
| 81 | #define NAME_NXP_SWP_RD_START_TIMEOUT "NXP_SWP_RD_START_TIMEOUT" |
| 82 | #define NAME_NXP_SWP_RD_TAG_OP_TIMEOUT "NXP_SWP_RD_TAG_OP_TIMEOUT" |
| 83 | #define NAME_NXP_DEFAULT_NFCEE_TIMEOUT "NXP_DEFAULT_NFCEE_TIMEOUT" |
| 84 | #define NAME_NXP_DEFAULT_NFCEE_DISC_TIMEOUT "NXP_DEFAULT_NFCEE_DISC_TIMEOUT" |
| 85 | #define NAME_NXP_CE_ROUTE_STRICT_DISABLE "NXP_CE_ROUTE_STRICT_DISABLE" |
| 86 | #define NAME_NXP_P61_LS_DEFAULT_INTERFACE "NXP_P61_LS_DEFAULT_INTERFACE" |
| 87 | #define NAME_NXP_P61_JCOP_DEFAULT_INTERFACE "NXP_P61_JCOP_DEFAULT_INTERFACE" |
| 88 | #define NAME_NXP_JCOPDL_AT_BOOT_ENABLE "NXP_JCOPDL_AT_BOOT_ENABLE" |
| 89 | #define NAME_NXP_P61_LTSM_DEFAULT_INTERFACE "NXP_P61_LTSM_DEFAULT_INTERFACE" |
| 90 | #define NAME_NXP_LOADER_SERICE_VERSION "NXP_LOADER_SERVICE_VERSION" |
| 91 | #define NAME_NXP_AGC_DEBUG_ENABLE "NXP_AGC_DEBUG_ENABLE" |
| 92 | #define NAME_NXP_WIRED_MODE_RF_FIELD_ENABLE "NXP_WIRED_MODE_RF_FIELD_ENABLE" |
| 93 | #define NAME_NXP_UICC_WIRED_PRT_MASK "NXP_UICC_WIRED_PRT_MASK" |
| 94 | #define NAME_NXP_ESE_WIRED_PRT_MASK "NXP_ESE_WIRED_PRT_MASK" |
| 95 | #define NAME_NXP_ENABLE_ADD_AID "NXP_ENABLE_ADD_AID" |
| 96 | /* default configuration */ |
| 97 | #define default_storage_location "/data/nfc" |
| 98 | |
| 99 | #endif //_NXP_CONFIG_H |