aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/nfc
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@linux.intel.com>2012-10-02 18:44:06 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-10-26 18:26:46 +0200
commit97f18414af395c547f20300e5d4c81d7190a4155 (patch)
tree4a2eb92f03d4bf8f8ff82452b2118f91d5780eef /include/net/nfc
parentNFC: HCI check presence must not fail when driver doesn't support it (diff)
downloadlinux-dev-97f18414af395c547f20300e5d4c81d7190a4155.tar.xz
linux-dev-97f18414af395c547f20300e5d4c81d7190a4155.zip
NFC: Separate pn544 hci driver in HW dependant and independant parts
The driver now has all HCI stuff isolated in one file, and all the hardware link specifics in another. Writing a pn544 driver on top of another hardware link is now just a matter of adding a new file for that new hardware specifics. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc')
-rw-r--r--include/net/nfc/hci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/nfc/hci.h b/include/net/nfc/hci.h
index bc87b8f2d692..639f50af42df 100644
--- a/include/net/nfc/hci.h
+++ b/include/net/nfc/hci.h
@@ -24,6 +24,12 @@
#include <net/nfc/nfc.h>
+struct nfc_phy_ops {
+ int (*write)(void *dev_id, struct sk_buff *skb);
+ int (*enable)(void *dev_id);
+ void (*disable)(void *dev_id);
+};
+
struct nfc_hci_dev;
struct nfc_hci_ops {