mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 23:17:43 -07:00
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 <yamahata@valinux.co.jp> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
845773ab03
commit
e1460e4707
2 changed files with 11 additions and 8 deletions
10
hw/mc146818rtc.h
Normal file
10
hw/mc146818rtc.h
Normal file
|
|
@ -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 */
|
||||
9
hw/pc.h
9
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue