root / hw / sun4m.h @ 979ba184
History | View | Annotate | Download (1 kB)
1 |
#ifndef SUN4M_H
|
---|---|
2 |
#define SUN4M_H
|
3 |
|
4 |
#include "qemu-common.h" |
5 |
|
6 |
/* Devices used by sparc32 system. */
|
7 |
|
8 |
/* iommu.c */
|
9 |
void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr, |
10 |
uint8_t *buf, int len, int is_write); |
11 |
static inline void sparc_iommu_memory_read(void *opaque, |
12 |
target_phys_addr_t addr, |
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, |
19 |
target_phys_addr_t addr, |
20 |
uint8_t *buf, int len)
|
21 |
{ |
22 |
sparc_iommu_memory_rw(opaque, addr, buf, len, 1);
|
23 |
} |
24 |
|
25 |
/* slavio_intctl.c */
|
26 |
void slavio_pic_info(Monitor *mon, DeviceState *dev);
|
27 |
void slavio_irq_info(Monitor *mon, DeviceState *dev);
|
28 |
|
29 |
/* sun4c_intctl.c */
|
30 |
void sun4c_pic_info(Monitor *mon, void *opaque); |
31 |
void sun4c_irq_info(Monitor *mon, void *opaque); |
32 |
|
33 |
/* sparc32_dma.c */
|
34 |
#include "sparc32_dma.h" |
35 |
|
36 |
#endif
|