diff options
| author | Eric Lapuyade <eric.lapuyade@linux.intel.com> | 2012-09-11 04:42:54 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-24 18:17:25 -0400 |
| commit | e4c4789e55327e5f2bd6cafcccd46f9b6251bbc3 (patch) | |
| tree | e143a6128fb46578b9634300accece0c9277b56b /include/net | |
| parent | b5faa648faf974b58e5a79eafa9a97e1deed7a8a (diff) | |
NFC: Add a public nfc_hci_send_cmd_async method
This method initiates execution of an HCI cmd. Result will be delivered
through an asynchronous callback.
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/nfc/hci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/nfc/hci.h b/include/net/nfc/hci.h index 6f065d563ec1..54ba2caab4a6 100644 --- a/include/net/nfc/hci.h +++ b/include/net/nfc/hci.h | |||
| @@ -200,6 +200,9 @@ int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, | |||
| 200 | const u8 *param, size_t param_len); | 200 | const u8 *param, size_t param_len); |
| 201 | int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, | 201 | int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, |
| 202 | const u8 *param, size_t param_len, struct sk_buff **skb); | 202 | const u8 *param, size_t param_len, struct sk_buff **skb); |
| 203 | int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, | ||
| 204 | const u8 *param, size_t param_len, | ||
| 205 | data_exchange_cb_t cb, void *cb_context); | ||
| 203 | int nfc_hci_send_response(struct nfc_hci_dev *hdev, u8 gate, u8 response, | 206 | int nfc_hci_send_response(struct nfc_hci_dev *hdev, u8 gate, u8 response, |
| 204 | const u8 *param, size_t param_len); | 207 | const u8 *param, size_t param_len); |
| 205 | int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, | 208 | int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, |
