xref: /openbmc/qemu/include/hw/virtio/vhost-scsi.h (revision dc5bd18f)
1 /*
2  * vhost_scsi host device
3  *
4  * Copyright IBM, Corp. 2011
5  *
6  * Authors:
7  *  Stefan Hajnoczi   <stefanha@linux.vnet.ibm.com>
8  *
9  * This work is licensed under the terms of the GNU LGPL, version 2 or later.
10  * See the COPYING.LIB file in the top-level directory.
11  *
12  */
13 
14 #ifndef VHOST_SCSI_H
15 #define VHOST_SCSI_H
16 
17 #include "qemu-common.h"
18 #include "hw/qdev.h"
19 #include "hw/virtio/virtio-scsi.h"
20 #include "hw/virtio/vhost.h"
21 #include "hw/virtio/vhost-scsi-common.h"
22 
23 enum vhost_scsi_vq_list {
24     VHOST_SCSI_VQ_CONTROL = 0,
25     VHOST_SCSI_VQ_EVENT = 1,
26     VHOST_SCSI_VQ_NUM_FIXED = 2,
27 };
28 
29 #define TYPE_VHOST_SCSI "vhost-scsi"
30 #define VHOST_SCSI(obj) \
31         OBJECT_CHECK(VHostSCSI, (obj), TYPE_VHOST_SCSI)
32 
33 typedef struct VHostSCSI {
34     VHostSCSICommon parent_obj;
35 } VHostSCSI;
36 
37 #endif
38