summaryrefslogtreecommitdiffstats
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorMark Cave-Ayland2021-03-04 23:10:55 +0100
committerMark Cave-Ayland2021-03-07 11:39:05 +0100
commit4aaa6ac38393e6657869da528ad8c35657e23f84 (patch)
tree48c96f180ba5f800a3a73273b55794d9367b359e /include/hw/scsi
parentesp: defer command completion interrupt on incoming data transfers (diff)
downloadqemu-4aaa6ac38393e6657869da528ad8c35657e23f84.tar.gz
qemu-4aaa6ac38393e6657869da528ad8c35657e23f84.tar.xz
qemu-4aaa6ac38393e6657869da528ad8c35657e23f84.zip
esp: remove old deferred command completion mechanism
Commit ea84a44250 "scsi: esp: Defer command completion until previous interrupts have been handled" provided a mechanism to delay the command completion interrupt until ESP_RINTR is read after the command has completed. With the previous fixes for latching the ESP_RINTR bits and deferring the setting of the command completion interrupt for incoming data to the SCSI callback, this workaround is no longer required and can be removed. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210304221103.6369-35-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r--include/hw/scsi/esp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index 61bc317a4c..7d88fa0f92 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -30,8 +30,6 @@ struct ESPState {
int32_t ti_size;
uint32_t ti_rptr, ti_wptr;
uint32_t status;
- uint32_t deferred_status;
- bool deferred_complete;
uint32_t dma;
uint8_t ti_buf[TI_BUFSZ];
SCSIBus bus;
@@ -57,6 +55,8 @@ struct ESPState {
/* Legacy fields for vmstate_esp version < 5 */
uint32_t mig_dma_left;
+ uint32_t mig_deferred_status;
+ bool mig_deferred_complete;
};
#define TYPE_SYSBUS_ESP "sysbus-esp"