summaryrefslogtreecommitdiffstats
path: root/hw/9pfs/virtio-9p.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/9pfs/virtio-9p.h')
-rw-r--r--hw/9pfs/virtio-9p.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h
new file mode 100644
index 00000000..20fa118f
--- /dev/null
+++ b/hw/9pfs/virtio-9p.h
@@ -0,0 +1,20 @@
+#ifndef QEMU_VIRTIO_9P_H
+#define QEMU_VIRTIO_9P_H
+
+#include "standard-headers/linux/virtio_9p.h"
+#include "hw/virtio/virtio.h"
+#include "9p.h"
+#include "qom/object.h"
+
+struct V9fsVirtioState {
+ VirtIODevice parent_obj;
+ VirtQueue *vq;
+ size_t config_size;
+ VirtQueueElement *elems[MAX_REQ];
+ V9fsState state;
+};
+
+#define TYPE_VIRTIO_9P "virtio-9p-device"
+OBJECT_DECLARE_SIMPLE_TYPE(V9fsVirtioState, VIRTIO_9P)
+
+#endif