Home | History | Annotate | Download | only in utils
      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_NAME "NXP_FW_NAME"
     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_CORE_MFCKEY_SETTING "NXP_CORE_MFCKEY_SETTING"
     87 #define NAME_NXP_CORE_STANDBY "NXP_CORE_STANDBY"
     88 #define NAME_NXP_NFC_PROFILE_EXTN "NXP_NFC_PROFILE_EXTN"
     89 #define NAME_NXP_CHINA_TIANJIN_RF_ENABLED "NXP_CHINA_TIANJIN_RF_ENABLED"
     90 #define NAME_NXP_SWP_SWITCH_TIMEOUT "NXP_SWP_SWITCH_TIMEOUT"
     91 #define NAME_NXP_SWP_FULL_PWR_ON "NXP_SWP_FULL_PWR_ON"
     92 #define NAME_NXP_CORE_RF_FIELD "NXP_CORE_RF_FIELD"
     93 #define NAME_NXP_NFC_MERGE_RF_PARAMS "NXP_NFC_MERGE_RF_PARAMS"
     94 #define NAME_NXP_I2C_FRAGMENTATION_ENABLED "NXP_I2C_FRAGMENTATION_ENABLED"
     95 #define NAME_AID_MATCHING_PLATFORM "AID_MATCHING_PLATFORM"
     96 
     97 /* default configuration */
     98 #define default_storage_location "/data/vendor/nfc"
     99 
    100 #endif
    101