xref: /qemu/include/hw/virtio/vhost-scsi.h (revision db1015e92e04835c9eb50c29625fe566d1202dbd)
15e9be92dSNicholas Bellinger /*
25e9be92dSNicholas Bellinger  * vhost_scsi host device
35e9be92dSNicholas Bellinger  *
45e9be92dSNicholas Bellinger  * Copyright IBM, Corp. 2011
55e9be92dSNicholas Bellinger  *
65e9be92dSNicholas Bellinger  * Authors:
75e9be92dSNicholas Bellinger  *  Stefan Hajnoczi   <stefanha@linux.vnet.ibm.com>
85e9be92dSNicholas Bellinger  *
95e9be92dSNicholas Bellinger  * This work is licensed under the terms of the GNU LGPL, version 2 or later.
105e9be92dSNicholas Bellinger  * See the COPYING.LIB file in the top-level directory.
115e9be92dSNicholas Bellinger  *
125e9be92dSNicholas Bellinger  */
135e9be92dSNicholas Bellinger 
145e9be92dSNicholas Bellinger #ifndef VHOST_SCSI_H
155e9be92dSNicholas Bellinger #define VHOST_SCSI_H
165e9be92dSNicholas Bellinger 
175e9be92dSNicholas Bellinger #include "hw/virtio/virtio-scsi.h"
185e9be92dSNicholas Bellinger #include "hw/virtio/vhost.h"
1995615ce5SFelipe Franciosi #include "hw/virtio/vhost-scsi-common.h"
20*db1015e9SEduardo Habkost #include "qom/object.h"
215e9be92dSNicholas Bellinger 
225e9be92dSNicholas Bellinger enum vhost_scsi_vq_list {
235e9be92dSNicholas Bellinger     VHOST_SCSI_VQ_CONTROL = 0,
245e9be92dSNicholas Bellinger     VHOST_SCSI_VQ_EVENT = 1,
255e9be92dSNicholas Bellinger     VHOST_SCSI_VQ_NUM_FIXED = 2,
265e9be92dSNicholas Bellinger };
275e9be92dSNicholas Bellinger 
285e9be92dSNicholas Bellinger #define TYPE_VHOST_SCSI "vhost-scsi"
29*db1015e9SEduardo Habkost typedef struct VHostSCSI VHostSCSI;
305e9be92dSNicholas Bellinger #define VHOST_SCSI(obj) \
315e9be92dSNicholas Bellinger         OBJECT_CHECK(VHostSCSI, (obj), TYPE_VHOST_SCSI)
325e9be92dSNicholas Bellinger 
33*db1015e9SEduardo Habkost struct VHostSCSI {
3495615ce5SFelipe Franciosi     VHostSCSICommon parent_obj;
35*db1015e9SEduardo Habkost };
365e9be92dSNicholas Bellinger 
375e9be92dSNicholas Bellinger #endif
38