diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-02-01 16:26:10 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-02-02 15:50:38 -0500 |
commit | af9c8aa67d07adcd3b41fb2934af7af056eabecf (patch) | |
tree | 69419bec627cc506669a6227bf9df9daba1ce17b /include/net | |
parent | 8277f6937ae97c51ced5b54faa4934613c76999c (diff) |
NFC: nci: Add NFCEE discover support
NFCEEs (NFC Execution Environment) have to be explicitly
discovered by sending the NCI_OP_NFCEE_DISCOVER_CMD
command. The NFCC will respond to this command by telling
us how many NFCEEs are connected to it. Then the NFCC sends
a notification command for each and every NFCEE connected.
Here we implement support for sending
NCI_OP_NFCEE_DISCOVER_CMD command, receiving the response
and the potential notifications.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/nfc/nci_core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h index 5e508741f208..31ad795aa4b5 100644 --- a/include/net/nfc/nci_core.h +++ b/include/net/nfc/nci_core.h | |||
@@ -100,6 +100,8 @@ struct nci_conn_info { | |||
100 | struct sk_buff *rx_skb; | 100 | struct sk_buff *rx_skb; |
101 | }; | 101 | }; |
102 | 102 | ||
103 | #define NCI_INVALID_CONN_ID 0x80 | ||
104 | |||
103 | /* NCI Core structures */ | 105 | /* NCI Core structures */ |
104 | struct nci_dev { | 106 | struct nci_dev { |
105 | struct nfc_dev *nfc_dev; | 107 | struct nfc_dev *nfc_dev; |
@@ -182,6 +184,8 @@ void nci_unregister_device(struct nci_dev *ndev); | |||
182 | int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); | 184 | int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); |
183 | int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val); | 185 | int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val); |
184 | 186 | ||
187 | int nci_nfcee_discover(struct nci_dev *ndev, u8 action); | ||
188 | |||
185 | static inline struct sk_buff *nci_skb_alloc(struct nci_dev *ndev, | 189 | static inline struct sk_buff *nci_skb_alloc(struct nci_dev *ndev, |
186 | unsigned int len, | 190 | unsigned int len, |
187 | gfp_t how) | 191 | gfp_t how) |