Revision 99a0949b hw/isa_mmio.c
b/hw/isa_mmio.c | ||
---|---|---|
25 | 25 |
#include "hw.h" |
26 | 26 |
#include "isa.h" |
27 | 27 |
|
28 |
static void isa_mmio_writeb (void *opaque, target_phys_addr_t addr,
|
|
28 |
static void isa_mmio_writeb (void *opaque, a_target_phys_addr addr,
|
|
29 | 29 |
uint32_t val) |
30 | 30 |
{ |
31 | 31 |
cpu_outb(addr & IOPORTS_MASK, val); |
32 | 32 |
} |
33 | 33 |
|
34 |
static void isa_mmio_writew (void *opaque, target_phys_addr_t addr,
|
|
34 |
static void isa_mmio_writew (void *opaque, a_target_phys_addr addr,
|
|
35 | 35 |
uint32_t val) |
36 | 36 |
{ |
37 | 37 |
#ifdef TARGET_WORDS_BIGENDIAN |
... | ... | |
40 | 40 |
cpu_outw(addr & IOPORTS_MASK, val); |
41 | 41 |
} |
42 | 42 |
|
43 |
static void isa_mmio_writel (void *opaque, target_phys_addr_t addr,
|
|
43 |
static void isa_mmio_writel (void *opaque, a_target_phys_addr addr,
|
|
44 | 44 |
uint32_t val) |
45 | 45 |
{ |
46 | 46 |
#ifdef TARGET_WORDS_BIGENDIAN |
... | ... | |
49 | 49 |
cpu_outl(addr & IOPORTS_MASK, val); |
50 | 50 |
} |
51 | 51 |
|
52 |
static uint32_t isa_mmio_readb (void *opaque, target_phys_addr_t addr)
|
|
52 |
static uint32_t isa_mmio_readb (void *opaque, a_target_phys_addr addr)
|
|
53 | 53 |
{ |
54 | 54 |
uint32_t val; |
55 | 55 |
|
... | ... | |
57 | 57 |
return val; |
58 | 58 |
} |
59 | 59 |
|
60 |
static uint32_t isa_mmio_readw (void *opaque, target_phys_addr_t addr)
|
|
60 |
static uint32_t isa_mmio_readw (void *opaque, a_target_phys_addr addr)
|
|
61 | 61 |
{ |
62 | 62 |
uint32_t val; |
63 | 63 |
|
... | ... | |
68 | 68 |
return val; |
69 | 69 |
} |
70 | 70 |
|
71 |
static uint32_t isa_mmio_readl (void *opaque, target_phys_addr_t addr)
|
|
71 |
static uint32_t isa_mmio_readl (void *opaque, a_target_phys_addr addr)
|
|
72 | 72 |
{ |
73 | 73 |
uint32_t val; |
74 | 74 |
|
... | ... | |
93 | 93 |
|
94 | 94 |
static int isa_mmio_iomemtype = 0; |
95 | 95 |
|
96 |
void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size)
|
|
96 |
void isa_mmio_init(a_target_phys_addr base, a_target_phys_addr size)
|
|
97 | 97 |
{ |
98 | 98 |
if (!isa_mmio_iomemtype) { |
99 | 99 |
isa_mmio_iomemtype = cpu_register_io_memory(isa_mmio_read, |
Also available in: Unified diff