blob: 2b790ea774348b61dd3c6c3f7b01eb7906d6fb63 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Ferrisfcc3b4f2021-07-01 01:30:21 +00007#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 Ferris8b7fdc92023-02-21 13:36:32 -080013#define VIRTIO_BT_F_CONFIG_V2 3
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000014enum virtio_bt_config_type {
15 VIRTIO_BT_CONFIG_TYPE_PRIMARY = 0,
16 VIRTIO_BT_CONFIG_TYPE_AMP = 1,
17};
18enum virtio_bt_config_vendor {
19 VIRTIO_BT_CONFIG_VENDOR_NONE = 0,
20 VIRTIO_BT_CONFIG_VENDOR_ZEPHYR = 1,
21 VIRTIO_BT_CONFIG_VENDOR_INTEL = 2,
22 VIRTIO_BT_CONFIG_VENDOR_REALTEK = 3,
23};
24struct virtio_bt_config {
25 __u8 type;
26 __u16 vendor;
27 __u16 msft_opcode;
28} __attribute__((packed));
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080029struct virtio_bt_config_v2 {
30 __u8 type;
31 __u8 alignment;
32 __u16 vendor;
33 __u16 msft_opcode;
34};
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +000035#endif