]> Git Repo - qemu.git/commitdiff
mc146818rtc: Move RTC_ISA_IRQ definition
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 18 Oct 2019 13:35:45 +0000 (15:35 +0200)
committerPaolo Bonzini <[email protected]>
Thu, 24 Oct 2019 12:24:55 +0000 (14:24 +0200)
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é <[email protected]>
Message-Id: <20191018133547[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
include/hw/timer/mc146818rtc.h
include/hw/timer/mc146818rtc_regs.h
tests/rtc-test.c

index 0f1c886e5ba7c44d609f8b87da95126a7e2d1993..17761cf6d9a7dca116feb348e72f4f296359fdbd 100644 (file)
@@ -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);
index bfbb57e57012d6ed6b4f77f68f6238d929aad034..631f71cfd917e3f68c4faaa1921576a52a325e9e 100644 (file)
@@ -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
index 6309b0ef6cc2f2ce496178d4a28fda4899827698..18f895690f595de9e6d0ee94103adfa4f65a08e7 100644 (file)
@@ -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)
This page took 0.028939 seconds and 4 git commands to generate.