2007-11-17 20:14:51 +03:00
|
|
|
#ifndef SUN4M_H
|
|
|
|
#define SUN4M_H
|
|
|
|
|
2009-03-06 02:01:23 +03:00
|
|
|
#include "qemu-common.h"
|
|
|
|
|
2007-11-17 20:14:51 +03:00
|
|
|
/* Devices used by sparc32 system. */
|
|
|
|
|
|
|
|
/* iommu.c */
|
2012-10-23 14:30:10 +04:00
|
|
|
void sparc_iommu_memory_rw(void *opaque, hwaddr addr,
|
2007-11-17 20:14:51 +03:00
|
|
|
uint8_t *buf, int len, int is_write);
|
|
|
|
static inline void sparc_iommu_memory_read(void *opaque,
|
2012-10-23 14:30:10 +04:00
|
|
|
hwaddr addr,
|
2007-11-17 20:14:51 +03:00
|
|
|
uint8_t *buf, int len)
|
|
|
|
{
|
|
|
|
sparc_iommu_memory_rw(opaque, addr, buf, len, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void sparc_iommu_memory_write(void *opaque,
|
2012-10-23 14:30:10 +04:00
|
|
|
hwaddr addr,
|
2007-11-17 20:14:51 +03:00
|
|
|
uint8_t *buf, int len)
|
|
|
|
{
|
|
|
|
sparc_iommu_memory_rw(opaque, addr, buf, len, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* slavio_intctl.c */
|
2009-08-23 16:23:30 +04:00
|
|
|
void slavio_pic_info(Monitor *mon, DeviceState *dev);
|
|
|
|
void slavio_irq_info(Monitor *mon, DeviceState *dev);
|
2007-11-17 20:14:51 +03:00
|
|
|
|
2011-10-16 13:53:13 +04:00
|
|
|
/* sun4m.c */
|
2013-01-14 10:06:25 +04:00
|
|
|
void sun4m_pic_info(Monitor *mon, const QDict *qdict);
|
|
|
|
void sun4m_irq_info(Monitor *mon, const QDict *qdict);
|
2011-10-16 13:53:13 +04:00
|
|
|
|
2007-11-17 20:14:51 +03:00
|
|
|
/* sparc32_dma.c */
|
2013-02-04 18:40:22 +04:00
|
|
|
#include "hw/sparc32_dma.h"
|
2007-11-17 20:14:51 +03:00
|
|
|
|
|
|
|
#endif
|