aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-defs.h
diff options
context:
space:
mode:
authorCong Meng <mc@linux.vnet.ibm.com>2012-08-03 12:02:19 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2012-08-03 21:55:03 +0200
commite4b65262a3b6633fe107e4ce7660b41a71a16e5f (patch)
tree573d75179d90564a8a3ab534b80140cfb8b65d4a /hw/scsi-defs.h
parent1f07730896f4a38a66bc3a6837704290ff2927f9 (diff)
scsi: add support for ATA_PASSTHROUGH_xx scsi command
Correct the command names of opcode 0x85 and 0xa1, and calculate their xfer size from CDB. Signed-off-by: Cong Meng <mc@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi-defs.h')
-rw-r--r--hw/scsi-defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h
index 8a73f745ba..d7a401912b 100644
--- a/hw/scsi-defs.h
+++ b/hw/scsi-defs.h
@@ -100,7 +100,7 @@
#define READ_REVERSE_16 0x81
#define ALLOW_OVERWRITE 0x82
#define EXTENDED_COPY 0x83
-#define ATA_PASSTHROUGH 0x85
+#define ATA_PASSTHROUGH_16 0x85
#define ACCESS_CONTROL_IN 0x86
#define ACCESS_CONTROL_OUT 0x87
#define READ_16 0x88
@@ -117,7 +117,7 @@
#define SERVICE_ACTION_IN_16 0x9e
#define WRITE_LONG_16 0x9f
#define REPORT_LUNS 0xa0
-#define BLANK 0xa1
+#define ATA_PASSTHROUGH_12 0xa1
#define MAINTENANCE_IN 0xa3
#define MAINTENANCE_OUT 0xa4
#define MOVE_MEDIUM 0xa5