/****************************************************************************** * * Copyright (C) 1999-2012 Broadcom Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ /****************************************************************************** * * The original Work has been changed by NXP Semiconductors. * * Copyright (C) 2013-2014 NXP Semiconductors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ /****************************************************************************** * * The original Work has been changed by Samsung Electronics. * * Copyright (C) 2018 Samsung Electronics, System LSI Division * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ #ifndef __CONFIG_H #define __CONFIG_H #ifdef __cplusplus extern "C" { #endif int GetStrValue(const char* name, char* p_value, unsigned long len); // SLSI int GetNumValue(const char* name, void* p_value, unsigned long len); // SLSI int GetByteArrayValue(const char* name, char* pValue, long bufflen, long* len); // SLSI #if (NFC_SEC_NOT_OPEN_INCLUDED == TRUE) void Set_user_prefix(char* field); #endif void resetConfig(void); int isConfigModified(); int updateConfigTimestamp(); #ifdef __cplusplus }; #endif #define NAME_MIFARE_READER_ENABLE "MIFARE_READER_ENABLE" #define NAME_FW_STORAGE "FW_STORAGE" #define NAME_ISO_DEP_MAX_TRANSCEIVE "ISO_DEP_MAX_TRANSCEIVE" #define NAME_AID_MATCHING_PLATFORM "AID_MATCHING_PLATFORM" #define NAME_NFC_DEBUG_ENABLED "NFC_DEBUG_ENABLED" #define NAME_RF_STATUS_UPDATE_ENABLE "RF_STATUS_UPDATE_ENABLE" #define NAME_DEFAULT_ROUTE "DEFAULT_ROUTE" #define NAME_DEFAULT_OFFHOST_ROUTE "DEFAULT_OFFHOST_ROUTE" #define NAME_DEFAULT_NFCF_ROUTE "DEFAULT_NFCF_ROUTE" #define NAME_DEFAULT_SYS_CODE_ROUTE "DEFAULT_SYS_CODE_ROUTE" #define NAME_DEFAULT_SYS_CODE_PWR_STATE "DEFAULT_SYS_CODE_PWR_STATE" #define NAME_DEVICE_HOST_WHITE_LIST "DEVICE_HOST_WHITE_LIST" #define NAME_OFF_HOST_ESE_PIPE_ID "OFF_HOST_ESE_PIPE_ID" #define NAME_OFF_HOST_SIM_PIPE_ID "OFF_HOST_SIM_PIPE_ID" #define NAME_NFA_PROPRIETARY_CFG "NFA_PROPRIETARY_CFG" #define NAME_PRESENCE_CHECK_ALGORITHM "PRESENCE_CHECK_ALGORITHM" #define NAME_OFFHOST_ROUTE_ESE "OFFHOST_ROUTE_ESE" #define NAME_OFFHOST_ROUTE_UICC "OFFHOST_ROUTE_UICC" #define NAME_DEFAULT_ISODEP_ROUTE "DEFAULT_ISODEP_ROUTE" /* default configuration */ #define default_storage_location "/data/vendor/nfc" #endif