summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_uart.h
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@intel.com>2015-03-25 15:19:30 +0100
committerMarcel Holtmann <marcel@holtmann.org>2015-03-25 17:31:58 +0100
commiteb17380972d563a7dd59634cd2fdb614f3b98cdd (patch)
treecfd613f8af1d7d61449bcb98512647aee475e2ca /drivers/bluetooth/hci_uart.h
parentBluetooth: Filter list of supported commands/events for untrusted users (diff)
downloadlinux-eb17380972d563a7dd59634cd2fdb614f3b98cdd.tar.xz
linux-eb17380972d563a7dd59634cd2fdb614f3b98cdd.zip
Bluetooth: hci_uart: Add setup callback
Some Bluetooth controllers require initialization before being used (vendor config, firmware download). Add possibility for a HCI UART proto to implement this early init via the setup callback. Signed-off-by: Loic Poulain <loic.poulain@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_uart.h')
-rw-r--r--drivers/bluetooth/hci_uart.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h
index 247488edcbf9..074ed29092b4 100644
--- a/drivers/bluetooth/hci_uart.h
+++ b/drivers/bluetooth/hci_uart.h
@@ -59,6 +59,7 @@ struct hci_uart_proto {
int (*flush)(struct hci_uart *hu);
int (*recv)(struct hci_uart *hu, void *data, int len);
int (*enqueue)(struct hci_uart *hu, struct sk_buff *skb);
+ int (*setup)(struct hci_uart *hu);
struct sk_buff *(*dequeue)(struct hci_uart *hu);
};