summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorIlan Elias <ilane@ti.com>2011-09-18 11:19:33 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-09-20 14:43:49 -0400
commit8b3fe7b591b3c50061a8701f8eda14033420577b (patch)
tree1bdd98d750c12c6bdf6999d3f704a1f50e9db477 /include/net
parenta7ce1c9446a7f7513211e4698d07357d20452909 (diff)
downloadblackbird-op-linux-8b3fe7b591b3c50061a8701f8eda14033420577b.tar.gz
blackbird-op-linux-8b3fe7b591b3c50061a8701f8eda14033420577b.zip
NFC: Add dev_up and dev_down control operations
Add 2 new nfc control operations: dev_up to turn on the nfc device dev_down to turn off the nfc device Signed-off-by: Ilan Elias <ilane@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/nfc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/nfc.h b/include/net/nfc.h
index 87b51fe15b70..6a7f602aa841 100644
--- a/include/net/nfc.h
+++ b/include/net/nfc.h
@@ -48,6 +48,8 @@ typedef void (*data_exchange_cb_t)(void *context, struct sk_buff *skb,
int err);
struct nfc_ops {
+ int (*dev_up)(struct nfc_dev *dev);
+ int (*dev_down)(struct nfc_dev *dev);
int (*start_poll)(struct nfc_dev *dev, u32 protocols);
void (*stop_poll)(struct nfc_dev *dev);
int (*activate_target)(struct nfc_dev *dev, u32 target_idx,
@@ -78,7 +80,9 @@ struct nfc_dev {
int targets_generation;
spinlock_t targets_lock;
struct device dev;
+ bool dev_up;
bool polling;
+ bool remote_activated;
struct nfc_genl_data genl_data;
u32 supported_protocols;
OpenPOWER on IntegriCloud