aboutsummaryrefslogtreecommitdiff
path: root/hw/mc146818rtc.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-05-14 16:29:17 +0900
committerBlue Swirl <blauwirbel@gmail.com>2010-05-15 16:21:49 +0000
commit1d914fa0af66024faee8cc6fa3043a935f95f775 (patch)
tree76fe5f88cb67e1f4e5f322fda4c44eb81b3a4859 /hw/mc146818rtc.h
parente1460e4707cd80982add597f5cb421289db84e4e (diff)
downloadqemu-1d914fa0af66024faee8cc6fa3043a935f95f775.zip
qemu-1d914fa0af66024faee8cc6fa3043a935f95f775.tar.gz
qemu-1d914fa0af66024faee8cc6fa3043a935f95f775.tar.bz2
rtc: make rtc_xxx accept/return ISADevice instead of RTCState.
To match rtc_xxx with qdev, make rtc_xxx accept and return ISADevice instead of RTCState. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/mc146818rtc.h')
-rw-r--r--hw/mc146818rtc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/mc146818rtc.h b/hw/mc146818rtc.h
index 7211dae..6f46a68 100644
--- a/hw/mc146818rtc.h
+++ b/hw/mc146818rtc.h
@@ -1,10 +1,10 @@
#ifndef MC146818RTC_H
#define MC146818RTC_H
-typedef struct RTCState RTCState;
+#include "isa.h"
-RTCState *rtc_init(int base_year);
-void rtc_set_memory(RTCState *s, int addr, int val);
-void rtc_set_date(RTCState *s, const struct tm *tm);
+ISADevice *rtc_init(int base_year);
+void rtc_set_memory(ISADevice *dev, int addr, int val);
+void rtc_set_date(ISADevice *dev, const struct tm *tm);
#endif /* !MC146818RTC_H */