xref: /openbmc/qemu/include/hw/rtc/mc146818rtc.h (revision 7ffcb73d3f16bfffa946e4fc780292725638953f)
1 /*
2  * QEMU MC146818 RTC emulation
3  *
4  * Copyright (c) 2003-2004 Fabrice Bellard
5  *
6  * SPDX-License-Identifier: MIT
7  */
8 
9 #ifndef HW_RTC_MC146818RTC_H
10 #define HW_RTC_MC146818RTC_H
11 
12 #include "hw/isa/isa.h"
13 
14 #define TYPE_MC146818_RTC "mc146818rtc"
15 
16 ISADevice *mc146818_rtc_init(ISABus *bus, int base_year,
17                              qemu_irq intercept_irq);
18 void rtc_set_memory(ISADevice *dev, int addr, int val);
19 int rtc_get_memory(ISADevice *dev, int addr);
20 
21 #endif /* MC146818RTC_H */
22