mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-22 21:42:30 +00:00
mc146818rtc: Move RTC_ISA_IRQ definition
The ISA default number for the RTC devices is not related to its registers neither. Move this definition to "hw/timer/mc146818rtc.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191018133547.10936-3-philmd@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
53e4b8018e
commit
d578f7dfb4
@ -39,6 +39,8 @@ typedef struct RTCState {
|
||||
QLIST_ENTRY(RTCState) link;
|
||||
} RTCState;
|
||||
|
||||
#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);
|
||||
|
@ -27,8 +27,6 @@
|
||||
|
||||
#include "qemu/timer.h"
|
||||
|
||||
#define RTC_ISA_IRQ 8
|
||||
|
||||
#define RTC_SECONDS 0
|
||||
#define RTC_SECONDS_ALARM 1
|
||||
#define RTC_MINUTES 2
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include "libqtest-single.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "hw/timer/mc146818rtc.h"
|
||||
#include "hw/timer/mc146818rtc_regs.h"
|
||||
|
||||
#define UIP_HOLD_LENGTH (8 * NANOSECONDS_PER_SECOND / 32768)
|
||||
|
Loading…
x
Reference in New Issue
Block a user