mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
mc146818rtc: QOM'ify
Introduce type constant and cast macro to obsolete DO_UPCAST(). Prepares for ISA realizefn. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> Message-id: 1367093935-29091-9-git-send-email-afaerber@suse.de Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a2772c70a9
commit
0e41271ec4
2 changed files with 22 additions and 16 deletions
|
@ -4,6 +4,8 @@
|
|||
#include "hw/isa/isa.h"
|
||||
#include "hw/timer/mc146818rtc_regs.h"
|
||||
|
||||
#define TYPE_MC146818_RTC "mc146818rtc"
|
||||
|
||||
ISADevice *rtc_init(ISABus *bus, int base_year, qemu_irq intercept_irq);
|
||||
void rtc_set_memory(ISADevice *dev, int addr, int val);
|
||||
void rtc_set_date(ISADevice *dev, const struct tm *tm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue