aboutsummaryrefslogtreecommitdiffstats
path: root/hw/scsi-defs.h
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2010-06-16 06:43:06 -0700
committerKevin Wolf <kwolf@redhat.com>2010-06-22 14:38:01 +0200
commitc7126d5b3216e57b4e388e3fd34faa785b8e4bd0 (patch)
tree6e94b3f463b93566db776e91e1b22d8c85f84c78 /hw/scsi-defs.h
parent01bedebaaf9bb04138e963740a9ee6d10e18830b (diff)
scsi-bus: Add MAINTENANCE_IN and MAINTENANCE_OUT SCSIRequest xfer and mode assignments
This patch updates hw/scsi-bus.c to add MAINTENANCE_IN and MAINTENANCE_OUT case in scsi_req_length() for TYPE_ROM with MMC commands. It also adds the MAINTENANCE_OUT case in scsi_req_xfer_mode() to set SCSI_XFER_TO_DEV for outgoing write data. Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi-defs.h')
-rw-r--r--hw/scsi-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h
index 5890094dc..a4a3518eb 100644
--- a/hw/scsi-defs.h
+++ b/hw/scsi-defs.h
@@ -84,6 +84,8 @@
#define MODE_SENSE_10 0x5a
#define PERSISTENT_RESERVE_IN 0x5e
#define PERSISTENT_RESERVE_OUT 0x5f
+#define MAINTENANCE_IN 0xa3
+#define MAINTENANCE_OUT 0xa4
#define MOVE_MEDIUM 0xa5
#define READ_12 0xa8
#define WRITE_12 0xaa