summaryrefslogtreecommitdiff
path: root/tools/virtio/linux/virtio_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtio/linux/virtio_config.h')
-rw-r--r--tools/virtio/linux/virtio_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/virtio/linux/virtio_config.h b/tools/virtio/linux/virtio_config.h
new file mode 100644
index 000000000000..5049967f99f7
--- /dev/null
+++ b/tools/virtio/linux/virtio_config.h
@@ -0,0 +1,6 @@
+#define VIRTIO_TRANSPORT_F_START 28
+#define VIRTIO_TRANSPORT_F_END 32
+
+#define virtio_has_feature(dev, feature) \
+ test_bit((feature), (dev)->features)
+