Skip to content

Commit e487e4d

Browse files
mgreerazSamuel Ortiz
authored andcommitted
NFC: Add ISO/IEC 15693 header definitions
Add the header definitions required by upcoming patches that add support for ISO/IEC 15693. Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 35582ad commit e487e4d

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎include/net/nfc/digital.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ enum {
3535
NFC_DIGITAL_RF_TECH_106A = 0,
3636
NFC_DIGITAL_RF_TECH_212F,
3737
NFC_DIGITAL_RF_TECH_424F,
38+
NFC_DIGITAL_RF_TECH_ISO15693,
3839

3940
NFC_DIGITAL_RF_TECH_LAST,
4041
};
@@ -57,6 +58,9 @@ enum {
5758
NFC_DIGITAL_FRAMING_NFCF_NFC_DEP,
5859
NFC_DIGITAL_FRAMING_NFC_DEP_ACTIVATED,
5960

61+
NFC_DIGITAL_FRAMING_ISO15693_INVENTORY,
62+
NFC_DIGITAL_FRAMING_ISO15693_TVT, /* Type V Tag (ISO/IEC 15693) */
63+
6064
NFC_DIGITAL_FRAMING_LAST,
6165
};
6266

‎include/net/nfc/nfc.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ struct nfc_target {
111111
u8 sensf_res[NFC_SENSF_RES_MAXSIZE];
112112
u8 hci_reader_gate;
113113
u8 logical_idx;
114+
u8 is_iso15693;
115+
u8 iso15693_dsfid;
116+
u8 iso15693_uid[NFC_ISO15693_UID_MAXSIZE];
114117
};
115118

116119
/**

‎include/uapi/linux/nfc.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ enum nfc_commands {
150150
* @NFC_ATTR_SE_TYPE: Secure element type (UICC or EMBEDDED)
151151
* @NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS: Firmware download operation status
152152
* @NFC_ATTR_APDU: Secure element APDU
153+
* @NFC_ATTR_TARGET_ISO15693_DSFID: ISO 15693 Data Storage Format Identifier
154+
* @NFC_ATTR_TARGET_ISO15693_UID: ISO 15693 Unique Identifier
153155
*/
154156
enum nfc_attrs {
155157
NFC_ATTR_UNSPEC,
@@ -178,6 +180,8 @@ enum nfc_attrs {
178180
NFC_ATTR_SE_AID,
179181
NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS,
180182
NFC_ATTR_SE_APDU,
183+
NFC_ATTR_TARGET_ISO15693_DSFID,
184+
NFC_ATTR_TARGET_ISO15693_UID,
181185
/* private: internal use only */
182186
__NFC_ATTR_AFTER_LAST
183187
};
@@ -200,6 +204,7 @@ enum nfc_sdp_attr {
200204
#define NFC_SENSF_RES_MAXSIZE 18
201205
#define NFC_GB_MAXSIZE 48
202206
#define NFC_FIRMWARE_NAME_MAXSIZE 32
207+
#define NFC_ISO15693_UID_MAXSIZE 8
203208

204209
/* NFC protocols */
205210
#define NFC_PROTO_JEWEL 1
@@ -208,8 +213,9 @@ enum nfc_sdp_attr {
208213
#define NFC_PROTO_ISO14443 4
209214
#define NFC_PROTO_NFC_DEP 5
210215
#define NFC_PROTO_ISO14443_B 6
216+
#define NFC_PROTO_ISO15693 7
211217

212-
#define NFC_PROTO_MAX 7
218+
#define NFC_PROTO_MAX 8
213219

214220
/* NFC communication modes */
215221
#define NFC_COMM_ACTIVE 0
@@ -227,6 +233,7 @@ enum nfc_sdp_attr {
227233
#define NFC_PROTO_ISO14443_MASK (1 << NFC_PROTO_ISO14443)
228234
#define NFC_PROTO_NFC_DEP_MASK (1 << NFC_PROTO_NFC_DEP)
229235
#define NFC_PROTO_ISO14443_B_MASK (1 << NFC_PROTO_ISO14443_B)
236+
#define NFC_PROTO_ISO15693_MASK (1 << NFC_PROTO_ISO15693)
230237

231238
/* NFC Secure Elements */
232239
#define NFC_SE_UICC 0x1

0 commit comments

Comments
 (0)