4 /* Devices used by sparc32 system. */
7 void *iommu_init(target_phys_addr_t addr
, uint32_t version
, qemu_irq irq
);
8 void sparc_iommu_memory_rw(void *opaque
, target_phys_addr_t addr
,
9 uint8_t *buf
, int len
, int is_write
);
10 static inline void sparc_iommu_memory_read(void *opaque
,
11 target_phys_addr_t addr
,
12 uint8_t *buf
, int len
)
14 sparc_iommu_memory_rw(opaque
, addr
, buf
, len
, 0);
17 static inline void sparc_iommu_memory_write(void *opaque
,
18 target_phys_addr_t addr
,
19 uint8_t *buf
, int len
)
21 sparc_iommu_memory_rw(opaque
, addr
, buf
, len
, 1);
25 void tcx_init(target_phys_addr_t addr
, uint8_t *vram_base
,
26 unsigned long vram_offset
, int vram_size
, int width
, int height
,
30 void *slavio_intctl_init(target_phys_addr_t addr
, target_phys_addr_t addrg
,
31 const uint32_t *intbit_to_level
,
32 qemu_irq
**irq
, qemu_irq
**cpu_irq
,
33 qemu_irq
**parent_irq
, unsigned int cputimer
);
34 void slavio_pic_info(void *opaque
);
35 void slavio_irq_info(void *opaque
);
38 void *sbi_init(target_phys_addr_t addr
, qemu_irq
**irq
, qemu_irq
**cpu_irq
,
39 qemu_irq
**parent_irq
);
42 void *sun4c_intctl_init(target_phys_addr_t addr
, qemu_irq
**irq
,
43 qemu_irq
*parent_irq
);
44 void sun4c_pic_info(void *opaque
);
45 void sun4c_irq_info(void *opaque
);
48 void slavio_timer_init_all(target_phys_addr_t base
, qemu_irq master_irq
,
49 qemu_irq
*cpu_irqs
, unsigned int num_cpus
);
52 void *slavio_misc_init(target_phys_addr_t base
, target_phys_addr_t power_base
,
53 target_phys_addr_t aux1_base
,
54 target_phys_addr_t aux2_base
, qemu_irq irq
,
55 qemu_irq cpu_halt
, qemu_irq
**fdc_tc
);
56 void slavio_set_power_fail(void *opaque
, int power_failing
);
59 void cs_init(target_phys_addr_t base
, int irq
, void *intctl
);
62 #include "sparc32_dma.h"
65 void lance_init(NICInfo
*nd
, target_phys_addr_t leaddr
, void *dma_opaque
,
66 qemu_irq irq
, qemu_irq
*reset
);
69 void *ecc_init(target_phys_addr_t base
, qemu_irq irq
, uint32_t version
);