summaryrefslogtreecommitdiff
path: root/tools/virtio/linux/mod_devicetable.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtio/linux/mod_devicetable.h')
-rw-r--r--tools/virtio/linux/mod_devicetable.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/virtio/linux/mod_devicetable.h b/tools/virtio/linux/mod_devicetable.h
new file mode 100644
index 000000000000..3ba594b8229d
--- /dev/null
+++ b/tools/virtio/linux/mod_devicetable.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_MOD_DEVICETABLE_H
+#define _LINUX_MOD_DEVICETABLE_H
+
+#include <linux/types.h>
+
+struct virtio_device_id {
+ __u32 device;
+ __u32 vendor;
+};
+
+#define VIRTIO_DEV_ANY_ID 0xffffffff
+
+#endif /* _LINUX_MOD_DEVICETABLE_H */