diff options
author | Andreas Färber <afaerber@suse.de> | 2013-04-27 22:18:43 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-29 08:27:48 -0500 |
commit | 0e41271ec4944ea5b63c98b8e497618709e954c3 (patch) | |
tree | 666a045ee3ebed4601da4b7f6f0868342c1f50fe /include | |
parent | a2772c70a9617c73875c5ee915b32ccb50f0bf90 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/timer/mc146818rtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/timer/mc146818rtc.h b/include/hw/timer/mc146818rtc.h index 854ea3f5b5..425bd179a4 100644 --- a/include/hw/timer/mc146818rtc.h +++ b/include/hw/timer/mc146818rtc.h @@ -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); |