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  *
40  *  The original Work has been changed by Samsung Electronics.
41 
42  *
43  *  Copyright (C) 2018 Samsung Electronics, System LSI Division
44  *
45  *  Licensed under the Apache License, Version 2.0 (the "License");
46  *  you may not use this file except in compliance with the License.
47  *  You may obtain a copy of the License at
48  *
49  *  http://www.apache.org/licenses/LICENSE-2.0
50  *
51  *  Unless required by applicable law or agreed to in writing, software
52  *  distributed under the License is distributed on an "AS IS" BASIS,
53  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54  *  See the License for the specific language governing permissions and
55  *  limitations under the License.
56  *
57  ******************************************************************************/
58 #ifndef __CONFIG_H
59 #define __CONFIG_H
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 int GetStrValue(const char* name, char* p_value, unsigned long len);  // SLSI
66 int GetNumValue(const char* name, void* p_value, unsigned long len);  // SLSI
67 int GetByteArrayValue(const char* name, char* pValue, long bufflen,
68                       long* len);  // SLSI
69 #if (NFC_SEC_NOT_OPEN_INCLUDED == TRUE)
70 void Set_user_prefix(char* field);
71 #endif
72 
73 void resetConfig(void);
74 int isConfigModified();
75 int updateConfigTimestamp();
76 
77 #ifdef __cplusplus
78 };
79 #endif
80 #define NAME_MIFARE_READER_ENABLE "MIFARE_READER_ENABLE"
81 #define NAME_FW_STORAGE "FW_STORAGE"
82 
83 #define NAME_ISO_DEP_MAX_TRANSCEIVE "ISO_DEP_MAX_TRANSCEIVE"
84 #define NAME_AID_MATCHING_PLATFORM "AID_MATCHING_PLATFORM"
85 #define NAME_NFC_DEBUG_ENABLED "NFC_DEBUG_ENABLED"
86 #define NAME_RF_STATUS_UPDATE_ENABLE "RF_STATUS_UPDATE_ENABLE"
87 #define NAME_DEFAULT_ROUTE "DEFAULT_ROUTE"
88 #define NAME_DEFAULT_OFFHOST_ROUTE "DEFAULT_OFFHOST_ROUTE"
89 #define NAME_DEFAULT_NFCF_ROUTE "DEFAULT_NFCF_ROUTE"
90 #define NAME_DEFAULT_SYS_CODE_ROUTE "DEFAULT_SYS_CODE_ROUTE"
91 #define NAME_DEFAULT_SYS_CODE_PWR_STATE "DEFAULT_SYS_CODE_PWR_STATE"
92 #define NAME_DEVICE_HOST_WHITE_LIST "DEVICE_HOST_WHITE_LIST"
93 #define NAME_OFF_HOST_ESE_PIPE_ID "OFF_HOST_ESE_PIPE_ID"
94 #define NAME_OFF_HOST_SIM_PIPE_ID "OFF_HOST_SIM_PIPE_ID"
95 #define NAME_NFA_PROPRIETARY_CFG "NFA_PROPRIETARY_CFG"
96 #define NAME_PRESENCE_CHECK_ALGORITHM "PRESENCE_CHECK_ALGORITHM"
97 
98 #define NAME_OFFHOST_ROUTE_ESE "OFFHOST_ROUTE_ESE"
99 #define NAME_OFFHOST_ROUTE_UICC "OFFHOST_ROUTE_UICC"
100 #define NAME_DEFAULT_ISODEP_ROUTE "DEFAULT_ISODEP_ROUTE"
101 
102 /* default configuration */
103 #define default_storage_location "/data/vendor/nfc"
104 
105 #endif
106