blob: 4c3101fbf813cac4130dc093933526e513535e0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#pragma once
#include <AK/RefPtr.h>
#include <Kernel/ACPI/ACPIStaticParser.h>
#include <Kernel/Devices/DiskDevice.h>
#include <Kernel/IRQHandler.h>
#include <Kernel/Lock.h>
#include <Kernel/VM/PhysicalAddress.h>
#include <Kernel/VM/PhysicalPage.h>
class ACPIDynamicParser final : public IRQHandler
, ACPIStaticParser {
public:
static void initialize(ACPI_RAW::RSDPDescriptor20& rsdp);
static void initialize_without_rsdp();
virtual void enable_aml_interpretation() override;
virtual void enable_aml_interpretation(File& dsdt_file) override;
virtual void enable_aml_interpretation(u8* physical_dsdt, u32 dsdt_payload_legnth) override;
virtual void disable_aml_interpretation() override;
virtual void do_acpi_shutdown() override;
protected:
ACPIDynamicParser();
explicit ACPIDynamicParser(ACPI_RAW::RSDPDescriptor20&);
private:
void build_namespace();
// ^IRQHandler
virtual void handle_irq() override;
OwnPtr<Region> m_acpi_namespace;
};
|