aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/nfc.h
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-12-14 10:43:09 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-14 14:50:12 -0500
commit1ed28f610653e9b18433c6d87e9d333b7e3e886e (patch)
tree176dbd0bfee9c16ef615d6178a26cd1b125e7527 /net/nfc/nfc.h
parentdb81a62451b24eaef59f41e6fb312a88e1a83454 (diff)
NFC: Add a DEP link control netlink command
NFC-DEP (Data Exchange Protocol) is an NFC MAC layer. This command allows to enable and disable the DEP link on to which e.g. LLCP can run. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nfc.h')
-rw-r--r--net/nfc/nfc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h
index 67d605015304..4d0fb125d033 100644
--- a/net/nfc/nfc.h
+++ b/net/nfc/nfc.h
@@ -68,6 +68,10 @@ int nfc_genl_targets_found(struct nfc_dev *dev);
68int nfc_genl_device_added(struct nfc_dev *dev); 68int nfc_genl_device_added(struct nfc_dev *dev);
69int nfc_genl_device_removed(struct nfc_dev *dev); 69int nfc_genl_device_removed(struct nfc_dev *dev);
70 70
71int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx,
72 u8 comm_mode, u8 rf_mode);
73int nfc_genl_dep_link_down_event(struct nfc_dev *dev);
74
71struct nfc_dev *nfc_get_device(unsigned idx); 75struct nfc_dev *nfc_get_device(unsigned idx);
72 76
73static inline void nfc_put_device(struct nfc_dev *dev) 77static inline void nfc_put_device(struct nfc_dev *dev)
@@ -102,6 +106,11 @@ int nfc_start_poll(struct nfc_dev *dev, u32 protocols);
102 106
103int nfc_stop_poll(struct nfc_dev *dev); 107int nfc_stop_poll(struct nfc_dev *dev);
104 108
109int nfc_dep_link_up(struct nfc_dev *dev, int target_idx,
110 u8 comm_mode, u8 rf_mode);
111
112int nfc_dep_link_down(struct nfc_dev *dev);
113
105int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol); 114int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol);
106 115
107int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx); 116int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx);