blob: 9049adc043fa244fb8ee6c2dca0e2a9c05198bbc [file] [log] [blame]
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +00001/****************************************************************************
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
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080025#define VIRTIO_BT_F_CONFIG_V2 3
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000026enum virtio_bt_config_type {
27 VIRTIO_BT_CONFIG_TYPE_PRIMARY = 0,
28 VIRTIO_BT_CONFIG_TYPE_AMP = 1,
29};
30enum 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};
36struct virtio_bt_config {
37 __u8 type;
38 __u16 vendor;
39 __u16 msft_opcode;
40} __attribute__((packed));
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080041struct virtio_bt_config_v2 {
42 __u8 type;
43 __u8 alignment;
44 __u16 vendor;
45 __u16 msft_opcode;
46};
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000047#endif