summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland2021-03-04 23:10:58 +0100
committerMark Cave-Ayland2021-03-07 11:39:05 +0100
commit799d90d818ba38997e9f5de2163bbfc96256ac0b (patch)
tree0f65d9779704c36c6f4f29daf74c28d7f91bd948 /include/hw
parentesp: add maxlen parameter to get_cmd() (diff)
downloadqemu-799d90d818ba38997e9f5de2163bbfc96256ac0b.tar.gz
qemu-799d90d818ba38997e9f5de2163bbfc96256ac0b.tar.xz
qemu-799d90d818ba38997e9f5de2163bbfc96256ac0b.zip
esp: transition to message out phase after SATN and stop command
The SCSI bus should remain in the message out phase after the SATN and stop command rather than transitioning to the command phase. A new ESPState variable cmdbuf_cdb_offset is added which stores the offset of the CDB from the start of cmdbuf when accumulating extended message out phase data. Currently any extended message out data is discarded in do_cmd() before the CDB is processed in do_busid_cmd(). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210304221103.6369-38-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/scsi/esp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index 7d88fa0f92..f697645c05 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -37,6 +37,7 @@ struct ESPState {
SCSIRequest *current_req;
uint8_t cmdbuf[ESP_CMDBUF_SZ];
uint32_t cmdlen;
+ uint8_t cmdbuf_cdb_offset;
uint32_t do_cmd;
bool data_in_ready;
@@ -136,6 +137,7 @@ struct SysBusESPState {
#define INTR_RST 0x80
#define SEQ_0 0x0
+#define SEQ_MO 0x1
#define SEQ_CD 0x4
#define CFG1_RESREPT 0x40