aboutsummaryrefslogtreecommitdiff
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-03-04 22:10:45 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-03-07 10:39:05 +0000
commit3c421400fff80054aec9b805a0622b63e372f572 (patch)
treebe012ab3966c86e5f9267846f33b3fb6d9327e04 /include/hw/scsi
parentad7f468c4252ee83f6e150c11ae02f71f6d467ef (diff)
downloadqemu-3c421400fff80054aec9b805a0622b63e372f572.zip
qemu-3c421400fff80054aec9b805a0622b63e372f572.tar.gz
qemu-3c421400fff80054aec9b805a0622b63e372f572.tar.bz2
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/scsi')
-rw-r--r--include/hw/scsi/esp.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index 26bd015..1be4586 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;