]>
git.proxmox.com Git - mirror_qemu.git/blob - include/hw/rtc/mc146818rtc.h
2 * QEMU MC146818 RTC emulation
4 * Copyright (c) 2003-2004 Fabrice Bellard
6 * SPDX-License-Identifier: MIT
9 #ifndef HW_RTC_MC146818RTC_H
10 #define HW_RTC_MC146818RTC_H
12 #include "hw/isa/isa.h"
14 #define TYPE_MC146818_RTC "mc146818rtc"
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
);
21 #endif /* MC146818RTC_H */