diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2021-04-06 22:55:53 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-04-08 13:26:34 +0300 |
commit | afd2daa26c7abd734d78bd274fc6c59a15e61063 (patch) | |
tree | 378bede213beedea8c12ce1679d7a4e166411d39 /include/uapi/linux/virtio_bt.h | |
parent | f67743f9e03a67dbbf931d1787e6faf50766e521 (diff) | |
download | linux-afd2daa26c7abd734d78bd274fc6c59a15e61063.tar.xz |
Bluetooth: Add support for virtio transport driver
This adds support for Bluetooth HCI transport over virtio.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include/uapi/linux/virtio_bt.h')
-rw-r--r-- | include/uapi/linux/virtio_bt.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/uapi/linux/virtio_bt.h b/include/uapi/linux/virtio_bt.h new file mode 100644 index 000000000000..a7bd48daa9a9 --- /dev/null +++ b/include/uapi/linux/virtio_bt.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + +#ifndef _UAPI_LINUX_VIRTIO_BT_H +#define _UAPI_LINUX_VIRTIO_BT_H + +#include <linux/virtio_types.h> + +/* Feature bits */ +#define VIRTIO_BT_F_VND_HCI 0 /* Indicates vendor command support */ +#define VIRTIO_BT_F_MSFT_EXT 1 /* Indicates MSFT vendor support */ +#define VIRTIO_BT_F_AOSP_EXT 2 /* Indicates AOSP vendor support */ + +enum virtio_bt_config_type { + VIRTIO_BT_CONFIG_TYPE_PRIMARY = 0, + VIRTIO_BT_CONFIG_TYPE_AMP = 1, +}; + +enum virtio_bt_config_vendor { + VIRTIO_BT_CONFIG_VENDOR_NONE = 0, + VIRTIO_BT_CONFIG_VENDOR_ZEPHYR = 1, + VIRTIO_BT_CONFIG_VENDOR_INTEL = 2, + VIRTIO_BT_CONFIG_VENDOR_REALTEK = 3, +}; + +struct virtio_bt_config { + __u8 type; + __u16 vendor; + __u16 msft_opcode; +} __attribute__((packed)); + +#endif /* _UAPI_LINUX_VIRTIO_BT_H */ |