From e6ca02a46ae0fafe59544b789e9172efa1a929c1 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Sat, 14 Oct 2017 13:22:22 +0100 Subject: sparc32_dma: make lance device child of ledma device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it possible to reference the lance device from the ledma device as required. Signed-off-by: Mark Cave-Ayland Reviewed-by: Artyom Tarasenko Acked-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- include/hw/sparc/sparc32_dma.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/hw/sparc') diff --git a/include/hw/sparc/sparc32_dma.h b/include/hw/sparc/sparc32_dma.h index 365160f..5e39d81 100644 --- a/include/hw/sparc/sparc32_dma.h +++ b/include/hw/sparc/sparc32_dma.h @@ -3,6 +3,7 @@ #include "hw/sysbus.h" #include "hw/scsi/esp.h" +#include "hw/net/lance.h" #define DMA_REGS 4 @@ -39,6 +40,8 @@ typedef struct ESPDMADeviceState { typedef struct LEDMADeviceState { DMADeviceState parent_obj; + + SysBusPCNetState *lance; } LEDMADeviceState; /* sparc32_dma.c */ -- cgit v1.1