From dc6defa7af6ee0a4fe9331bf46311ba29f3df01b Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 13 Mar 2021 12:00:13 +0200 Subject: [PATCH] Kernel: Add getters for the RSDP, XSDT/RSDT and other ACPI tables These methods will be used with the new SysFS to expose these ACPI blobs to userspace. --- Kernel/ACPI/Parser.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kernel/ACPI/Parser.h b/Kernel/ACPI/Parser.h index c159a0392d..e31e355396 100644 --- a/Kernel/ACPI/Parser.h +++ b/Kernel/ACPI/Parser.h @@ -34,6 +34,12 @@ public: virtual void try_acpi_shutdown(); virtual bool can_shutdown() { return false; } + PhysicalAddress rsdp() const { return m_rsdp; } + PhysicalAddress main_system_description_table() const { return m_main_system_description_table; } + bool is_xsdt_supported() const { return m_xsdt_supported; } + + void enumerate_static_tables(Function); + virtual bool have_8042() const { return m_x86_specific_flags.keyboard_8042;