diff options
author | Philippe Mathieu-Daudé | 2020-08-28 11:02:45 +0200 |
---|---|---|
committer | Peter Maydell | 2020-08-28 11:02:45 +0200 |
commit | b3aec952bf11ef54376db96dd673c6a34753b697 (patch) | |
tree | 9bde17966008abe3b1ae085cf62c955bdd2f2a01 /include/hw/sd | |
parent | target/arm: Fill in the WnR syndrome bit in mte_check_fail (diff) | |
download | qemu-b3aec952bf11ef54376db96dd673c6a34753b697.tar.gz qemu-b3aec952bf11ef54376db96dd673c6a34753b697.tar.xz qemu-b3aec952bf11ef54376db96dd673c6a34753b697.zip |
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>
Diffstat (limited to 'include/hw/sd')
-rw-r--r-- | include/hw/sd/allwinner-sdhost.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/sd/allwinner-sdhost.h b/include/hw/sd/allwinner-sdhost.h index d94606a853..839732ebf3 100644 --- a/include/hw/sd/allwinner-sdhost.h +++ b/include/hw/sd/allwinner-sdhost.h @@ -71,6 +71,12 @@ typedef struct AwSdHostState { /** Interrupt output signal to notify CPU */ qemu_irq irq; + /** Memory region where DMA transfers are done */ + MemoryRegion *dma_mr; + + /** Address space used internally for DMA transfers */ + AddressSpace dma_as; + /** Number of bytes left in current DMA transfer */ uint32_t transfer_cnt; |