aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/nfc.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/nfc.h')
-rw-r--r--net/nfc/nfc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h
index 2b31e808e6fb..8335f4de8f4f 100644
--- a/net/nfc/nfc.h
+++ b/net/nfc/nfc.h
@@ -25,6 +25,7 @@
25#define __LOCAL_NFC_H 25#define __LOCAL_NFC_H
26 26
27#include <net/nfc.h> 27#include <net/nfc.h>
28#include <net/sock.h>
28 29
29__attribute__((format (printf, 2, 3))) 30__attribute__((format (printf, 2, 3)))
30int nfc_printk(const char *level, const char *fmt, ...); 31int nfc_printk(const char *level, const char *fmt, ...);
@@ -33,6 +34,19 @@ int nfc_printk(const char *level, const char *fmt, ...);
33#define nfc_err(fmt, arg...) nfc_printk(KERN_ERR, fmt, ##arg) 34#define nfc_err(fmt, arg...) nfc_printk(KERN_ERR, fmt, ##arg)
34#define nfc_dbg(fmt, arg...) pr_debug(fmt "\n", ##arg) 35#define nfc_dbg(fmt, arg...) pr_debug(fmt "\n", ##arg)
35 36
37struct nfc_protocol {
38 int id;
39 struct proto *proto;
40 struct module *owner;
41 int (*create)(struct net *net, struct socket *sock,
42 const struct nfc_protocol *nfc_proto);
43};
44
45int __init af_nfc_init(void);
46void af_nfc_exit(void);
47int nfc_proto_register(const struct nfc_protocol *nfc_proto);
48void nfc_proto_unregister(const struct nfc_protocol *nfc_proto);
49
36extern int nfc_devlist_generation; 50extern int nfc_devlist_generation;
37extern struct mutex nfc_devlist_mutex; 51extern struct mutex nfc_devlist_mutex;
38 52