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

2019-10-02 Thread Philippe Mathieu-Daudé
On 10/2/19 2:33 PM, Laurent Vivier wrote: Le 02/10/2019 à 13:10, Philippe Mathieu-Daudé a écrit : On 9/27/19 11:04 AM, Laurent Vivier 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

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

2019-10-02 Thread Laurent Vivier
Le 02/10/2019 à 13:10, Philippe Mathieu-Daudé a écrit : > On 9/27/19 11:04 AM, Laurent Vivier 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 a

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

2019-10-02 Thread Philippe Mathieu-Daudé
On 9/27/19 11:04 AM, Laurent Vivier 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/scsi/mac_esp.

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

2019-10-01 Thread Laurent Vivier
Paolo, this patch is the only that is not specific to Q800 and has not been "acked" or reviewed by the maintainer. If you ack it I will be ready to send a PR for the Q800 series. Thanks, Laurent Le 27/09/2019 à 11:04, Laurent Vivier a écrit : > There is no DMA in Quadra 800, so the CPU reads/wr

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

2019-09-27 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