include: move hw/qdev-clock.h to hw/core/

Signed-off-by: Paolo Bonzini <[email protected]>
This commit is contained in:
Paolo Bonzini committed 2025-12-27 10:11:07 +01:00
1 parent a5d7e646f6
commit 3775d19906
65 files changed
+65 -65

No files matched your search

+1 -1
View File
@@ -3952,7 +3952,7 @@ M: Luc Michel <[email protected]>
R: Damien Hedde <[email protected]>
S: Maintained
F: include/hw/core/clock.h
F: include/hw/qdev-clock.h
F: include/hw/core/qdev-clock.h
F: hw/core/clock.c
F: hw/core/clock-vmstate.c
F: hw/core/qdev-clock.c
+2 -2
View File
@@ -47,7 +47,7 @@ Here is an example of clocks::
+--------------+
Clocks are defined in the ``include/hw/core/clock.h`` header and device
related functions are defined in the ``include/hw/qdev-clock.h``
related functions are defined in the ``include/hw/core/qdev-clock.h``
header.
The clock state
@@ -97,7 +97,7 @@ Note that it is possible to create a static array describing clock inputs and
outputs. The function ``qdev_init_clocks()`` must be called with the array as
parameter to initialize the clocks: it has the same behaviour as calling the
``qdev_init_clock_in/out()`` for each clock in the array. To ease the array
construction, some macros are defined in ``include/hw/qdev-clock.h``.
construction, some macros are defined in ``include/hw/core/qdev-clock.h``.
As an example, the following creates 2 clocks to a device: one input and one
output.
+1 -1
View File
@@ -16,7 +16,7 @@
#include "qemu/osdep.h"
#include "hw/adc/npcm7xx_adc.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/registerfields.h"
#include "migration/vmstate.h"
+1 -1
View File
@@ -23,7 +23,7 @@
#include "hw/arm/armsse-version.h"
#include "hw/arm/boot.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
/*
* The SSE-300 puts some devices in different places to the
+1 -1
View File
@@ -14,7 +14,7 @@
#include "hw/arm/boot.h"
#include "hw/core/loader.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "elf.h"
#include "system/reset.h"
#include "qemu/error-report.h"
+1 -1
View File
@@ -21,7 +21,7 @@
#include "system/block-backend.h"
#include "qemu/error-report.h"
#include "qemu/units.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "system/system.h"
static struct arm_boot_info aspeed_board_binfo = {
+1 -1
View File
@@ -13,7 +13,7 @@
#include "qapi/error.h"
#include "system/address-spaces.h"
#include "system/system.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
+1 -1
View File
@@ -12,7 +12,7 @@
#include "hw/arm/machines-qom.h"
#include "hw/arm/aspeed.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "system/system.h"
#include "hw/i2c/smbus_eeprom.h"
+1 -1
View File
@@ -16,7 +16,7 @@
#include "system/system.h"
#include "hw/arm/aspeed.h"
#include "hw/core/boards.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/core/loader.h"
#include "hw/arm/boot.h"
+1 -1
View File
@@ -11,7 +11,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/arm/aspeed_coprocessor.h"
+1 -1
View File
@@ -11,7 +11,7 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/arm/aspeed_coprocessor.h"
+1 -1
View File
@@ -11,7 +11,7 @@
#include "system/system.h"
#include "system/block-backend.h"
#include "hw/core/boards.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/arm/aspeed_soc.h"
#include "hw/arm/boot.h"
#include "hw/arm/machines-qom.h"
+1 -1
View File
@@ -14,7 +14,7 @@
#include "system/address-spaces.h"
#include "system/system.h"
#include "hw/arm/max78000_soc.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
static const uint32_t max78000_icc_addr[] = {0x4002a000, 0x4002a800};
+1 -1
View File
@@ -10,7 +10,7 @@
#include "qapi/error.h"
#include "hw/core/boards.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qemu/error-report.h"
#include "hw/arm/max78000_soc.h"
#include "hw/arm/boot.h"
+1 -1
View File
@@ -73,7 +73,7 @@
#include "hw/net/lan9118.h"
#include "net/net.h"
#include "hw/core/split-irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qom/object.h"
#include "hw/core/irq.h"
+1 -1
View File
@@ -48,7 +48,7 @@
#include "hw/net/lan9118.h"
#include "net/net.h"
#include "hw/watchdog/cmsdk-apb-watchdog.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qobject/qlist.h"
#include "qom/object.h"
+1 -1
View File
@@ -33,7 +33,7 @@
#include "system/system.h"
#include "hw/core/boards.h"
#include "hw/core/or-irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/arm/boot.h"
#include "hw/arm/bsa.h"
+1 -1
View File
@@ -29,7 +29,7 @@
#include "hw/char/serial-mm.h"
#include "hw/arm/msf2-soc.h"
#include "hw/misc/unimp.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "system/system.h"
#define MSF2_TIMER_BASE 0x40004000
+1 -1
View File
@@ -33,7 +33,7 @@
#include "hw/qdev-properties.h"
#include "hw/arm/boot.h"
#include "hw/arm/machines-qom.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "system/address-spaces.h"
#include "hw/arm/msf2-soc.h"
+1 -1
View File
@@ -34,7 +34,7 @@
#include "hw/misc/tz-ppc.h"
#include "hw/misc/unimp.h"
#include "hw/rtc/pl031.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qom/object.h"
#define MUSCA_NUMIRQ_MAX 96
+1 -1
View File
@@ -26,7 +26,7 @@
#include "qapi/error.h"
#include "hw/core/boards.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qemu/error-report.h"
#include "hw/arm/stm32f205_soc.h"
#include "hw/arm/boot.h"
+1 -1
View File
@@ -26,7 +26,7 @@
#include "qapi/error.h"
#include "hw/core/boards.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qemu/error-report.h"
#include "hw/arm/stm32f405_soc.h"
#include "hw/arm/boot.h"
+1 -1
View File
@@ -21,7 +21,7 @@
#include "hw/char/serial-mm.h"
#include "hw/core/loader.h"
#include "hw/misc/unimp.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "qapi/error.h"
#include "exec/tswap.h"
+1 -1
View File
@@ -24,7 +24,7 @@
#include "hw/intc/arm_gic.h"
#include "hw/core/loader.h"
#include "hw/misc/unimp.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "qapi/error.h"
#include "qemu/units.h"
+1 -1
View File
@@ -12,7 +12,7 @@
#include "qapi/error.h"
#include "hw/arm/boot.h"
#include "hw/sysbus.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#include "qemu/log.h"
+1 -1
View File
@@ -27,7 +27,7 @@
#include "qapi/error.h"
#include "hw/core/boards.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qemu/error-report.h"
#include "hw/arm/stm32f405_soc.h"
#include "hw/arm/boot.h"
+1 -1
View File
@@ -31,7 +31,7 @@
#include "migration/vmstate.h"
#include "hw/misc/unimp.h"
#include "hw/timer/stellaris-gptm.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qom/object.h"
#include "qobject/qlist.h"
#include "ui/input.h"
+1 -1
View File
@@ -30,7 +30,7 @@
#include "system/address-spaces.h"
#include "hw/arm/stm32f100_soc.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#include "system/system.h"
+1 -1
View File
@@ -29,7 +29,7 @@
#include "system/address-spaces.h"
#include "hw/arm/stm32f205_soc.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "system/system.h"
/* At the moment only Timer 2 to 5 are modelled */
+1 -1
View File
@@ -27,7 +27,7 @@
#include "system/address-spaces.h"
#include "system/system.h"
#include "hw/arm/stm32f405_soc.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#define RCC_ADDR 0x40023800
+1 -1
View File
@@ -30,7 +30,7 @@
#include "hw/arm/stm32l4x5_soc.h"
#include "hw/char/stm32l4x5_usart.h"
#include "hw/gpio/stm32l4x5_gpio.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#define FLASH_BASE_ADDRESS 0x08000000
+1 -1
View File
@@ -27,7 +27,7 @@
#include "qapi/error.h"
#include "hw/core/boards.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qemu/error-report.h"
#include "hw/arm/stm32f100_soc.h"
#include "hw/arm/boot.h"
+1 -1
View File
@@ -34,7 +34,7 @@
#include "hw/char/cadence_uart.h"
#include "hw/net/cadence_gem.h"
#include "hw/cpu/a9mpcore.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/misc/unimp.h"
#include "system/reset.h"
#include "qom/object.h"
+1 -1
View File
@@ -31,7 +31,7 @@
#include "qemu/module.h"
#include "hw/char/cadence_uart.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties-system.h"
#include "trace.h"
+1 -1
View File
@@ -28,7 +28,7 @@
#include "qemu/osdep.h"
#include "hw/char/ibex_uart.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-properties-system.h"
#include "hw/registerfields.h"
+1 -1
View File
@@ -23,7 +23,7 @@
#include "hw/char/pl011.h"
#include "hw/core/irq.h"
#include "hw/sysbus.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-properties-system.h"
#include "migration/vmstate.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include "hw/char/stm32l4x5_usart.h"
#include "hw/core/clock.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-properties-system.h"
#include "hw/registerfields.h"
+1 -1
View File
@@ -13,7 +13,7 @@
#include "qemu/osdep.h"
#include "qemu/error-report.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-core.h"
#include "qapi/error.h"
+1 -1
View File
@@ -36,7 +36,7 @@
#include "hw/qdev-properties.h"
#include "hw/core/boards.h"
#include "hw/sysbus.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "migration/vmstate.h"
#include "trace.h"
+1 -1
View File
@@ -21,7 +21,7 @@
#include "hw/gpio/stm32l4x5_gpio.h"
#include "hw/core/irq.h"
#include "hw/core/clock.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "qapi/visitor.h"
#include "qapi/error.h"
+1 -1
View File
@@ -30,7 +30,7 @@
#include "hw/mips/bootloader.h"
#include "hw/mips/cps.h"
#include "hw/pci-host/xilinx-pcie.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
+1 -1
View File
@@ -22,7 +22,7 @@
#include "qemu/module.h"
#include "hw/mips/cps.h"
#include "hw/mips/mips.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "system/tcg.h"
#include "system/reset.h"
+1 -1
View File
@@ -58,7 +58,7 @@
#include "system/kvm.h"
#include "semihosting/semihost.h"
#include "hw/mips/cps.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "target/mips/internal.h"
#include "trace.h"
#include "cpu.h"
+1 -1
View File
@@ -16,7 +16,7 @@
#include "qemu/osdep.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/misc/npcm7xx_mft.h"
#include "hw/misc/npcm7xx_pwm.h"
+1 -1
View File
@@ -16,7 +16,7 @@
#include "qemu/osdep.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/misc/npcm7xx_pwm.h"
#include "hw/registerfields.h"
+1 -1
View File
@@ -18,7 +18,7 @@
#include "hw/misc/npcm_clk.h"
#include "hw/timer/npcm7xx_timer.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "migration/vmstate.h"
#include "qemu/error-report.h"
#include "qemu/log.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include "hw/misc/stm32l4x5_rcc_internals.h"
#include "hw/core/clock.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-properties-system.h"
#include "hw/registerfields.h"
+1 -1
View File
@@ -27,7 +27,7 @@
#include "hw/core/irq.h"
#include "migration/vmstate.h"
#include "hw/core/clock.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qapi/error.h"
#include "hw/misc/stm32l4x5_syscfg.h"
#include "hw/gpio/stm32l4x5_gpio.h"
+1 -1
View File
@@ -22,7 +22,7 @@
#include "qemu/log.h"
#include "qemu/module.h"
#include "hw/registerfields.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qom/object.h"
#include "hw/qdev-properties.h"
#include "qapi/error.h"
+1 -1
View File
@@ -32,7 +32,7 @@
#include <zlib.h> /* for crc32 */
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/net/npcm7xx_emc.h"
#include "net/eth.h"
+1 -1
View File
@@ -14,7 +14,7 @@
#include "migration/vmstate.h"
#include "hw/core/irq.h"
#include "hw/sysbus.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "qemu/timer.h"
#include "qemu/log.h"
#include "qemu/module.h"
+1 -1
View File
@@ -25,7 +25,7 @@
#include "hw/core/irq.h"
#include "hw/qdev-properties.h"
#include "hw/registerfields.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/timer/cmsdk-apb-dualtimer.h"
#include "migration/vmstate.h"
+1 -1
View File
@@ -35,7 +35,7 @@
#include "hw/sysbus.h"
#include "hw/core/irq.h"
#include "hw/registerfields.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/timer/cmsdk-apb-timer.h"
#include "migration/vmstate.h"
+1 -1
View File
@@ -17,7 +17,7 @@
#include "qemu/osdep.h"
#include "hw/core/irq.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/timer/npcm7xx_timer.h"
#include "migration/vmstate.h"
+1 -1
View File
@@ -35,7 +35,7 @@
#include "hw/sysbus.h"
#include "hw/registerfields.h"
#include "hw/core/clock.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "migration/vmstate.h"
/* Registers in the control frame */
+1 -1
View File
@@ -44,7 +44,7 @@
#include "hw/core/irq.h"
#include "hw/registerfields.h"
#include "hw/core/clock.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
+1 -1
View File
@@ -12,7 +12,7 @@
#include "qemu/timer.h"
#include "qapi/error.h"
#include "migration/vmstate.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/timer/stellaris-gptm.h"
static void gptm_update_irq(gptm_state *s)
+1 -1
View File
@@ -30,7 +30,7 @@
#include "hw/core/irq.h"
#include "hw/qdev-properties.h"
#include "hw/registerfields.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/watchdog/cmsdk-apb-watchdog.h"
#include "migration/vmstate.h"
File renamed without changes.
+1 -1
View File
@@ -10,7 +10,7 @@
#define HW_MISC_BCM2835_CPRMAN_H
#include "hw/sysbus.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#define TYPE_BCM2835_CPRMAN "bcm2835-cprman"
+1 -1
View File
@@ -31,7 +31,7 @@
#include "hw/register.h"
#include "hw/core/ptimer.h"
#include "net/can_emu.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#define TYPE_XILINX_CANFD "xlnx.versal-canfd"
+1 -1
View File
@@ -36,7 +36,7 @@
#include "net/can_host.h"
#include "qemu/fifo32.h"
#include "hw/core/ptimer.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#define TYPE_XLNX_ZYNQMP_CAN "xlnx.zynqmp-can"
+1 -1
View File
@@ -26,7 +26,7 @@ typedef enum memory_order {
#include "hw/sysbus.h"
#include "hw/core/clock.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-properties-system.h"
#include "hw/core/irq.h"
+1 -1
View File
@@ -30,7 +30,7 @@
#include "system/kvm.h"
#include "system/qtest.h"
#include "hw/qdev-properties.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "fpu_helper.h"
#ifndef CONFIG_USER_ONLY
#include "semihosting/semihost.h"
+1 -1
View File
@@ -34,7 +34,7 @@
#include "fpu/softfloat.h"
#include "qemu/module.h"
#include "migration/vmstate.h"
#include "hw/qdev-clock.h"
#include "hw/core/qdev-clock.h"
#include "accel/tcg/cpu-ops.h"
#ifndef CONFIG_USER_ONLY
#include "system/memory.h"