diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-15 14:27:05 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-15 14:27:05 +0000 |
commit | 802670e6c9026c945c232a46bb5c789601334280 (patch) | |
tree | dff18b23828c7fc5c8843f93caab2068c5043e92 /hw/serial.c | |
parent | 1786dc15eeecdc49a2097e262a9ad1510a14dcc0 (diff) |
PPC: clean up ppc405
Rely on the subpage system instead of the local version.
Make most functions "static".
Fix wrong parameter passed to ppc4xx_pob_reset.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/serial.c')
-rw-r--r-- | hw/serial.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hw/serial.c b/hw/serial.c index d70504bb06..bacaceaf0d 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -745,22 +745,22 @@ SerialState *serial_init(int base, qemu_irq irq, int baudbase, } /* Memory mapped interface */ -uint32_t serial_mm_readb (void *opaque, target_phys_addr_t addr) +static uint32_t serial_mm_readb(void *opaque, target_phys_addr_t addr) { SerialState *s = opaque; return serial_ioport_read(s, addr >> s->it_shift) & 0xFF; } -void serial_mm_writeb (void *opaque, - target_phys_addr_t addr, uint32_t value) +static void serial_mm_writeb(void *opaque, target_phys_addr_t addr, + uint32_t value) { SerialState *s = opaque; serial_ioport_write(s, addr >> s->it_shift, value & 0xFF); } -uint32_t serial_mm_readw (void *opaque, target_phys_addr_t addr) +static uint32_t serial_mm_readw(void *opaque, target_phys_addr_t addr) { SerialState *s = opaque; uint32_t val; @@ -772,8 +772,8 @@ uint32_t serial_mm_readw (void *opaque, target_phys_addr_t addr) return val; } -void serial_mm_writew (void *opaque, - target_phys_addr_t addr, uint32_t value) +static void serial_mm_writew(void *opaque, target_phys_addr_t addr, + uint32_t value) { SerialState *s = opaque; #ifdef TARGET_WORDS_BIGENDIAN @@ -782,7 +782,7 @@ void serial_mm_writew (void *opaque, serial_ioport_write(s, addr >> s->it_shift, value & 0xFFFF); } -uint32_t serial_mm_readl (void *opaque, target_phys_addr_t addr) +static uint32_t serial_mm_readl(void *opaque, target_phys_addr_t addr) { SerialState *s = opaque; uint32_t val; @@ -794,8 +794,8 @@ uint32_t serial_mm_readl (void *opaque, target_phys_addr_t addr) return val; } -void serial_mm_writel (void *opaque, - target_phys_addr_t addr, uint32_t value) +static void serial_mm_writel(void *opaque, target_phys_addr_t addr, + uint32_t value) { SerialState *s = opaque; #ifdef TARGET_WORDS_BIGENDIAN |