aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-07 16:01:31 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-11 20:03:26 +0100
commite6ffea40e221d26a213a59cba2598e15f01facf3 (patch)
tree79283a46501820c18eeb655830c056ce120de292 /include/hw
parent44ac8eaff00735655401e7d899282875da568fa3 (diff)
downloadqemu-e6ffea40e221d26a213a59cba2598e15f01facf3.zip
qemu-e6ffea40e221d26a213a59cba2598e15f01facf3.tar.gz
qemu-e6ffea40e221d26a213a59cba2598e15f01facf3.tar.bz2
hw/acpi: Introduce acpi_builtin() helper
acpi_builtin() can be used to check at runtime whether the ACPI subsystem is built in a qemu-system binary. Reviewed-by: Ani Sinha <anisinha@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250307223949.54040-3-philmd@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/acpi/acpi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h
index e0e51e8..d1a4fa2 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -150,6 +150,9 @@ struct ACPIREGS {
Notifier wakeup;
};
+/* Return whether ACPI subsystem is built in */
+bool acpi_builtin(void);
+
/* PM_TMR */
void acpi_pm_tmr_update(ACPIREGS *ar, bool enable);
void acpi_pm_tmr_calc_overflow_time(ACPIREGS *ar);