aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/virtio.h
diff options
context:
space:
mode:
authorCorvin Köhne <C.Koehne@beckhoff.com>2021-06-08 08:56:43 +0000
committerPeter Grehan <grehan@FreeBSD.org>2021-06-08 09:05:09 +0000
commit054accac71e0944ab588c3ab052bea6947df7885 (patch)
tree9e6ed356eb4da10232dd624e9ff2f1a6ce3d4650 /usr.sbin/bhyve/virtio.h
parent09307dbfb888a98232096c751a96ecb3344aa77c (diff)
downloadsrc-054accac71e0944ab588c3ab052bea6947df7885.tar.gz
src-054accac71e0944ab588c3ab052bea6947df7885.zip
Diffstat (limited to 'usr.sbin/bhyve/virtio.h')
-rw-r--r--usr.sbin/bhyve/virtio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/virtio.h b/usr.sbin/bhyve/virtio.h
index e03fd5f710d1..4c7b9de83125 100644
--- a/usr.sbin/bhyve/virtio.h
+++ b/usr.sbin/bhyve/virtio.h
@@ -171,6 +171,22 @@
#define VIRTIO_DEV_RANDOM 0x1005
#define VIRTIO_DEV_SCSI 0x1008
#define VIRTIO_DEV_9P 0x1009
+#define VIRTIO_DEV_INPUT 0x1052
+
+/*
+ * PCI revision IDs
+ */
+#define VIRTIO_REV_INPUT 1
+
+/*
+ * PCI subvendor IDs
+ */
+#define VIRTIO_SUBVEN_INPUT 0x108E
+
+/*
+ * PCI subdevice IDs
+ */
+#define VIRTIO_SUBDEV_INPUT 0x1100
/* From section 2.3, "Virtqueue Configuration", of the virtio specification */
static inline int