pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 1 | #ifndef SUN4M_H |
| 2 | #define SUN4M_H |
| 3 | |
aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 4 | #include "qemu-common.h" |
| 5 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 6 | /* Devices used by sparc32 system. */ |
| 7 | |
| 8 | /* iommu.c */ |
Anthony Liguori | c227f09 | 2009-10-01 16:12:16 -0500 | [diff] [blame] | 9 | void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr, |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 10 | uint8_t *buf, int len, int is_write); |
| 11 | static inline void sparc_iommu_memory_read(void *opaque, |
Anthony Liguori | c227f09 | 2009-10-01 16:12:16 -0500 | [diff] [blame] | 12 | target_phys_addr_t addr, |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 13 | uint8_t *buf, int len) |
| 14 | { |
| 15 | sparc_iommu_memory_rw(opaque, addr, buf, len, 0); |
| 16 | } |
| 17 | |
| 18 | static inline void sparc_iommu_memory_write(void *opaque, |
Anthony Liguori | c227f09 | 2009-10-01 16:12:16 -0500 | [diff] [blame] | 19 | target_phys_addr_t addr, |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 20 | uint8_t *buf, int len) |
| 21 | { |
| 22 | sparc_iommu_memory_rw(opaque, addr, buf, len, 1); |
| 23 | } |
| 24 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 25 | /* slavio_intctl.c */ |
Blue Swirl | d453c2c | 2009-08-23 12:23:30 +0000 | [diff] [blame] | 26 | void slavio_pic_info(Monitor *mon, DeviceState *dev); |
| 27 | void slavio_irq_info(Monitor *mon, DeviceState *dev); |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 28 | |
blueswir1 | ee76f82 | 2007-12-28 20:59:23 +0000 | [diff] [blame] | 29 | /* sun4c_intctl.c */ |
aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 30 | void sun4c_pic_info(Monitor *mon, void *opaque); |
| 31 | void sun4c_irq_info(Monitor *mon, void *opaque); |
blueswir1 | ee76f82 | 2007-12-28 20:59:23 +0000 | [diff] [blame] | 32 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 33 | /* sparc32_dma.c */ |
blueswir1 | 216fdff | 2008-04-21 16:55:57 +0000 | [diff] [blame] | 34 | #include "sparc32_dma.h" |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 35 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 36 | #endif |