aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-09-03 17:30:28 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2014-09-07 18:30:15 -0400
commitcebe22244206d51b80c778f09304d21198652f71 (patch)
tree29cfaba18d9b95db12accf4d91b476b52c84451e /drivers/nfc
parentac633ba6acb94a11b09a7ec417c72f65c6308b7a (diff)
NFC: st21nfca: Clean up st21nfca.h macros
Clean up st21nfca.h macros and move the one only used in st21nfca.c. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/st21nfca/st21nfca.c21
-rw-r--r--drivers/nfc/st21nfca/st21nfca.h21
2 files changed, 21 insertions, 21 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c
index 438e06e6eb6a..bff657524b18 100644
--- a/drivers/nfc/st21nfca/st21nfca.c
+++ b/drivers/nfc/st21nfca/st21nfca.c
@@ -45,6 +45,23 @@
45#define ST21NFCA_RF_READER_14443_3_A_ATQA 0x03 45#define ST21NFCA_RF_READER_14443_3_A_ATQA 0x03
46#define ST21NFCA_RF_READER_14443_3_A_SAK 0x04 46#define ST21NFCA_RF_READER_14443_3_A_SAK 0x04
47 47
48#define ST21NFCA_RF_READER_F_DATARATE 0x01
49#define ST21NFCA_RF_READER_F_DATARATE_106 0x01
50#define ST21NFCA_RF_READER_F_DATARATE_212 0x02
51#define ST21NFCA_RF_READER_F_DATARATE_424 0x04
52#define ST21NFCA_RF_READER_F_POL_REQ 0x02
53#define ST21NFCA_RF_READER_F_POL_REQ_DEFAULT 0xffff0000
54#define ST21NFCA_RF_READER_F_NFCID2 0x03
55#define ST21NFCA_RF_READER_F_NFCID1 0x04
56
57#define ST21NFCA_RF_CARD_F_MODE 0x01
58#define ST21NFCA_RF_CARD_F_NFCID2_LIST 0x04
59#define ST21NFCA_RF_CARD_F_NFCID1 0x05
60#define ST21NFCA_RF_CARD_F_SENS_RES 0x06
61#define ST21NFCA_RF_CARD_F_SEL_RES 0x07
62#define ST21NFCA_RF_CARD_F_DATARATE 0x08
63#define ST21NFCA_RF_CARD_F_DATARATE_212_424 0x01
64
48#define ST21NFCA_DEVICE_MGNT_GATE 0x01 65#define ST21NFCA_DEVICE_MGNT_GATE 0x01
49#define ST21NFCA_DEVICE_MGNT_PIPE 0x02 66#define ST21NFCA_DEVICE_MGNT_PIPE 0x02
50 67
@@ -60,6 +77,10 @@
60 ((p & 0x0f) == (ST21NFCA_DM_PIPE_CREATED | ST21NFCA_DM_PIPE_OPEN)) 77 ((p & 0x0f) == (ST21NFCA_DM_PIPE_CREATED | ST21NFCA_DM_PIPE_OPEN))
61 78
62#define ST21NFCA_NFC_MODE 0x03 /* NFC_MODE parameter*/ 79#define ST21NFCA_NFC_MODE 0x03 /* NFC_MODE parameter*/
80#define ST21NFCA_EVT_FIELD_ON 0x11
81#define ST21NFCA_EVT_CARD_DEACTIVATED 0x12
82#define ST21NFCA_EVT_CARD_ACTIVATED 0x13
83#define ST21NFCA_EVT_FIELD_OFF 0x14
63 84
64static DECLARE_BITMAP(dev_mask, ST21NFCA_NUM_DEVICES); 85static DECLARE_BITMAP(dev_mask, ST21NFCA_NUM_DEVICES);
65 86
diff --git a/drivers/nfc/st21nfca/st21nfca.h b/drivers/nfc/st21nfca/st21nfca.h
index 96fe5a62dc0d..a0b77f1ba6d9 100644
--- a/drivers/nfc/st21nfca/st21nfca.h
+++ b/drivers/nfc/st21nfca/st21nfca.h
@@ -82,30 +82,9 @@ struct st21nfca_hci_info {
82#define ST21NFCA_WR_XCHG_DATA 0x10 82#define ST21NFCA_WR_XCHG_DATA 0x10
83 83
84#define ST21NFCA_RF_READER_F_GATE 0x14 84#define ST21NFCA_RF_READER_F_GATE 0x14
85#define ST21NFCA_RF_READER_F_DATARATE 0x01
86#define ST21NFCA_RF_READER_F_DATARATE_106 0x01
87#define ST21NFCA_RF_READER_F_DATARATE_212 0x02
88#define ST21NFCA_RF_READER_F_DATARATE_424 0x04
89#define ST21NFCA_RF_READER_F_POL_REQ 0x02
90#define ST21NFCA_RF_READER_F_POL_REQ_DEFAULT 0xffff0000
91#define ST21NFCA_RF_READER_F_NFCID2 0x03
92#define ST21NFCA_RF_READER_F_NFCID1 0x04
93#define ST21NFCA_RF_READER_F_SENS_RES 0x05
94 85
95#define ST21NFCA_RF_CARD_F_GATE 0x24 86#define ST21NFCA_RF_CARD_F_GATE 0x24
96#define ST21NFCA_RF_CARD_F_MODE 0x01
97#define ST21NFCA_RF_CARD_F_NFCID2_LIST 0x04
98#define ST21NFCA_RF_CARD_F_NFCID1 0x05
99#define ST21NFCA_RF_CARD_F_SENS_RES 0x06
100#define ST21NFCA_RF_CARD_F_SEL_RES 0x07
101#define ST21NFCA_RF_CARD_F_DATARATE 0x08
102#define ST21NFCA_RF_CARD_F_DATARATE_106 0x00
103#define ST21NFCA_RF_CARD_F_DATARATE_212_424 0x01
104 87
105#define ST21NFCA_EVT_SEND_DATA 0x10 88#define ST21NFCA_EVT_SEND_DATA 0x10
106#define ST21NFCA_EVT_FIELD_ON 0x11
107#define ST21NFCA_EVT_CARD_DEACTIVATED 0x12
108#define ST21NFCA_EVT_CARD_ACTIVATED 0x13
109#define ST21NFCA_EVT_FIELD_OFF 0x14
110 89
111#endif /* __LOCAL_ST21NFCA_H_ */ 90#endif /* __LOCAL_ST21NFCA_H_ */