mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/rtc/mc146818rtc: Pass MC146818RtcState instead of ISADevice argument
rtc_get_memory() and rtc_set_memory() methods can not take any TYPE_ISA_DEVICE object. They expect a TYPE_MC146818_RTC one. Simplify the API by passing a MC146818RtcState. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230210233116.80311-3-philmd@linaro.org>
This commit is contained in:
parent
8df7129790
commit
55c86cb803
6 changed files with 25 additions and 25 deletions
|
@ -51,10 +51,10 @@ struct MC146818RtcState {
|
|||
|
||||
#define RTC_ISA_IRQ 8
|
||||
|
||||
ISADevice *mc146818_rtc_init(ISABus *bus, int base_year,
|
||||
qemu_irq intercept_irq);
|
||||
void rtc_set_memory(ISADevice *dev, int addr, int val);
|
||||
int rtc_get_memory(ISADevice *dev, int addr);
|
||||
MC146818RtcState *mc146818_rtc_init(ISABus *bus, int base_year,
|
||||
qemu_irq intercept_irq);
|
||||
void rtc_set_memory(MC146818RtcState *s, int addr, int val);
|
||||
int rtc_get_memory(MC146818RtcState *s, int addr);
|
||||
void qmp_rtc_reset_reinjection(Error **errp);
|
||||
|
||||
#endif /* HW_RTC_MC146818RTC_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue