Re: [Qemu-devel] [PATCH v12 1/9] esp: add pseudo-DMA as used by Macintosh

2019-09-17 Thread Dr. David Alan Gilbert
* Laurent Vivier (laur...@vivier.eu) wrote: > There is no DMA in Quadra 800, so the CPU reads/writes the data from the > PDMA register (offset 0x100, ESP_PDMA in hw/m68k/q800.c) and copies them > to/from the memory. > > There is a nice assembly loop in the kernel to do that, see > linux/drivers/sc

[Qemu-devel] [PATCH v12 1/9] esp: add pseudo-DMA as used by Macintosh

2019-09-15 Thread Laurent Vivier
There is no DMA in Quadra 800, so the CPU reads/writes the data from the PDMA register (offset 0x100, ESP_PDMA in hw/m68k/q800.c) and copies them to/from the memory. There is a nice assembly loop in the kernel to do that, see linux/drivers/scsi/mac_esp.c:MAC_ESP_PDMA_LOOP(). The start of the tran