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 #include "hw/rtc/mc146818rtc_regs.h" 14 15 #define TYPE_MC146818_RTC "mc146818rtc" 16 17 ISADevice *mc146818_rtc_init(ISABus *bus, int base_year, 18 qemu_irq intercept_irq); 19 void rtc_set_memory(ISADevice *dev, int addr, int val); 20 int rtc_get_memory(ISADevice *dev, int addr); 21 22 #endif /* MC146818RTC_H */ 23