mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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:
parent
76d28ca765
commit
e6ca02a46a
3 changed files with 32 additions and 24 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue