2010-05-14 07:29:16 +00:00
|
|
|
#ifndef MC146818RTC_H
|
|
|
|
#define MC146818RTC_H
|
|
|
|
|
2013-02-05 16:06:20 +00:00
|
|
|
#include "hw/isa/isa.h"
|
|
|
|
#include "hw/timer/mc146818rtc_regs.h"
|
2010-06-13 12:15:40 +00:00
|
|
|
|
2013-04-27 20:18:43 +00:00
|
|
|
#define TYPE_MC146818_RTC "mc146818rtc"
|
|
|
|
|
2011-12-15 21:09:51 +00:00
|
|
|
ISADevice *rtc_init(ISABus *bus, int base_year, qemu_irq intercept_irq);
|
2010-05-14 07:29:17 +00:00
|
|
|
void rtc_set_memory(ISADevice *dev, int addr, int val);
|
2013-04-23 08:29:40 +00:00
|
|
|
int rtc_get_memory(ISADevice *dev, int addr);
|
2010-05-14 07:29:16 +00:00
|
|
|
|
|
|
|
#endif /* !MC146818RTC_H */
|