]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/bluetooth/hci_uart.h
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[karo-tx-linux.git] / drivers / bluetooth / hci_uart.h
index 6cf6ab22ad21f7e081f1d806f44638adc8e6a627..fffa61ff5cb14983baeba17a4d6234a58de1e806 100644 (file)
@@ -47,6 +47,7 @@
 #define HCI_UART_RAW_DEVICE    0
 #define HCI_UART_RESET_ON_INIT 1
 #define HCI_UART_CREATE_AMP    2
+#define HCI_UART_INIT_PENDING  3
 
 struct hci_uart;
 
@@ -66,6 +67,8 @@ struct hci_uart {
        unsigned long           flags;
        unsigned long           hdev_flags;
 
+       struct work_struct      init_ready;
+
        struct hci_uart_proto   *proto;
        void                    *priv;
 
@@ -76,6 +79,7 @@ struct hci_uart {
 
 /* HCI_UART proto flag bits */
 #define HCI_UART_PROTO_SET     0
+#define HCI_UART_REGISTERED    1
 
 /* TX states  */
 #define HCI_UART_SENDING       1
@@ -84,6 +88,7 @@ struct hci_uart {
 int hci_uart_register_proto(struct hci_uart_proto *p);
 int hci_uart_unregister_proto(struct hci_uart_proto *p);
 int hci_uart_tx_wakeup(struct hci_uart *hu);
+int hci_uart_init_ready(struct hci_uart *hu);
 
 #ifdef CONFIG_BT_HCIUART_H4
 int h4_init(void);
@@ -104,3 +109,8 @@ int ll_deinit(void);
 int ath_init(void);
 int ath_deinit(void);
 #endif
+
+#ifdef CONFIG_BT_HCIUART_3WIRE
+int h5_init(void);
+int h5_deinit(void);
+#endif