summaryrefslogtreecommitdiffstats
path: root/include/hw/sparc
diff options
context:
space:
mode:
authorMark Cave-Ayland2017-10-14 14:22:22 +0200
committerMark Cave-Ayland2017-10-31 18:25:36 +0100
commite6ca02a46ae0fafe59544b789e9172efa1a929c1 (patch)
tree71fc4e1297f8a3580f964da57dee46fbdfbdc9d9 /include/hw/sparc
parentlance: move TYPE_LANCE and SysBusPCNetState from lance.c to lance.h (diff)
downloadqemu-e6ca02a46ae0fafe59544b789e9172efa1a929c1.tar.gz
qemu-e6ca02a46ae0fafe59544b789e9172efa1a929c1.tar.xz
qemu-e6ca02a46ae0fafe59544b789e9172efa1a929c1.zip
sparc32_dma: make lance device child of ledma device
This makes it possible to reference the lance device from the ledma device as required. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com> Acked-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/hw/sparc')
-rw-r--r--include/hw/sparc/sparc32_dma.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/sparc/sparc32_dma.h b/include/hw/sparc/sparc32_dma.h
index 365160f2d1..5e39d81c8c 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 */