Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
This commit is contained in:
@@ -122,6 +122,16 @@ typedef void (*nfc_digital_cmd_complete_t)(struct nfc_digital_dev *ddev,
|
||||
* switch_rf to turn the radio on. A call to in|tg_configure_hw must turn
|
||||
* the device radio on.
|
||||
* @abort_cmd: Discard the last sent command.
|
||||
*
|
||||
* Notes: Asynchronous functions have a timeout parameter. It is the driver
|
||||
* responsibility to call the digital stack back through the
|
||||
* nfc_digital_cmd_complete_t callback when no RF respsonse has been
|
||||
* received within the specified time (in milliseconds). In that case the
|
||||
* driver must set the resp sk_buff to ERR_PTR(-ETIMEDOUT).
|
||||
* Since the digital stack serializes commands to be sent, it's mandatory
|
||||
* for the driver to handle the timeout correctly. Otherwise the stack
|
||||
* would not be able to send new commands, waiting for the reply of the
|
||||
* current one.
|
||||
*/
|
||||
struct nfc_digital_ops {
|
||||
int (*in_configure_hw)(struct nfc_digital_dev *ddev, int type,
|
||||
|
@@ -67,6 +67,7 @@ struct nci_ops {
|
||||
int (*open)(struct nci_dev *ndev);
|
||||
int (*close)(struct nci_dev *ndev);
|
||||
int (*send)(struct nci_dev *ndev, struct sk_buff *skb);
|
||||
int (*setup)(struct nci_dev *ndev);
|
||||
};
|
||||
|
||||
#define NCI_MAX_SUPPORTED_RF_INTERFACES 4
|
||||
@@ -153,6 +154,7 @@ void nci_free_device(struct nci_dev *ndev);
|
||||
int nci_register_device(struct nci_dev *ndev);
|
||||
void nci_unregister_device(struct nci_dev *ndev);
|
||||
int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
|
||||
int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val);
|
||||
|
||||
static inline struct sk_buff *nci_skb_alloc(struct nci_dev *ndev,
|
||||
unsigned int len,
|
||||
|
Reference in New Issue
Block a user