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>
This commit is contained in:
Mark Cave-Ayland 2017-10-14 13:22:22 +01:00
parent 76d28ca765
commit e6ca02a46a
3 changed files with 32 additions and 24 deletions

View file

@ -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 */