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 /include/net | |
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 'include/net')
-rw-r--r-- | include/net/nfc/nfc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 3a3304c094d7..bf82d292d68c 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h | |||
@@ -52,6 +52,9 @@ struct nfc_ops { | |||
52 | int (*dev_down)(struct nfc_dev *dev); | 52 | int (*dev_down)(struct nfc_dev *dev); |
53 | int (*start_poll)(struct nfc_dev *dev, u32 protocols); | 53 | int (*start_poll)(struct nfc_dev *dev, u32 protocols); |
54 | void (*stop_poll)(struct nfc_dev *dev); | 54 | void (*stop_poll)(struct nfc_dev *dev); |
55 | int (*dep_link_up)(struct nfc_dev *dev, int target_idx, | ||
56 | u8 comm_mode, u8 rf_mode); | ||
57 | int (*dep_link_down)(struct nfc_dev *dev); | ||
55 | int (*activate_target)(struct nfc_dev *dev, u32 target_idx, | 58 | int (*activate_target)(struct nfc_dev *dev, u32 target_idx, |
56 | u32 protocol); | 59 | u32 protocol); |
57 | void (*deactivate_target)(struct nfc_dev *dev, u32 target_idx); | 60 | void (*deactivate_target)(struct nfc_dev *dev, u32 target_idx); |
@@ -60,6 +63,9 @@ struct nfc_ops { | |||
60 | void *cb_context); | 63 | void *cb_context); |
61 | }; | 64 | }; |
62 | 65 | ||
66 | #define NFC_TARGET_IDX_ANY -1 | ||
67 | #define NFC_MAX_GT_LEN 48 | ||
68 | |||
63 | struct nfc_target { | 69 | struct nfc_target { |
64 | u32 idx; | 70 | u32 idx; |
65 | u32 supported_protocols; | 71 | u32 supported_protocols; |
@@ -83,6 +89,8 @@ struct nfc_dev { | |||
83 | bool dev_up; | 89 | bool dev_up; |
84 | bool polling; | 90 | bool polling; |
85 | bool remote_activated; | 91 | bool remote_activated; |
92 | bool dep_link_up; | ||
93 | u32 dep_rf_mode; | ||
86 | struct nfc_genl_data genl_data; | 94 | struct nfc_genl_data genl_data; |
87 | u32 supported_protocols; | 95 | u32 supported_protocols; |
88 | 96 | ||
@@ -165,4 +173,7 @@ struct sk_buff *nfc_alloc_recv_skb(unsigned int size, gfp_t gfp); | |||
165 | int nfc_targets_found(struct nfc_dev *dev, struct nfc_target *targets, | 173 | int nfc_targets_found(struct nfc_dev *dev, struct nfc_target *targets, |
166 | int ntargets); | 174 | int ntargets); |
167 | 175 | ||
176 | int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, | ||
177 | u8 comm_mode, u8 rf_mode); | ||
178 | |||
168 | #endif /* __NET_NFC_H */ | 179 | #endif /* __NET_NFC_H */ |