aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-defs.h
diff options
context:
space:
mode:
authorChristian Hoff <christian.hoff@de.ibm.com>2012-06-14 15:55:28 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-07-02 11:27:00 +0200
commit9ce1bb2d36f24af79d2757497acbaf4dc4a2e302 (patch)
tree7b1b1a9f576c4f102228230daae47bb64ad0e198 /hw/scsi-defs.h
parent40723a99b8c406143f27538846103f98942e4e24 (diff)
downloadqemu-9ce1bb2d36f24af79d2757497acbaf4dc4a2e302.zip
qemu-9ce1bb2d36f24af79d2757497acbaf4dc4a2e302.tar.gz
qemu-9ce1bb2d36f24af79d2757497acbaf4dc4a2e302.tar.bz2
scsi: Fix transfer length for READ POSITION commands.
The transfer length depends on the specific service action code, as defined in the SCSI stream commands spec section 7.7. Up to now only the extended form was supported. Signed-off-by: Christian Hoff <christian.hoff@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi-defs.h')
-rw-r--r--hw/scsi-defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h
index ade82a4..8a73f74 100644
--- a/hw/scsi-defs.h
+++ b/hw/scsi-defs.h
@@ -147,6 +147,14 @@
#define SAI_READ_CAPACITY_16 0x10
/*
+ * READ POSITION service action codes
+ */
+#define SHORT_FORM_BLOCK_ID 0x00
+#define SHORT_FORM_VENDOR_SPECIFIC 0x01
+#define LONG_FORM 0x06
+#define EXTENDED_FORM 0x08
+
+/*
* SAM Status codes
*/