• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_VIRTIO_BT_H
20 #define _UAPI_LINUX_VIRTIO_BT_H
21 #include <linux/virtio_types.h>
22 #define VIRTIO_BT_F_VND_HCI 0
23 #define VIRTIO_BT_F_MSFT_EXT 1
24 #define VIRTIO_BT_F_AOSP_EXT 2
25 #define VIRTIO_BT_F_CONFIG_V2 3
26 enum virtio_bt_config_type {
27   VIRTIO_BT_CONFIG_TYPE_PRIMARY = 0,
28   VIRTIO_BT_CONFIG_TYPE_AMP = 1,
29 };
30 enum virtio_bt_config_vendor {
31   VIRTIO_BT_CONFIG_VENDOR_NONE = 0,
32   VIRTIO_BT_CONFIG_VENDOR_ZEPHYR = 1,
33   VIRTIO_BT_CONFIG_VENDOR_INTEL = 2,
34   VIRTIO_BT_CONFIG_VENDOR_REALTEK = 3,
35 };
36 struct virtio_bt_config {
37   __u8 type;
38   __u16 vendor;
39   __u16 msft_opcode;
40 } __attribute__((packed));
41 struct virtio_bt_config_v2 {
42   __u8 type;
43   __u8 alignment;
44   __u16 vendor;
45   __u16 msft_opcode;
46 };
47 #endif
48