diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-18 01:44:38 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-18 01:44:38 +0000 |
commit | 9596ebb7012a19a45ca036a200acd617a93a321b (patch) | |
tree | df011db5945e48dc0c86c04daf2c2072f43f2867 /hw/mc146818rtc.c | |
parent | 4c1b1bfe30dab7bc08e3ff8f179f8e11be9d7f04 (diff) |
Add statics and missing #includes for prototypes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3683 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mc146818rtc.c')
-rw-r--r-- | hw/mc146818rtc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 8c8076b268..c1d595677b 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -390,7 +390,7 @@ void rtc_set_date(RTCState *s, const struct tm *tm) #define REG_IBM_CENTURY_BYTE 0x32 #define REG_IBM_PS2_CENTURY_BYTE 0x37 -void rtc_set_date_from_host(RTCState *s) +static void rtc_set_date_from_host(RTCState *s) { time_t ti; struct tm *tm; @@ -498,22 +498,22 @@ RTCState *rtc_init(int base, qemu_irq irq) } /* Memory mapped interface */ -uint32_t cmos_mm_readb (void *opaque, target_phys_addr_t addr) +static uint32_t cmos_mm_readb (void *opaque, target_phys_addr_t addr) { RTCState *s = opaque; return cmos_ioport_read(s, (addr - s->base) >> s->it_shift) & 0xFF; } -void cmos_mm_writeb (void *opaque, - target_phys_addr_t addr, uint32_t value) +static void cmos_mm_writeb (void *opaque, + target_phys_addr_t addr, uint32_t value) { RTCState *s = opaque; cmos_ioport_write(s, (addr - s->base) >> s->it_shift, value & 0xFF); } -uint32_t cmos_mm_readw (void *opaque, target_phys_addr_t addr) +static uint32_t cmos_mm_readw (void *opaque, target_phys_addr_t addr) { RTCState *s = opaque; uint32_t val; @@ -525,8 +525,8 @@ uint32_t cmos_mm_readw (void *opaque, target_phys_addr_t addr) return val; } -void cmos_mm_writew (void *opaque, - target_phys_addr_t addr, uint32_t value) +static void cmos_mm_writew (void *opaque, + target_phys_addr_t addr, uint32_t value) { RTCState *s = opaque; #ifdef TARGET_WORDS_BIGENDIAN @@ -535,7 +535,7 @@ void cmos_mm_writew (void *opaque, cmos_ioport_write(s, (addr - s->base) >> s->it_shift, value & 0xFFFF); } -uint32_t cmos_mm_readl (void *opaque, target_phys_addr_t addr) +static uint32_t cmos_mm_readl (void *opaque, target_phys_addr_t addr) { RTCState *s = opaque; uint32_t val; @@ -547,8 +547,8 @@ uint32_t cmos_mm_readl (void *opaque, target_phys_addr_t addr) return val; } -void cmos_mm_writel (void *opaque, - target_phys_addr_t addr, uint32_t value) +static void cmos_mm_writel (void *opaque, + target_phys_addr_t addr, uint32_t value) { RTCState *s = opaque; #ifdef TARGET_WORDS_BIGENDIAN |