2010-05-14 11:29:16 +04:00
|
|
|
#ifndef MC146818RTC_H
|
|
|
|
#define MC146818RTC_H
|
|
|
|
|
2013-02-05 20:06:20 +04:00
|
|
|
#include "hw/isa/isa.h"
|
|
|
|
#include "hw/timer/mc146818rtc_regs.h"
|
2010-06-13 16:15:40 +04:00
|
|
|
|
2013-04-28 00:18:43 +04:00
|
|
|
#define TYPE_MC146818_RTC "mc146818rtc"
|
|
|
|
|
2017-10-17 19:44:16 +03:00
|
|
|
ISADevice *mc146818_rtc_init(ISABus *bus, int base_year,
|
|
|
|
qemu_irq intercept_irq);
|
2010-05-14 11:29:17 +04:00
|
|
|
void rtc_set_memory(ISADevice *dev, int addr, int val);
|
2013-04-23 12:29:40 +04:00
|
|
|
int rtc_get_memory(ISADevice *dev, int addr);
|
2010-05-14 11:29:16 +04:00
|
|
|
|
2016-06-29 16:29:06 +03:00
|
|
|
#endif /* MC146818RTC_H */
|