mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00

This patch implements the periodic and the swsmi ICH9 chipset timers. They are especially useful when prototyping UEFI firmware (e.g. with EDK2's OVMF) using QEMU. For backwards compatibility, the compat properties "x-smi-swsmi-timer", and "x-smi-periodic-timer" are introduced. Additionally, writes to the SMI_STS register are enabled for the corresponding two bits using a write mask to make future work easier. Signed-off-by: Dominic Prinz <git@dprinz.de> Message-Id: <1d90ea69e01ab71a0f2ced116801dc78e04f4448.1725991505.git.git@dprinz.de> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
23 lines
557 B
C
23 lines
557 B
C
/*
|
|
* QEMU ICH9 Timer emulation
|
|
*
|
|
* Copyright (c) 2024 Dominic Prinz <git@dprinz.de>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef HW_ACPI_ICH9_TIMER_H
|
|
#define HW_ACPI_ICH9_TIMER_H
|
|
|
|
#include "hw/acpi/ich9.h"
|
|
|
|
void ich9_pm_update_swsmi_timer(ICH9LPCPMRegs *pm, bool enable);
|
|
|
|
void ich9_pm_swsmi_timer_init(ICH9LPCPMRegs *pm);
|
|
|
|
void ich9_pm_update_periodic_timer(ICH9LPCPMRegs *pm, bool enable);
|
|
|
|
void ich9_pm_periodic_timer_init(ICH9LPCPMRegs *pm);
|
|
|
|
#endif
|