]>
Commit | Line | Data |
---|---|---|
87ecb68b PB |
1 | #ifndef SUN4M_H |
2 | #define SUN4M_H | |
3 | ||
376253ec | 4 | #include "qemu-common.h" |
3bd88451 PB |
5 | #include "exec/hwaddr.h" |
6 | #include "qapi/qmp/types.h" | |
376253ec | 7 | |
87ecb68b PB |
8 | /* Devices used by sparc32 system. */ |
9 | ||
10 | /* iommu.c */ | |
a8170e5e | 11 | void sparc_iommu_memory_rw(void *opaque, hwaddr addr, |
87ecb68b PB |
12 | uint8_t *buf, int len, int is_write); |
13 | static inline void sparc_iommu_memory_read(void *opaque, | |
a8170e5e | 14 | hwaddr addr, |
87ecb68b PB |
15 | uint8_t *buf, int len) |
16 | { | |
17 | sparc_iommu_memory_rw(opaque, addr, buf, len, 0); | |
18 | } | |
19 | ||
20 | static inline void sparc_iommu_memory_write(void *opaque, | |
a8170e5e | 21 | hwaddr addr, |
87ecb68b PB |
22 | uint8_t *buf, int len) |
23 | { | |
24 | sparc_iommu_memory_rw(opaque, addr, buf, len, 1); | |
25 | } | |
26 | ||
87ecb68b | 27 | /* slavio_intctl.c */ |
d453c2c3 BS |
28 | void slavio_pic_info(Monitor *mon, DeviceState *dev); |
29 | void slavio_irq_info(Monitor *mon, DeviceState *dev); | |
87ecb68b | 30 | |
661f1929 | 31 | /* sun4m.c */ |
1ce6be24 MA |
32 | void sun4m_hmp_info_pic(Monitor *mon, const QDict *qdict); |
33 | void sun4m_hmp_info_irq(Monitor *mon, const QDict *qdict); | |
661f1929 | 34 | |
87ecb68b | 35 | /* sparc32_dma.c */ |
0d09e41a | 36 | #include "hw/sparc/sparc32_dma.h" |
87ecb68b | 37 | |
87ecb68b | 38 | #endif |