blob: e763da2c02bfa824be1f6f6a5b44b02afcfb28bc [file] [log] [blame]
Markus Armbruster2a6a4072016-06-29 13:47:03 +02001#ifndef QEMU_VIRTIO_9P_H
2#define QEMU_VIRTIO_9P_H
Anthony Liguori9f107512010-04-29 17:44:44 +05303
Michael S. Tsirkin8744a6a2015-02-16 22:35:57 +01004#include "standard-headers/linux/virtio_9p.h"
Paolo Bonzini0d09e412013-02-05 17:06:20 +01005#include "hw/virtio/virtio.h"
Wei Liuebe74f82016-01-07 18:18:02 +00006#include "9p.h"
Aneesh Kumar K.Vbccacf62011-08-02 11:36:17 +05307
Wei Liu00588a02016-01-11 09:29:37 +00008typedef struct V9fsVirtioState
9{
10 VirtIODevice parent_obj;
11 VirtQueue *vq;
12 size_t config_size;
Paolo Bonzini51b19eb2016-02-04 16:26:51 +020013 VirtQueueElement *elems[MAX_REQ];
Wei Liu00588a02016-01-11 09:29:37 +000014 V9fsState state;
15} V9fsVirtioState;
16
KONRAD Frederice7303c42013-04-23 11:08:40 +020017#define TYPE_VIRTIO_9P "virtio-9p-device"
18#define VIRTIO_9P(obj) \
Wei Liu00588a02016-01-11 09:29:37 +000019 OBJECT_CHECK(V9fsVirtioState, (obj), TYPE_VIRTIO_9P)
KONRAD Frederice7303c42013-04-23 11:08:40 +020020
Anthony Liguori9f107512010-04-29 17:44:44 +053021#endif