From 84aec8efd62052f6aeda570b328bc3ac484a1d30 Mon Sep 17 00:00:00 2001 From: Edgar E. Iglesias Date: Thu, 11 Oct 2018 04:19:25 +0200 Subject: net: cadence_gem: Add support for selecting the DMA MemoryRegion Add support for selecting the Memory Region that the GEM will do DMA to. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Message-id: 20181011021931.4249-7-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell --- include/hw/net/cadence_gem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/hw/net/cadence_gem.h b/include/hw/net/cadence_gem.h index 00dbf4f72e..5426961d91 100644 --- a/include/hw/net/cadence_gem.h +++ b/include/hw/net/cadence_gem.h @@ -45,6 +45,8 @@ typedef struct CadenceGEMState { /*< public >*/ MemoryRegion iomem; + MemoryRegion *dma_mr; + AddressSpace dma_as; NICState *nic; NICConf conf; qemu_irq irq[MAX_PRIORITY_QUEUES]; -- cgit v1.2.3-55-g7522