mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
bfeb4dbc5c
commit
d5a2ca60e4
5 changed files with 137 additions and 16 deletions
|
@ -275,11 +275,27 @@ struct rf_tech_specific_params_nfca_poll {
|
|||
__u8 sel_res;
|
||||
} __packed;
|
||||
|
||||
struct rf_tech_specific_params_nfcb_poll {
|
||||
__u8 sensb_res_len;
|
||||
__u8 sensb_res[12]; /* 11 or 12 Bytes */
|
||||
} __packed;
|
||||
|
||||
struct rf_tech_specific_params_nfcf_poll {
|
||||
__u8 bit_rate;
|
||||
__u8 sensf_res_len;
|
||||
__u8 sensf_res[18]; /* 16 or 18 Bytes */
|
||||
} __packed;
|
||||
|
||||
struct activation_params_nfca_poll_iso_dep {
|
||||
__u8 rats_res_len;
|
||||
__u8 rats_res[20];
|
||||
};
|
||||
|
||||
struct activation_params_nfcb_poll_iso_dep {
|
||||
__u8 attrib_res_len;
|
||||
__u8 attrib_res[50];
|
||||
};
|
||||
|
||||
struct nci_rf_intf_activated_ntf {
|
||||
__u8 rf_discovery_id;
|
||||
__u8 rf_interface;
|
||||
|
@ -291,6 +307,8 @@ struct nci_rf_intf_activated_ntf {
|
|||
|
||||
union {
|
||||
struct rf_tech_specific_params_nfca_poll nfca_poll;
|
||||
struct rf_tech_specific_params_nfcb_poll nfcb_poll;
|
||||
struct rf_tech_specific_params_nfcf_poll nfcf_poll;
|
||||
} rf_tech_specific_params;
|
||||
|
||||
__u8 data_exch_rf_tech_and_mode;
|
||||
|
@ -300,6 +318,7 @@ struct nci_rf_intf_activated_ntf {
|
|||
|
||||
union {
|
||||
struct activation_params_nfca_poll_iso_dep nfca_poll_iso_dep;
|
||||
struct activation_params_nfcb_poll_iso_dep nfcb_poll_iso_dep;
|
||||
} activation_params;
|
||||
|
||||
} __packed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue