2010-04-29 12:14:44 +00:00
|
|
|
#ifndef _QEMU_VIRTIO_9P_H
|
|
|
|
#define _QEMU_VIRTIO_9P_H
|
|
|
|
|
2015-02-16 21:35:57 +00:00
|
|
|
#include "standard-headers/linux/virtio_9p.h"
|
2013-02-05 16:06:20 +00:00
|
|
|
#include "hw/virtio/virtio.h"
|
2016-01-07 18:18:02 +00:00
|
|
|
#include "9p.h"
|
2011-08-02 06:06:17 +00:00
|
|
|
|
2011-06-01 07:05:13 +00:00
|
|
|
extern void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq);
|
2015-12-03 12:40:28 +00:00
|
|
|
ssize_t virtio_pdu_vmarshal(V9fsPDU *pdu, size_t offset,
|
|
|
|
const char *fmt, va_list ap);
|
|
|
|
ssize_t virtio_pdu_vunmarshal(V9fsPDU *pdu, size_t offset,
|
|
|
|
const char *fmt, va_list ap);
|
2015-12-03 13:21:51 +00:00
|
|
|
void virtio_init_iov_from_pdu(V9fsPDU *pdu, struct iovec **piov,
|
|
|
|
unsigned int *pniov, bool is_write);
|
2015-12-03 12:40:28 +00:00
|
|
|
|
2013-04-23 09:08:40 +00:00
|
|
|
#define TYPE_VIRTIO_9P "virtio-9p-device"
|
|
|
|
#define VIRTIO_9P(obj) \
|
|
|
|
OBJECT_CHECK(V9fsState, (obj), TYPE_VIRTIO_9P)
|
|
|
|
|
2010-04-29 12:14:44 +00:00
|
|
|
#endif
|