summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland2021-03-04 23:10:46 +0100
committerMark Cave-Ayland2021-03-07 11:39:05 +0100
commit02abe246889398a108a3f92428b9f1f87e32de81 (patch)
tree7217e275547156abb2281104cff24e81cb17f5f4 /include/hw
parentesp: use in-built TC to determine PDMA transfer length (diff)
downloadqemu-02abe246889398a108a3f92428b9f1f87e32de81.tar.gz
qemu-02abe246889398a108a3f92428b9f1f87e32de81.tar.xz
qemu-02abe246889398a108a3f92428b9f1f87e32de81.zip
esp: remove CMD pdma_origin
The cmdbuf is really just a copy of FIFO data (including extra message phase bytes) so its pdma_origin is effectively TI. Fortunately we already know when we are receiving a SCSI command since do_cmd == 1 which enables us to distinguish between the two cases in esp_pdma_read()/esp_pdma_write(). 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-26-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw')
-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 1be4586aff..dbbbb3fc52 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -17,7 +17,6 @@ typedef struct ESPState ESPState;
enum pdma_origin_id {
TI,
- CMD,
ASYNC,
};