diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-03-21 15:15:14 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-26 09:26:36 -0500 |
commit | 3ab1dfdd50a7c852e4921935250c22f486c5b8a4 (patch) | |
tree | 9da613cff82b0068eefce42c89893f196f4c3a71 /hw/virtio-scsi.h | |
parent | 4bfeb18a454bd71c406683fb473375e02c724b00 (diff) |
virtio-scsi: add the virtio-scsi device.
Create virtio-scsi which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-id: 1363875320-7985-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-scsi.h')
-rw-r--r-- | hw/virtio-scsi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/virtio-scsi.h b/hw/virtio-scsi.h index da02f08b28..758c29bafa 100644 --- a/hw/virtio-scsi.h +++ b/hw/virtio-scsi.h @@ -18,6 +18,11 @@ #include "hw/pci/pci.h" #include "hw/scsi.h" +#define TYPE_VIRTIO_SCSI "virtio-scsi" +#define VIRTIO_SCSI(obj) \ + OBJECT_CHECK(VirtIOSCSI, (obj), TYPE_VIRTIO_SCSI) + + /* The ID for virtio_scsi */ #define VIRTIO_ID_SCSI 8 |