sun4m.h 986 字节
Newer Older
P
pbrook 已提交
1 2 3
#ifndef SUN4M_H
#define SUN4M_H

A
aliguori 已提交
4 5
#include "qemu-common.h"

P
pbrook 已提交
6 7 8
/* Devices used by sparc32 system.  */

/* iommu.c */
A
Avi Kivity 已提交
9
void sparc_iommu_memory_rw(void *opaque, hwaddr addr,
P
pbrook 已提交
10 11
                                 uint8_t *buf, int len, int is_write);
static inline void sparc_iommu_memory_read(void *opaque,
A
Avi Kivity 已提交
12
                                           hwaddr addr,
P
pbrook 已提交
13 14 15 16 17 18
                                           uint8_t *buf, int len)
{
    sparc_iommu_memory_rw(opaque, addr, buf, len, 0);
}

static inline void sparc_iommu_memory_write(void *opaque,
A
Avi Kivity 已提交
19
                                            hwaddr addr,
P
pbrook 已提交
20 21 22 23 24 25
                                            uint8_t *buf, int len)
{
    sparc_iommu_memory_rw(opaque, addr, buf, len, 1);
}

/* slavio_intctl.c */
26 27
void slavio_pic_info(Monitor *mon, DeviceState *dev);
void slavio_irq_info(Monitor *mon, DeviceState *dev);
P
pbrook 已提交
28

29 30 31 32
/* sun4m.c */
void sun4m_pic_info(Monitor *mon);
void sun4m_irq_info(Monitor *mon);

P
pbrook 已提交
33
/* sparc32_dma.c */
B
blueswir1 已提交
34
#include "sparc32_dma.h"
P
pbrook 已提交
35 36

#endif