qemu: initialize hot add system / acpi gpe (Marcelo Tosatti)
[sniper_test.git] / hw / sun4m.h
blobe1fa8376ca1475c62469df90e93c116de78cd135
1 #ifndef SUN4M_H
2 #define SUN4M_H
4 /* Devices used by sparc32 system. */
6 /* iommu.c */
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);
24 /* tcx.c */
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,
27 int depth);
29 /* slavio_intctl.c */
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);
37 /* sbi.c */
38 void *sbi_init(target_phys_addr_t addr, qemu_irq **irq, qemu_irq **cpu_irq,
39 qemu_irq **parent_irq);
41 /* sun4c_intctl.c */
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);
47 /* slavio_timer.c */
48 void slavio_timer_init_all(target_phys_addr_t base, qemu_irq master_irq,
49 qemu_irq *cpu_irqs, unsigned int num_cpus);
51 /* slavio_misc.c */
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);
58 /* cs4231.c */
59 void cs_init(target_phys_addr_t base, int irq, void *intctl);
61 /* sparc32_dma.c */
62 #include "sparc32_dma.h"
64 /* pcnet.c */
65 void lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque,
66 qemu_irq irq, qemu_irq *reset);
68 /* eccmemctl.c */
69 void *ecc_init(target_phys_addr_t base, qemu_irq irq, uint32_t version);
71 #endif