aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/virtio-9p.h
blob: 6dd945ecda8f12e17026e1d76c10e726a275bf9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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;
};
typedef struct V9fsVirtioState V9fsVirtioState;

#define TYPE_VIRTIO_9P "virtio-9p-device"
#define VIRTIO_9P(obj) \
        OBJECT_CHECK(V9fsVirtioState, (obj), TYPE_VIRTIO_9P)

#endif