diff options
author | Mark Cave-Ayland | 2021-03-04 23:10:45 +0100 |
---|---|---|
committer | Mark Cave-Ayland | 2021-03-07 11:39:05 +0100 |
commit | 3c421400fff80054aec9b805a0622b63e372f572 (patch) | |
tree | be012ab3966c86e5f9267846f33b3fb6d9327e04 /include/hw | |
parent | esp: use ti_wptr/ti_rptr to manage the current FIFO position for PDMA (diff) | |
download | qemu-3c421400fff80054aec9b805a0622b63e372f572.tar.gz qemu-3c421400fff80054aec9b805a0622b63e372f572.tar.xz qemu-3c421400fff80054aec9b805a0622b63e372f572.zip |
esp: use in-built TC to determine PDMA transfer length
Real hardware simply counts down using the in-built TC to determine when the
the PDMA request is complete. Use the TC to determine the PDMA transfer length
which then enables us to remove the redundant pdma_len variable.
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-25-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/scsi/esp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h index 26bd015cf4..1be4586aff 100644 --- a/include/hw/scsi/esp.h +++ b/include/hw/scsi/esp.h @@ -57,7 +57,6 @@ struct ESPState { void *dma_opaque; void (*dma_cb)(ESPState *s); int pdma_origin; - uint32_t pdma_len; void (*pdma_cb)(ESPState *s); uint8_t mig_version_id; |