summaryrefslogtreecommitdiff
path: root/tools/virtio/oot-stubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtio/oot-stubs.h')
-rw-r--r--tools/virtio/oot-stubs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/virtio/oot-stubs.h b/tools/virtio/oot-stubs.h
new file mode 100644
index 000000000000..69e059cd14d6
--- /dev/null
+++ b/tools/virtio/oot-stubs.h
@@ -0,0 +1,10 @@
+#include <linux/bug.h>
+#include <linux/string.h>
+#include <linux/virtio_features.h>
+
+#ifndef VIRTIO_FEATURES_BITS
+#define VIRTIO_FEATURES_BITS 128
+#endif
+#ifndef VIRTIO_U64
+#define VIRTIO_U64(b) ((b) >> 6)
+#endif