From 1d914fa0af66024faee8cc6fa3043a935f95f775 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Fri, 14 May 2010 16:29:17 +0900 Subject: 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 Acked-by: Gerd Hoffmann Signed-off-by: Blue Swirl --- hw/mc146818rtc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hw/mc146818rtc.h') diff --git a/hw/mc146818rtc.h b/hw/mc146818rtc.h index 7211dae37..6f46a68e0 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 */ -- cgit v1.2.3