qemu-patch-raspberry4/hw/dma
Peter Maydell 112a829f8f hw/dma/pl080: Don't use CPU address space for DMA accesses
Currently our PL080/PL081 model uses a combination of the CPU's
address space (via cpu_physical_memory_{read,write}()) and the
system address space for performing DMA accesses.

For the PL081s in the MPS FPGA images, their DMA accesses
must go via Master Security Controllers. Switch the
PL080/PL081 model to take a MemoryRegion property which
defines its downstream for making DMA accesses.

Since the PL08x are only used in two board models, we
make provision of the 'downstream' link mandatory and convert
both users at once, rather than having it be optional with
a default to the system address space.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2018-08-20 11:24:33 +01:00
..
bcm2835_dma.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
etraxfs_dma.c etraxfs_dma: Dont forward zero-length payload to clients 2016-02-20 00:17:48 +01:00
i8257.c hw/dma/i8257: Rename DMA_init() to i8257_dma_init() 2018-03-12 16:12:48 +01:00
i82374.c hw/dma/i82374: Avoid double creation of the 82374 controller 2018-04-09 16:36:39 +02:00
Makefile.objs xlnx-zdma: Add a model of the Xilinx ZynqMP generic DMA 2018-05-18 17:48:07 +01:00
omap_dma.c hw/dma/omap_dma: Use qemu_log_mask(GUEST_ERROR) instead of fprintf 2018-06-26 17:50:40 +01:00
pl080.c hw/dma/pl080: Don't use CPU address space for DMA accesses 2018-08-20 11:24:33 +01:00
pl330.c maint: Fix macros with broken 'do/while(0); ' usage 2018-01-16 14:54:52 +01:00
puv3_dma.c unicore: Clean up includes 2016-01-29 15:07:22 +00:00
pxa2xx_dma.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
rc4030.c iommu: Add IOMMU index argument to translate method 2018-06-15 15:23:34 +01:00
soc_dma.c hw/dma: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:09 +01:00
sparc32_dma.c sun4m: remove include/hw/sparc/sun4m.h and all references to it 2018-01-09 21:48:20 +00:00
trace-events sun4m: move sun4m_iommu.c from hw/dma to hw/sparc 2018-01-09 21:48:19 +00:00
xilinx_axidma.c object: fix OBJ_PROP_LINK_UNREF_ON_RELEASE ambivalence 2018-06-12 12:07:30 +02:00
xlnx-zdma.c object: fix OBJ_PROP_LINK_UNREF_ON_RELEASE ambivalence 2018-06-12 12:07:30 +02:00
xlnx-zynq-devcfg.c maint: Fix macros with broken 'do/while(0); ' usage 2018-01-16 14:54:52 +01:00
xlnx_dpdma.c maint: Fix macros with broken 'do/while(0); ' usage 2018-01-16 14:54:52 +01:00