summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@intel.com>2012-04-10 19:43:12 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-04-12 15:10:39 -0400
commitc8d56ae78653c02fc6e6f304a18f860302481c2d (patch)
treec60fce9156d96a746e809302ebeb1eab86e73f25 /include
parent144612cacc0b5c230f0b3aebc3a3a53854c332ee (diff)
downloadlinux-3.10-c8d56ae78653c02fc6e6f304a18f860302481c2d.tar.gz
linux-3.10-c8d56ae78653c02fc6e6f304a18f860302481c2d.tar.bz2
linux-3.10-c8d56ae78653c02fc6e6f304a18f860302481c2d.zip
NFC: Add Core support to generate tag lost event
Some HW/drivers get notifications when a tag moves out of the radio field. This notification is now forwarded to user space through netlink. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/nfc/nfc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h
index 7273ff169bb..313d00fac27 100644
--- a/include/net/nfc/nfc.h
+++ b/include/net/nfc/nfc.h
@@ -62,6 +62,7 @@ struct nfc_ops {
int (*data_exchange)(struct nfc_dev *dev, u32 target_idx,
struct sk_buff *skb, data_exchange_cb_t cb,
void *cb_context);
+ int (*check_presence)(struct nfc_dev *dev, u32 target_idx);
};
#define NFC_TARGET_IDX_ANY -1
@@ -107,6 +108,10 @@ struct nfc_dev {
int tx_headroom;
int tx_tailroom;
+ struct timer_list check_pres_timer;
+ struct workqueue_struct *check_pres_wq;
+ struct work_struct check_pres_work;
+
struct nfc_ops *ops;
};
#define to_nfc_dev(_dev) container_of(_dev, struct nfc_dev, dev)