diff options
author | Ilan Elias <ilane@ti.com> | 2012-01-17 04:06:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:21:15 -0500 |
commit | d5a2ca60e41fec4ede7b82d3608278523cffe77b (patch) | |
tree | 64faf8e66edaf03fe35b9bd61e8263817a17cca9 /include/linux/nfc.h | |
parent | bfeb4dbc5cb36ae774fabe7b0e0d559e621a2ccd (diff) |
NFC: Export new attributes sensb_res and sensf_res
Export new attributes sensb_res for tech B and sensf_res
for tech F in the target info (returned as a response to
NFC_CMD_GET_TARGET).
The max size of the attributes nfcid1, sensb_res and sensf_res
is exported to user space though include/linux/nfc.
Signed-off-by: Ilan Elias <ilane@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nfc.h')
-rw-r--r-- | include/linux/nfc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/nfc.h b/include/linux/nfc.h index 01d4e5d60325..b4999abcb2a2 100644 --- a/include/linux/nfc.h +++ b/include/linux/nfc.h | |||
@@ -89,6 +89,8 @@ enum nfc_commands { | |||
89 | * @NFC_ATTR_TARGET_SEL_RES: NFC-A targets extra information (useful if the | 89 | * @NFC_ATTR_TARGET_SEL_RES: NFC-A targets extra information (useful if the |
90 | * target is not NFC-Forum compliant) | 90 | * target is not NFC-Forum compliant) |
91 | * @NFC_ATTR_TARGET_NFCID1: NFC-A targets identifier, max 10 bytes | 91 | * @NFC_ATTR_TARGET_NFCID1: NFC-A targets identifier, max 10 bytes |
92 | * @NFC_ATTR_TARGET_SENSB_RES: NFC-B targets extra information, max 12 bytes | ||
93 | * @NFC_ATTR_TARGET_SENSF_RES: NFC-F targets extra information, max 18 bytes | ||
92 | * @NFC_ATTR_COMM_MODE: Passive or active mode | 94 | * @NFC_ATTR_COMM_MODE: Passive or active mode |
93 | * @NFC_ATTR_RF_MODE: Initiator or target | 95 | * @NFC_ATTR_RF_MODE: Initiator or target |
94 | */ | 96 | */ |
@@ -101,6 +103,8 @@ enum nfc_attrs { | |||
101 | NFC_ATTR_TARGET_SENS_RES, | 103 | NFC_ATTR_TARGET_SENS_RES, |
102 | NFC_ATTR_TARGET_SEL_RES, | 104 | NFC_ATTR_TARGET_SEL_RES, |
103 | NFC_ATTR_TARGET_NFCID1, | 105 | NFC_ATTR_TARGET_NFCID1, |
106 | NFC_ATTR_TARGET_SENSB_RES, | ||
107 | NFC_ATTR_TARGET_SENSF_RES, | ||
104 | NFC_ATTR_COMM_MODE, | 108 | NFC_ATTR_COMM_MODE, |
105 | NFC_ATTR_RF_MODE, | 109 | NFC_ATTR_RF_MODE, |
106 | /* private: internal use only */ | 110 | /* private: internal use only */ |
@@ -109,6 +113,9 @@ enum nfc_attrs { | |||
109 | #define NFC_ATTR_MAX (__NFC_ATTR_AFTER_LAST - 1) | 113 | #define NFC_ATTR_MAX (__NFC_ATTR_AFTER_LAST - 1) |
110 | 114 | ||
111 | #define NFC_DEVICE_NAME_MAXSIZE 8 | 115 | #define NFC_DEVICE_NAME_MAXSIZE 8 |
116 | #define NFC_NFCID1_MAXSIZE 10 | ||
117 | #define NFC_SENSB_RES_MAXSIZE 12 | ||
118 | #define NFC_SENSF_RES_MAXSIZE 18 | ||
112 | 119 | ||
113 | /* NFC protocols */ | 120 | /* NFC protocols */ |
114 | #define NFC_PROTO_JEWEL 1 | 121 | #define NFC_PROTO_JEWEL 1 |