xref: /openbmc/qemu/hw/9pfs/virtio-9p.h (revision c122bca9)
12a6a4076SMarkus Armbruster #ifndef QEMU_VIRTIO_9P_H
22a6a4076SMarkus Armbruster #define QEMU_VIRTIO_9P_H
3353ac78dSAneesh Kumar K.V 
48744a6a8SMichael S. Tsirkin #include "standard-headers/linux/virtio_9p.h"
50d09e41aSPaolo Bonzini #include "hw/virtio/virtio.h"
6ebe74f8bSWei Liu #include "9p.h"
7db1015e9SEduardo Habkost #include "qom/object.h"
8bccacf6cSAneesh Kumar K.V 
9db1015e9SEduardo Habkost struct V9fsVirtioState {
1000588a0aSWei Liu     VirtIODevice parent_obj;
1100588a0aSWei Liu     VirtQueue *vq;
1200588a0aSWei Liu     size_t config_size;
1351b19ebeSPaolo Bonzini     VirtQueueElement *elems[MAX_REQ];
1400588a0aSWei Liu     V9fsState state;
15db1015e9SEduardo Habkost };
1600588a0aSWei Liu 
17e7303c43SKONRAD Frederic #define TYPE_VIRTIO_9P "virtio-9p-device"
18*8063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(V9fsVirtioState, VIRTIO_9P)
19e7303c43SKONRAD Frederic 
20353ac78dSAneesh Kumar K.V #endif
21