sparc32_dma: make esp device child of espdma device
commit7f773ff5d0d2172a7fb4a16a283c1fc5965f6fac
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 14 Oct 2017 12:22:22 +0000 (14 13:22 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 31 Oct 2017 17:25:36 +0000 (31 17:25 +0000)
tree424fde9cfab6e18e42d3511df3bc0f640278c958
parent1b13a60c1c15d7d69164f6d89465915838ddc07b
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>
hw/dma/sparc32_dma.c
hw/sparc/sun4m.c
include/hw/sparc/sparc32_dma.h