diff options
author | Gerd Hoffmann | 2020-04-29 15:59:54 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2020-05-04 16:25:02 +0200 |
commit | ba480fa6264b161697009448c3cbc0730485379e (patch) | |
tree | eee451812681fa8d1eb06c44bc11a8f882f25df2 /include/hw/rtc | |
parent | acpi: add ISADeviceClass->build_aml() (diff) | |
download | qemu-ba480fa6264b161697009448c3cbc0730485379e.tar.gz qemu-ba480fa6264b161697009448c3cbc0730485379e.tar.xz qemu-ba480fa6264b161697009448c3cbc0730485379e.zip |
rtc: add RTC_ISA_BASE
Add and use RTC_ISA_BASE define instead of hardcoding 0x70.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200429140003.7336-7-kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'include/hw/rtc')
-rw-r--r-- | include/hw/rtc/mc146818rtc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/rtc/mc146818rtc.h b/include/hw/rtc/mc146818rtc.h index 10c93a096a..3713181b56 100644 --- a/include/hw/rtc/mc146818rtc.h +++ b/include/hw/rtc/mc146818rtc.h @@ -47,6 +47,7 @@ typedef struct RTCState { } RTCState; #define RTC_ISA_IRQ 8 +#define RTC_ISA_BASE 0x70 ISADevice *mc146818_rtc_init(ISABus *bus, int base_year, qemu_irq intercept_irq); |