summaryrefslogtreecommitdiff
path: root/Kernel/ACPI/Parser.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-03-13 12:00:13 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-29 20:53:59 +0200
commitdc6defa7af6ee0a4fe9331bf46311ba29f3df01b (patch)
treec7aff005628daf2d62067374b176c810eb0bf2d0 /Kernel/ACPI/Parser.h
parentb8ec5449f2e29cffe62aed10e48663c58451d8d4 (diff)
downloadserenity-dc6defa7af6ee0a4fe9331bf46311ba29f3df01b.zip
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.
Diffstat (limited to 'Kernel/ACPI/Parser.h')
-rw-r--r--Kernel/ACPI/Parser.h6
1 files changed, 6 insertions, 0 deletions
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<void(const StringView&, PhysicalAddress, size_t)>);
+
virtual bool have_8042() const
{
return m_x86_specific_flags.keyboard_8042;