xen: add header and build dataplane/xen-block.c
[qemu.git] / hw / block / dataplane / xen-block.h
blobf31da384643abd589063204a0ec2ada6415feb7e
1 /*
2 * Copyright (c) 2018 Citrix Systems Inc.
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
8 #ifndef HW_BLOCK_DATAPLANE_XEN_BLOCK_H
9 #define HW_BLOCK_DATAPLANE_XEN_BLOCK_H
11 #include "hw/block/block.h"
12 #include "hw/xen/xen-bus.h"
13 #include "sysemu/iothread.h"
15 typedef struct XenBlkDev XenBlockDataPlane;
17 XenBlockDataPlane *xen_block_dataplane_create(XenDevice *xendev,
18 BlockConf *conf,
19 IOThread *iothread);
20 void xen_block_dataplane_destroy(XenBlockDataPlane *dataplane);
21 void xen_block_dataplane_start(XenBlockDataPlane *dataplane,
22 const unsigned int ring_ref[],
23 unsigned int nr_ring_ref,
24 unsigned int event_channel,
25 unsigned int protocol,
26 Error **errp);
27 void xen_block_dataplane_stop(XenBlockDataPlane *dataplane);
29 #endif /* HW_BLOCK_DATAPLANE_XEN_BLOCK_H */