aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@linux.intel.com>2012-09-13 11:10:48 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-24 18:17:25 -0400
commit8af00d48dc929442644bf68e9cd3d951d9697296 (patch)
tree4ed4b580674856dd204dccc6b5c769f5a262c00c /include/net
parent67cccfe17d1b3da1ed6c79e643c9be95ebde9642 (diff)
NFC: Add a nop (passthrough) llc module to llc core
This is a passthrough llc. It can be used by HCI drivers that don't need link layer control. HCI will then write directly to the driver, and driver will deliver incoming frames directly to HCI without any processing. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/nfc/llc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/nfc/llc.h b/include/net/nfc/llc.h
index 98df903f8b7d..146e053f91e7 100644
--- a/include/net/nfc/llc.h
+++ b/include/net/nfc/llc.h
@@ -24,6 +24,8 @@
24#include <net/nfc/hci.h> 24#include <net/nfc/hci.h>
25#include <linux/skbuff.h> 25#include <linux/skbuff.h>
26 26
27#define LLC_NOP_NAME "nop"
28
27typedef void (*rcv_to_hci_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb); 29typedef void (*rcv_to_hci_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb);
28typedef int (*xmit_to_drv_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb); 30typedef int (*xmit_to_drv_t) (struct nfc_hci_dev *hdev, struct sk_buff *skb);
29typedef void (*llc_failure_t) (struct nfc_hci_dev *hdev, int err); 31typedef void (*llc_failure_t) (struct nfc_hci_dev *hdev, int err);