diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-12-14 10:43:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-14 14:50:12 -0500 |
commit | 1ed28f610653e9b18433c6d87e9d333b7e3e886e (patch) | |
tree | 176dbd0bfee9c16ef615d6178a26cd1b125e7527 /net/nfc/nfc.h | |
parent | db81a62451b24eaef59f41e6fb312a88e1a83454 (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.h | 9 |
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); | |||
68 | int nfc_genl_device_added(struct nfc_dev *dev); | 68 | int nfc_genl_device_added(struct nfc_dev *dev); |
69 | int nfc_genl_device_removed(struct nfc_dev *dev); | 69 | int nfc_genl_device_removed(struct nfc_dev *dev); |
70 | 70 | ||
71 | int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx, | ||
72 | u8 comm_mode, u8 rf_mode); | ||
73 | int nfc_genl_dep_link_down_event(struct nfc_dev *dev); | ||
74 | |||
71 | struct nfc_dev *nfc_get_device(unsigned idx); | 75 | struct nfc_dev *nfc_get_device(unsigned idx); |
72 | 76 | ||
73 | static inline void nfc_put_device(struct nfc_dev *dev) | 77 | static 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 | ||
103 | int nfc_stop_poll(struct nfc_dev *dev); | 107 | int nfc_stop_poll(struct nfc_dev *dev); |
104 | 108 | ||
109 | int nfc_dep_link_up(struct nfc_dev *dev, int target_idx, | ||
110 | u8 comm_mode, u8 rf_mode); | ||
111 | |||
112 | int nfc_dep_link_down(struct nfc_dev *dev); | ||
113 | |||
105 | int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol); | 114 | int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol); |
106 | 115 | ||
107 | int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx); | 116 | int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx); |