diff options
author | Mark Cave-Ayland | 2021-03-04 23:10:33 +0100 |
---|---|---|
committer | Mark Cave-Ayland | 2021-03-07 11:39:05 +0100 |
commit | 5eb7a23fb22f10f09cecba61e7bf61cecaee3f96 (patch) | |
tree | 287d0f6f6a6c6ba6151c6ca9b1e92f0803709814 /include/hw | |
parent | esp: apply transfer length adjustment when STC is zero at TC load time (diff) | |
download | qemu-5eb7a23fb22f10f09cecba61e7bf61cecaee3f96.tar.gz qemu-5eb7a23fb22f10f09cecba61e7bf61cecaee3f96.tar.xz qemu-5eb7a23fb22f10f09cecba61e7bf61cecaee3f96.zip |
esp: remove dma_counter from ESPState
The value of dma_counter is set once at the start of the transfer and remains
the same until the transfer is complete. This allows the check in esp_transfer_data
to be simplified since dma_left will always be non-zero until the transfer is
completed.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210304221103.6369-13-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/scsi/esp.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h index 9d149cbc9f..ff1372947b 100644 --- a/include/hw/scsi/esp.h +++ b/include/hw/scsi/esp.h @@ -50,9 +50,6 @@ struct ESPState { /* The amount of data left in the current DMA transfer. */ uint32_t dma_left; - /* The size of the current DMA transfer. Zero if no transfer is in - progress. */ - uint32_t dma_counter; int dma_enabled; uint32_t async_len; |