Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_VIRTIO_BT_H |
| 8 | #define _UAPI_LINUX_VIRTIO_BT_H |
| 9 | #include <linux/virtio_types.h> |
| 10 | #define VIRTIO_BT_F_VND_HCI 0 |
| 11 | #define VIRTIO_BT_F_MSFT_EXT 1 |
| 12 | #define VIRTIO_BT_F_AOSP_EXT 2 |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 13 | #define VIRTIO_BT_F_CONFIG_V2 3 |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 14 | enum virtio_bt_config_type { |
| 15 | VIRTIO_BT_CONFIG_TYPE_PRIMARY = 0, |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 16 | }; |
| 17 | enum virtio_bt_config_vendor { |
| 18 | VIRTIO_BT_CONFIG_VENDOR_NONE = 0, |
| 19 | VIRTIO_BT_CONFIG_VENDOR_ZEPHYR = 1, |
| 20 | VIRTIO_BT_CONFIG_VENDOR_INTEL = 2, |
| 21 | VIRTIO_BT_CONFIG_VENDOR_REALTEK = 3, |
| 22 | }; |
| 23 | struct virtio_bt_config { |
| 24 | __u8 type; |
| 25 | __u16 vendor; |
| 26 | __u16 msft_opcode; |
| 27 | } __attribute__((packed)); |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 28 | struct virtio_bt_config_v2 { |
| 29 | __u8 type; |
| 30 | __u8 alignment; |
| 31 | __u16 vendor; |
| 32 | __u16 msft_opcode; |
| 33 | }; |
Christopher Ferris | fcc3b4f | 2021-07-01 01:30:21 +0000 | [diff] [blame] | 34 | #endif |