mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
e1460e4707
commit
1d914fa0af
9 changed files with 34 additions and 26 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue