Browse Source

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.
Liav A 4 years ago
parent
commit
dc6defa7af
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Kernel/ACPI/Parser.h

+ 6 - 0
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;