summaryrefslogtreecommitdiffstats
path: root/hw/scsi-defs.h
diff options
context:
space:
mode:
authorGerd Hoffmann2009-11-26 15:34:16 +0100
committerAnthony Liguori2009-12-03 16:41:40 +0100
commitbd536cf3302e258cace9cfa9f554ec9f9e27591a (patch)
treec216512c4385376f4d3f80a2664bcaf4cc44c0cd /hw/scsi-defs.h
parentscsi-disk: restruct emulation: VERIFY (diff)
downloadqemu-bd536cf3302e258cace9cfa9f554ec9f9e27591a.tar.gz
qemu-bd536cf3302e258cace9cfa9f554ec9f9e27591a.tar.xz
qemu-bd536cf3302e258cace9cfa9f554ec9f9e27591a.zip
scsi: add read/write 16 commands.
Add READ_16 + friends to scsi-defs.h, scsi_command_name() and the request parsing helper functions. Use them in scsi-disk.c too. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-defs.h')
-rw-r--r--hw/scsi-defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h
index cc7f35eaac..4759d8004e 100644
--- a/hw/scsi-defs.h
+++ b/hw/scsi-defs.h
@@ -100,6 +100,9 @@
#define REWIND 0x01
#define REPORT_DENSITY_SUPPORT 0x44
#define GET_CONFIGURATION 0x46
+#define READ_16 0x88
+#define WRITE_16 0x8a
+#define WRITE_VERIFY_16 0x8e
#define SERVICE_ACTION_IN 0x9e
#define REPORT_LUNS 0xa0
#define LOAD_UNLOAD 0xa6