hw/sd/allwinner-sdhost: Use AddressSpace for DMA transfers
commitb3aec952bf11ef54376db96dd673c6a34753b697
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 28 Aug 2020 09:02:45 +0000 (28 10:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Aug 2020 09:02:45 +0000 (28 10:02 +0100)
tree9bde17966008abe3b1ae085cf62c955bdd2f2a01
parent9a4670be7f0734d27bf4058db3becf83cd0cc9d5
hw/sd/allwinner-sdhost: Use AddressSpace for DMA transfers

Allow the device to execute the DMA transfers in a different
AddressSpace.

The A10 and H3 SoC keep using the system_memory address space,
but via the proper dma_memory_access() API.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20200814110057.307-1-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/allwinner-a10.c
hw/arm/allwinner-h3.c
hw/sd/allwinner-sdhost.c
include/hw/sd/allwinner-sdhost.h