qemu-patch-raspberry4/include/hw/scsi
Mark Cave-Ayland 6cc88d6bf9 esp: remove dma_left from ESPState
The ESP device already keeps track of the remaining bytes left to transfer via
its TC (transfer counter) register which is decremented for each byte that
is transferred across the SCSI bus.

Switch the transfer logic to use the value of TC instead of dma_left and then
remove dma_left completely, adding logic to the vmstate_esp post_load() function
to transfer the old dma_left value to the TC register during migration from
older versions.

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-14-mark.cave-ayland@ilande.co.uk>
2021-03-07 10:39:05 +00:00
..
emulation.h Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
esp.h esp: remove dma_left from ESPState 2021-03-07 10:39:05 +00:00
scsi.h scsi: drop 'result' argument from command_complete callback 2021-02-25 14:14:32 +01:00