|
@@ -31,6 +31,8 @@
|
|
|
#define HCIUARTSETPROTO _IOW('U', 200, int)
|
|
|
#define HCIUARTGETPROTO _IOR('U', 201, int)
|
|
|
#define HCIUARTGETDEVICE _IOR('U', 202, int)
|
|
|
+#define HCIUARTSETFLAGS _IOW('U', 203, int)
|
|
|
+#define HCIUARTGETFLAGS _IOR('U', 204, int)
|
|
|
|
|
|
/* UART protocols */
|
|
|
#define HCI_UART_MAX_PROTO 5
|
|
@@ -41,6 +43,8 @@
|
|
|
#define HCI_UART_H4DS 3
|
|
|
#define HCI_UART_LL 4
|
|
|
|
|
|
+#define HCI_UART_RAW_DEVICE 0
|
|
|
+
|
|
|
struct hci_uart;
|
|
|
|
|
|
struct hci_uart_proto {
|
|
@@ -57,6 +61,7 @@ struct hci_uart {
|
|
|
struct tty_struct *tty;
|
|
|
struct hci_dev *hdev;
|
|
|
unsigned long flags;
|
|
|
+ unsigned long hdev_flags;
|
|
|
|
|
|
struct hci_uart_proto *proto;
|
|
|
void *priv;
|
|
@@ -66,7 +71,7 @@ struct hci_uart {
|
|
|
spinlock_t rx_lock;
|
|
|
};
|
|
|
|
|
|
-/* HCI_UART flag bits */
|
|
|
+/* HCI_UART proto flag bits */
|
|
|
#define HCI_UART_PROTO_SET 0
|
|
|
|
|
|
/* TX states */
|