1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

ACPI: Keep common flags in structures for later usage

This commit is contained in:
Liav A 2020-03-11 13:18:52 +02:00 committed by Andreas Kling
parent 3cbc2f4381
commit 5d7855adea
5 changed files with 128 additions and 27 deletions

View file

@ -26,8 +26,8 @@
#pragma once
#include <Kernel/ACPI/ACPIParser.h>
#include <AK/OwnPtr.h>
#include <Kernel/ACPI/ACPIParser.h>
namespace Kernel {
namespace ACPI {
@ -45,6 +45,9 @@ namespace ACPI {
virtual void try_acpi_shutdown() override;
virtual bool is_operable() override { return m_operable; }
virtual const FADTFlags::HardwareFeatures& hardware_features() const override;
virtual const FADTFlags::x86_Specific_Flags& x86_specific_flags() const override;
protected:
StaticParser();
explicit StaticParser(PhysicalAddress);
@ -69,6 +72,8 @@ namespace ACPI {
PhysicalAddress m_facs;
bool m_xsdt_supported;
FADTFlags::HardwareFeatures m_hardware_flags;
FADTFlags::x86_Specific_Flags m_x86_specific_flags;
};
}
}