1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

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.
This commit is contained in:
Liav A 2021-03-13 12:00:13 +02:00 committed by Andreas Kling
parent b8ec5449f2
commit dc6defa7af

View file

@ -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;