xref: /aosp_15_r20/system/nfc/src/include/vendor_cfg.h (revision 7eba2f3b06c51ae21384f6a4f14577b668a869b3)
1*7eba2f3bSAndroid Build Coastguard Worker /*
2*7eba2f3bSAndroid Build Coastguard Worker  * Copyright (C) 2015 The Android Open Source Project
3*7eba2f3bSAndroid Build Coastguard Worker  *
4*7eba2f3bSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*7eba2f3bSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*7eba2f3bSAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*7eba2f3bSAndroid Build Coastguard Worker  *
8*7eba2f3bSAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*7eba2f3bSAndroid Build Coastguard Worker  *
10*7eba2f3bSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*7eba2f3bSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*7eba2f3bSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*7eba2f3bSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*7eba2f3bSAndroid Build Coastguard Worker  * limitations under the License.
15*7eba2f3bSAndroid Build Coastguard Worker  */
16*7eba2f3bSAndroid Build Coastguard Worker 
17*7eba2f3bSAndroid Build Coastguard Worker /******************************************************************************
18*7eba2f3bSAndroid Build Coastguard Worker  *
19*7eba2f3bSAndroid Build Coastguard Worker  *  This file contains compile-time configurable constants for vendor specific
20*7eba2f3bSAndroid Build Coastguard Worker  *proprietary protocols
21*7eba2f3bSAndroid Build Coastguard Worker  *
22*7eba2f3bSAndroid Build Coastguard Worker  ******************************************************************************/
23*7eba2f3bSAndroid Build Coastguard Worker #ifndef __NFC_VENDOR_CFG_H__
24*7eba2f3bSAndroid Build Coastguard Worker #define __NFC_VENDOR_CFG_H__
25*7eba2f3bSAndroid Build Coastguard Worker 
26*7eba2f3bSAndroid Build Coastguard Worker /* compile-time configuration structure for proprietary protocol and discovery
27*7eba2f3bSAndroid Build Coastguard Worker  * value */
28*7eba2f3bSAndroid Build Coastguard Worker typedef struct {
29*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_18092_active;
30*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_b_prime;
31*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_dual;
32*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_15693;
33*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_kovio;
34*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_mfc;
35*7eba2f3bSAndroid Build Coastguard Worker 
36*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_discovery_kovio_poll;
37*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_discovery_b_prime_poll;
38*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_discovery_b_prime_listen;
39*7eba2f3bSAndroid Build Coastguard Worker   uint8_t pro_protocol_chinese_id;
40*7eba2f3bSAndroid Build Coastguard Worker } tNFA_PROPRIETARY_CFG;
41*7eba2f3bSAndroid Build Coastguard Worker 
42*7eba2f3bSAndroid Build Coastguard Worker extern tNFA_PROPRIETARY_CFG* p_nfa_proprietary_cfg;
43*7eba2f3bSAndroid Build Coastguard Worker 
44*7eba2f3bSAndroid Build Coastguard Worker /**********************************************
45*7eba2f3bSAndroid Build Coastguard Worker  * Proprietary Protocols
46*7eba2f3bSAndroid Build Coastguard Worker  **********************************************/
47*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_18092_ACTIVE
48*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_18092_ACTIVE \
49*7eba2f3bSAndroid Build Coastguard Worker   (p_nfa_proprietary_cfg->pro_protocol_18092_active)
50*7eba2f3bSAndroid Build Coastguard Worker #endif
51*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_B_PRIME
52*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_B_PRIME (p_nfa_proprietary_cfg->pro_protocol_b_prime)
53*7eba2f3bSAndroid Build Coastguard Worker #endif
54*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_DUAL
55*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_DUAL (p_nfa_proprietary_cfg->pro_protocol_dual)
56*7eba2f3bSAndroid Build Coastguard Worker #endif
57*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_15693
58*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_15693 (p_nfa_proprietary_cfg->pro_protocol_15693)
59*7eba2f3bSAndroid Build Coastguard Worker #endif
60*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_KOVIO
61*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_KOVIO (p_nfa_proprietary_cfg->pro_protocol_kovio)
62*7eba2f3bSAndroid Build Coastguard Worker #endif
63*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_MIFARE
64*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_MIFARE (p_nfa_proprietary_cfg->pro_protocol_mfc)
65*7eba2f3bSAndroid Build Coastguard Worker #endif
66*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_PROTOCOL_CI
67*7eba2f3bSAndroid Build Coastguard Worker #define NCI_PROTOCOL_CI (p_nfa_proprietary_cfg->pro_protocol_chinese_id)
68*7eba2f3bSAndroid Build Coastguard Worker #endif
69*7eba2f3bSAndroid Build Coastguard Worker 
70*7eba2f3bSAndroid Build Coastguard Worker /**********************************************
71*7eba2f3bSAndroid Build Coastguard Worker  * Proprietary Discovery technology and mode
72*7eba2f3bSAndroid Build Coastguard Worker  **********************************************/
73*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_DISCOVERY_TYPE_POLL_KOVIO
74*7eba2f3bSAndroid Build Coastguard Worker #define NCI_DISCOVERY_TYPE_POLL_KOVIO \
75*7eba2f3bSAndroid Build Coastguard Worker   (p_nfa_proprietary_cfg->pro_discovery_kovio_poll)
76*7eba2f3bSAndroid Build Coastguard Worker #endif
77*7eba2f3bSAndroid Build Coastguard Worker 
78*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_DISCOVERY_TYPE_POLL_B_PRIME
79*7eba2f3bSAndroid Build Coastguard Worker #define NCI_DISCOVERY_TYPE_POLL_B_PRIME \
80*7eba2f3bSAndroid Build Coastguard Worker   (p_nfa_proprietary_cfg->pro_discovery_b_prime_poll)
81*7eba2f3bSAndroid Build Coastguard Worker #endif
82*7eba2f3bSAndroid Build Coastguard Worker 
83*7eba2f3bSAndroid Build Coastguard Worker #ifndef NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
84*7eba2f3bSAndroid Build Coastguard Worker #define NCI_DISCOVERY_TYPE_LISTEN_B_PRIME \
85*7eba2f3bSAndroid Build Coastguard Worker   (p_nfa_proprietary_cfg->pro_discovery_b_prime_listen)
86*7eba2f3bSAndroid Build Coastguard Worker #endif
87*7eba2f3bSAndroid Build Coastguard Worker 
88*7eba2f3bSAndroid Build Coastguard Worker #endif /* __NFC_VENDOR_CFG_H__ */
89