]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw: Move MC146818 device from hw/timer/ to hw/rtc/ subdirectory
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 3 Oct 2019 23:03:53 +0000 (01:03 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 24 Oct 2019 18:13:10 +0000 (20:13 +0200)
The MC146818 is a Real Time Clock, not a timer.
Move it under the hw/rtc/ subdirectory.

Use copyright statement from 80cabfad163 for "hw/rtc/mc146818rtc.h".

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191003230404.19384-4-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
21 files changed:
MAINTAINERS
hw/alpha/dp264.c
hw/hppa/machine.c
hw/i386/acpi-build.c
hw/i386/pc.c
hw/i386/pc_q35.c
hw/mips/mips_fulong2e.c
hw/mips/mips_jazz.c
hw/mips/mips_malta.c
hw/mips/mips_r4k.c
hw/ppc/pnv.c
hw/ppc/prep.c
hw/rtc/Kconfig
hw/rtc/Makefile.objs
hw/rtc/mc146818rtc.c [moved from hw/timer/mc146818rtc.c with 99% similarity]
hw/timer/Kconfig
hw/timer/Makefile.objs
hw/timer/hpet.c
include/hw/rtc/mc146818rtc.h [moved from include/hw/timer/mc146818rtc.h with 58% similarity]
include/hw/rtc/mc146818rtc_regs.h [moved from include/hw/timer/mc146818rtc_regs.h with 96% similarity]
tests/rtc-test.c

index 2e13ba46282da834edc6ea815efeac5b38e39b1e..7eba146444ae3df27524e7d474a9f9076a9e740a 100644 (file)
@@ -1261,7 +1261,7 @@ F: hw/misc/debugexit.c
 F: hw/misc/pc-testdev.c
 F: hw/timer/hpet*
 F: hw/timer/i8254*
-F: hw/timer/mc146818rtc*
+F: hw/rtc/mc146818rtc*
 F: hw/watchdog/wdt_ib700.c
 F: hw/watchdog/wdt_i6300esb.c
 F: include/hw/display/vga.h
@@ -1273,7 +1273,7 @@ F: include/hw/isa/i8259_internal.h
 F: include/hw/isa/superio.h
 F: include/hw/timer/hpet.h
 F: include/hw/timer/i8254*
-F: include/hw/timer/mc146818rtc*
+F: include/hw/rtc/mc146818rtc*
 
 Machine core
 M: Eduardo Habkost <ehabkost@redhat.com>
index 51feee85581250137ee14cb472505d43b01d6cf8..51b3cf7a6128acffdb446d895dfabb5a0d4be71b 100644 (file)
@@ -14,7 +14,7 @@
 #include "alpha_sys.h"
 #include "qemu/error-report.h"
 #include "sysemu/sysemu.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/ide.h"
 #include "hw/timer/i8254.h"
 #include "hw/isa/superio.h"
index 953d454f4879a3d3de7a172d261a5cbc81bcd7fb..b30aba6d5439dab2b35c47a789cb96e5f671c0f8 100644 (file)
@@ -12,7 +12,7 @@
 #include "qemu/error-report.h"
 #include "sysemu/reset.h"
 #include "sysemu/sysemu.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/ide.h"
 #include "hw/timer/i8254.h"
 #include "hw/char/serial.h"
index 1d077a7cb772733af02e9aa06535e6538d98128d..d9435ba0b31093d13bfda2a50c0d4d8b850d0b78 100644 (file)
@@ -45,7 +45,7 @@
 #include "hw/acpi/vmgenid.h"
 #include "hw/boards.h"
 #include "sysemu/tpm_backend.h"
-#include "hw/timer/mc146818rtc_regs.h"
+#include "hw/rtc/mc146818rtc_regs.h"
 #include "migration/vmstate.h"
 #include "hw/mem/memory-device.h"
 #include "sysemu/numa.h"
index 4b1904237ec635c02851fee462f39dab3967c2f6..51b72439b440a6f131c760a72898de669e805884 100644 (file)
@@ -42,7 +42,7 @@
 #include "elf.h"
 #include "migration/vmstate.h"
 #include "multiboot.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/dma/i8257.h"
 #include "hw/timer/i8254.h"
 #include "hw/input/i8042.h"
index 8fad20f3146af0cf37f64d272352341bfd486fa6..748fc2ee15bfa58df6c605c16f092c02552c0e5a 100644 (file)
@@ -33,7 +33,7 @@
 #include "hw/loader.h"
 #include "sysemu/arch_init.h"
 #include "hw/i2c/smbus_eeprom.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/xen/xen.h"
 #include "sysemu/kvm.h"
 #include "kvm_i386.h"
index cf537dd7e63113ee2574967aa6622d80515f0097..03a27e176796d65d437b888c031412e1cd1b99cf 100644 (file)
@@ -39,7 +39,7 @@
 #include "hw/ide.h"
 #include "elf.h"
 #include "hw/isa/vt82c686.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/timer/i8254.h"
 #include "exec/address-spaces.h"
 #include "sysemu/qtest.h"
index 8d010a0b6e102279e2a18e0f3954fdd4b6b0f003..d978bb64a0f5e7a9d3ab2d9e0a51a64c505f527b 100644 (file)
@@ -39,7 +39,7 @@
 #include "hw/scsi/esp.h"
 #include "hw/mips/bios.h"
 #include "hw/loader.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/timer/i8254.h"
 #include "hw/display/vga.h"
 #include "hw/audio/pcspk.h"
index 4d9c64b36ab2d4b7a79df0120f4faba8c158583a..c1c8810e7198066a5c1039b3d398073c1dda5609 100644 (file)
@@ -45,7 +45,7 @@
 #include "hw/irq.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/timer/i8254.h"
 #include "exec/address-spaces.h"
 #include "hw/sysbus.h"             /* SysBusDevice */
index bc0be2654415a7df54a6ed47050b1097d400d96a..70024235ae5210d9d5f7ef43cfced29aa525e418 100644 (file)
@@ -28,7 +28,7 @@
 #include "hw/ide.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/input/i8042.h"
 #include "hw/timer/i8254.h"
 #include "exec/address-spaces.h"
index 4a51fb65a834c34d3f9bd2f5b1bf507db33e8086..60632720ef6f301b78be320190228c9062444680 100644 (file)
@@ -48,7 +48,7 @@
 #include "hw/isa/isa.h"
 #include "hw/boards.h"
 #include "hw/char/serial.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 
 #include <libfdt.h>
 
index 4f3c6bf1901827796d1586d69c1ac843bc4fa6da..3a51536e1a39ae939bd5365fb20280ccd94c7bd0 100644 (file)
@@ -40,7 +40,7 @@
 #include "hw/ide.h"
 #include "hw/irq.h"
 #include "hw/loader.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "hw/isa/pc87312.h"
 #include "hw/net/ne2000-isa.h"
 #include "sysemu/arch_init.h"
index 8a4383bca9b2653a80f1c09c08dc9a53bd8747cd..7ffd702268ad2627e1361008e54f84a875e5bdff 100644 (file)
@@ -1,2 +1,5 @@
 config PL031
     bool
+
+config MC146818RTC
+    bool
index 3e1eb4256388060ffac718a4bf12ae7978f3b910..3cac0d5a637b3d30dbba0e55277136908b70ff21 100644 (file)
@@ -1 +1,2 @@
 common-obj-$(CONFIG_PL031) += pl031.o
+obj-$(CONFIG_MC146818RTC) += mc146818rtc.o
similarity index 99%
rename from hw/timer/mc146818rtc.c
rename to hw/rtc/mc146818rtc.c
index 6cb378751b1fd814e1207e9b089512a94a2ff385..ced15f764fc102e021ea1c78f155763ce8e48c59 100644 (file)
@@ -34,7 +34,7 @@
 #include "sysemu/replay.h"
 #include "sysemu/reset.h"
 #include "sysemu/runstate.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "migration/vmstate.h"
 #include "qapi/error.h"
 #include "qapi/qapi-commands-misc-target.h"
index 27c5dce09e431b8819b5af0054c3e97e31b9f470..af415c8ef8310ca44ee14c984ddfbfc2e700bce0 100644 (file)
@@ -35,9 +35,6 @@ config ALTERA_TIMER
     bool
     select PTIMER
 
-config MC146818RTC
-    bool
-
 config ALLWINNER_A10_PIT
     bool
     select PTIMER
index 9f64f6e11e78a26289d2736b861a57efb48c1503..b0159189cf34e75206b2283e7945b9bc1a355212 100644 (file)
@@ -35,8 +35,6 @@ common-obj-$(CONFIG_SH4) += sh_timer.o
 common-obj-$(CONFIG_DIGIC) += digic-timer.o
 common-obj-$(CONFIG_MIPS_CPS) += mips_gictimer.o
 
-obj-$(CONFIG_MC146818RTC) += mc146818rtc.o
-
 common-obj-$(CONFIG_ALLWINNER_A10_PIT) += allwinner-a10-pit.o
 
 common-obj-$(CONFIG_STM32F2XX_TIMER) += stm32f2xx_timer.o
index 1ddae4e7d7dcf69d88b45cf1e52231acdaa08d64..02bf8a8ce8fc5c7643be5517694e6d7e22e806fc 100644 (file)
@@ -33,7 +33,7 @@
 #include "qemu/timer.h"
 #include "hw/timer/hpet.h"
 #include "hw/sysbus.h"
-#include "hw/timer/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc.h"
 #include "migration/vmstate.h"
 #include "hw/timer/i8254.h"
 
similarity index 58%
rename from include/hw/timer/mc146818rtc.h
rename to include/hw/rtc/mc146818rtc.h
index fe6ed63f7179700c5f4e4d6452866ffb74c4258d..2e9331637a6d6a1676c23e162eb7339860196fb5 100644 (file)
@@ -1,8 +1,16 @@
-#ifndef MC146818RTC_H
-#define MC146818RTC_H
+/*
+ * QEMU MC146818 RTC emulation
+ *
+ * Copyright (c) 2003-2004 Fabrice Bellard
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef HW_RTC_MC146818RTC_H
+#define HW_RTC_MC146818RTC_H
 
 #include "hw/isa/isa.h"
-#include "hw/timer/mc146818rtc_regs.h"
+#include "hw/rtc/mc146818rtc_regs.h"
 
 #define TYPE_MC146818_RTC "mc146818rtc"
 
similarity index 96%
rename from include/hw/timer/mc146818rtc_regs.h
rename to include/hw/rtc/mc146818rtc_regs.h
index bfbb57e57012d6ed6b4f77f68f6238d929aad034..dd6c09e2fcf950d48073b8e5918c38e4e71e2ca4 100644 (file)
  * THE SOFTWARE.
  */
 
-#ifndef MC146818RTC_REGS_H
-#define MC146818RTC_REGS_H
+#ifndef HW_RTC_MC146818RTC_REGS_H
+#define HW_RTC_MC146818RTC_REGS_H
 
 #include "qemu/timer.h"
+#include "qemu/host-utils.h"
 
 #define RTC_ISA_IRQ 8
 
index 6309b0ef6cc2f2ce496178d4a28fda4899827698..79a4ff1ed611635842c3704385176045f866f1e0 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "libqtest-single.h"
 #include "qemu/timer.h"
-#include "hw/timer/mc146818rtc_regs.h"
+#include "hw/rtc/mc146818rtc_regs.h"
 
 #define UIP_HOLD_LENGTH           (8 * NANOSECONDS_PER_SECOND / 32768)