2016-06-29 14:47:03 +03:00
|
|
|
#ifndef QEMU_VIRTIO_9P_H
|
|
|
|
#define QEMU_VIRTIO_9P_H
|
2010-04-29 16:14:44 +04:00
|
|
|
|
2015-02-17 00:35:57 +03:00
|
|
|
#include "standard-headers/linux/virtio_9p.h"
|
2013-02-05 20:06:20 +04:00
|
|
|
#include "hw/virtio/virtio.h"
|
2016-01-07 21:18:02 +03:00
|
|
|
#include "9p.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2011-08-02 10:06:17 +04:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct V9fsVirtioState {
|
2016-01-11 12:29:37 +03:00
|
|
|
VirtIODevice parent_obj;
|
|
|
|
VirtQueue *vq;
|
|
|
|
size_t config_size;
|
2016-02-04 17:26:51 +03:00
|
|
|
VirtQueueElement *elems[MAX_REQ];
|
2016-01-11 12:29:37 +03:00
|
|
|
V9fsState state;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2016-01-11 12:29:37 +03:00
|
|
|
|
2013-04-23 13:08:40 +04:00
|
|
|
#define TYPE_VIRTIO_9P "virtio-9p-device"
|
2020-09-16 21:25:19 +03:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(V9fsVirtioState, VIRTIO_9P)
|
2013-04-23 13:08:40 +04:00
|
|
|
|
2010-04-29 16:14:44 +04:00
|
|
|
#endif
|