Revision e1460e47
b/hw/mc146818rtc.h | ||
---|---|---|
1 |
#ifndef MC146818RTC_H |
|
2 |
#define MC146818RTC_H |
|
3 |
|
|
4 |
typedef struct RTCState RTCState; |
|
5 |
|
|
6 |
RTCState *rtc_init(int base_year); |
|
7 |
void rtc_set_memory(RTCState *s, int addr, int val); |
|
8 |
void rtc_set_date(RTCState *s, const struct tm *tm); |
|
9 |
|
|
10 |
#endif /* !MC146818RTC_H */ |
b/hw/pc.h | ||
---|---|---|
5 | 5 |
#include "ioport.h" |
6 | 6 |
#include "isa.h" |
7 | 7 |
#include "fdc.h" |
8 |
#include "mc146818rtc.h" |
|
8 | 9 |
|
9 | 10 |
/* PC-style peripherals (also used by other machines). */ |
10 | 11 |
|
... | ... | |
76 | 77 |
target_phys_addr_t base, ram_addr_t size, |
77 | 78 |
target_phys_addr_t mask); |
78 | 79 |
|
79 |
/* mc146818rtc.c */ |
|
80 |
|
|
81 |
typedef struct RTCState RTCState; |
|
82 |
|
|
83 |
RTCState *rtc_init(int base_year); |
|
84 |
void rtc_set_memory(RTCState *s, int addr, int val); |
|
85 |
void rtc_set_date(RTCState *s, const struct tm *tm); |
|
86 |
|
|
87 | 80 |
/* pc.c */ |
88 | 81 |
extern int fd_bootchk; |
89 | 82 |
|
Also available in: Unified diff