hw/net/allwinner-sun8i-emac: Use AddressSpace for DMA transfers
commit4757cb857934a5e2dcafe1f41e95233f5c0a878d
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)
tree69a8e4c2a6df3f7762f2453917ed81a24b5f2fe8
parentb3aec952bf11ef54376db96dd673c6a34753b697
hw/net/allwinner-sun8i-emac: Use AddressSpace for DMA transfers

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

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

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20200814122907.27732-1-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/allwinner-h3.c
hw/net/allwinner-sun8i-emac.c
include/hw/net/allwinner-sun8i-emac.h