2007-11-18 01:14:51 +08:00
|
|
|
#ifndef SUN4M_H
|
|
|
|
#define SUN4M_H
|
|
|
|
|
2009-03-06 07:01:23 +08:00
|
|
|
#include "qemu-common.h"
|
|
|
|
|
2007-11-18 01:14:51 +08:00
|
|
|
/* Devices used by sparc32 system. */
|
|
|
|
|
|
|
|
/* iommu.c */
|
2009-10-02 05:12:16 +08:00
|
|
|
void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr,
|
2007-11-18 01:14:51 +08:00
|
|
|
uint8_t *buf, int len, int is_write);
|
|
|
|
static inline void sparc_iommu_memory_read(void *opaque,
|
2009-10-02 05:12:16 +08:00
|
|
|
target_phys_addr_t addr,
|
2007-11-18 01:14:51 +08:00
|
|
|
uint8_t *buf, int len)
|
|
|
|
{
|
|
|
|
sparc_iommu_memory_rw(opaque, addr, buf, len, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sparc_iommu_memory_write(void *opaque,
|
2009-10-02 05:12:16 +08:00
|
|
|
target_phys_addr_t addr,
|
2007-11-18 01:14:51 +08:00
|
|
|
uint8_t *buf, int len)
|
|
|
|
{
|
|
|
|
sparc_iommu_memory_rw(opaque, addr, buf, len, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* slavio_intctl.c */
|
2009-08-23 20:23:30 +08:00
|
|
|
void slavio_pic_info(Monitor *mon, DeviceState *dev);
|
|
|
|
void slavio_irq_info(Monitor *mon, DeviceState *dev);
|
2007-11-18 01:14:51 +08:00
|
|
|
|
2007-12-29 04:59:23 +08:00
|
|
|
/* sun4c_intctl.c */
|
2009-03-06 07:01:23 +08:00
|
|
|
void sun4c_pic_info(Monitor *mon, void *opaque);
|
|
|
|
void sun4c_irq_info(Monitor *mon, void *opaque);
|
2007-12-29 04:59:23 +08:00
|
|
|
|
2007-11-18 01:14:51 +08:00
|
|
|
/* sparc32_dma.c */
|
2008-04-22 00:55:57 +08:00
|
|
|
#include "sparc32_dma.h"
|
2007-11-18 01:14:51 +08:00
|
|
|
|
|
|
|
#endif
|