aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2017-10-14 13:22:22 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2017-10-31 17:25:36 +0000
commit7f773ff5d0d2172a7fb4a16a283c1fc5965f6fac (patch)
tree424fde9cfab6e18e42d3511df3bc0f640278c958 /include
parent1b13a60c1c15d7d69164f6d89465915838ddc07b (diff)
downloadqemu-7f773ff5d0d2172a7fb4a16a283c1fc5965f6fac.zip
qemu-7f773ff5d0d2172a7fb4a16a283c1fc5965f6fac.tar.gz
qemu-7f773ff5d0d2172a7fb4a16a283c1fc5965f6fac.tar.bz2
sparc32_dma: make esp device child of espdma device
This makes it possible to reference the esp device from the espdma device as required, and by wiring up the device ourselves in sun4m.c we can drop use of the esp_init() function. 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')
-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 df7491d..365160f 100644
--- a/include/hw/sparc/sparc32_dma.h
+++ b/include/hw/sparc/sparc32_dma.h
@@ -2,6 +2,7 @@
#define SPARC32_DMA_H
#include "hw/sysbus.h"
+#include "hw/scsi/esp.h"
#define DMA_REGS 4
@@ -28,6 +29,8 @@ struct DMADeviceState {
typedef struct ESPDMADeviceState {
DMADeviceState parent_obj;
+
+ SysBusESPState *esp;
} ESPDMADeviceState;
#define TYPE_SPARC32_LEDMA_DEVICE "sparc32-ledma"