5 #include "hw/scsi/esp.h"
6 #include "hw/net/lance.h"
10 #define TYPE_SPARC32_DMA_DEVICE "sparc32-dma-device"
11 #define SPARC32_DMA_DEVICE(obj) OBJECT_CHECK(DMADeviceState, (obj), \
12 TYPE_SPARC32_DMA_DEVICE)
14 typedef struct DMADeviceState DMADeviceState
;
16 struct DMADeviceState
{
17 SysBusDevice parent_obj
;
20 uint32_t dmaregs
[DMA_REGS
];
26 #define TYPE_SPARC32_ESPDMA_DEVICE "sparc32-espdma"
27 #define SPARC32_ESPDMA_DEVICE(obj) OBJECT_CHECK(ESPDMADeviceState, (obj), \
28 TYPE_SPARC32_ESPDMA_DEVICE)
30 typedef struct ESPDMADeviceState
{
31 DMADeviceState parent_obj
;
36 #define TYPE_SPARC32_LEDMA_DEVICE "sparc32-ledma"
37 #define SPARC32_LEDMA_DEVICE(obj) OBJECT_CHECK(LEDMADeviceState, (obj), \
38 TYPE_SPARC32_LEDMA_DEVICE)
40 typedef struct LEDMADeviceState
{
41 DMADeviceState parent_obj
;
43 SysBusPCNetState
*lance
;
46 #define TYPE_SPARC32_DMA "sparc32-dma"
47 #define SPARC32_DMA(obj) OBJECT_CHECK(SPARC32DMAState, (obj), \
50 typedef struct SPARC32DMAState
{
51 SysBusDevice parent_obj
;
54 MemoryRegion ledma_alias
;
55 ESPDMADeviceState
*espdma
;
56 LEDMADeviceState
*ledma
;
60 void ledma_memory_read(void *opaque
, hwaddr addr
,
61 uint8_t *buf
, int len
, int do_bswap
);
62 void ledma_memory_write(void *opaque
, hwaddr addr
,
63 uint8_t *buf
, int len
, int do_bswap
);
64 void espdma_memory_read(void *opaque
, uint8_t *buf
, int len
);
65 void espdma_memory_write(void *opaque
, uint8_t *buf
, int len
);