From: Isaku Yamahata Date: Fri, 14 May 2010 07:29:16 +0000 (+0900) Subject: pc: move rtc declarations from pc.h into a dedicated header file. X-Git-Tag: v0.13.0-rc0~532 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1460e4707cd80982add597f5cb421289db84e4e;p=thirdparty%2Fqemu.git pc: move rtc declarations from pc.h into a dedicated header file. Move rtc_xxx declarations from pc.h into mc146818rtc.h. Signed-off-by: Isaku Yamahata Acked-by: Gerd Hoffmann Signed-off-by: Blue Swirl --- diff --git a/hw/mc146818rtc.h b/hw/mc146818rtc.h new file mode 100644 index 00000000000..7211dae37ec --- /dev/null +++ b/hw/mc146818rtc.h @@ -0,0 +1,10 @@ +#ifndef MC146818RTC_H +#define MC146818RTC_H + +typedef struct RTCState RTCState; + +RTCState *rtc_init(int base_year); +void rtc_set_memory(RTCState *s, int addr, int val); +void rtc_set_date(RTCState *s, const struct tm *tm); + +#endif /* !MC146818RTC_H */ diff --git a/hw/pc.h b/hw/pc.h index 8cfec6c0dcf..e3cc0a58bd3 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -5,6 +5,7 @@ #include "ioport.h" #include "isa.h" #include "fdc.h" +#include "mc146818rtc.h" /* PC-style peripherals (also used by other machines). */ @@ -76,14 +77,6 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq, target_phys_addr_t base, ram_addr_t size, target_phys_addr_t mask); -/* mc146818rtc.c */ - -typedef struct RTCState RTCState; - -RTCState *rtc_init(int base_year); -void rtc_set_memory(RTCState *s, int addr, int val); -void rtc_set_date(RTCState *s, const struct tm *tm); - /* pc.c */ extern int fd_bootchk;