mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00

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>
13 lines
364 B
C
13 lines
364 B
C
#ifndef MC146818RTC_H
|
|
#define MC146818RTC_H
|
|
|
|
#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);
|
|
|
|
#endif /* !MC146818RTC_H */
|