Kernel: Implement more AML method invocation stuff
Method invocation is starting to come together. This implemenetation can interpret some of the qemu's functions to enter ACPI mode. PCI config space access is currently the one thing is between entering ACPI mode.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Kernel::ACPI::AML
|
||||
|
||||
FieldRules access_rules;
|
||||
|
||||
OpRegion* op_region = nullptr;
|
||||
BAN::RefPtr<OpRegion> op_region = nullptr;
|
||||
|
||||
FieldElement(NameSeg name, uint64_t bit_offset, uint32_t bit_count, FieldRules access_rules)
|
||||
: NamedObject(Node::Type::FieldElement, name)
|
||||
@@ -53,6 +53,8 @@ namespace Kernel::ACPI::AML
|
||||
, access_rules(access_rules)
|
||||
{}
|
||||
|
||||
BAN::RefPtr<Node> evaluate() override;
|
||||
|
||||
void debug_print(int indent) const override;
|
||||
};
|
||||
|
||||
@@ -68,8 +70,8 @@ namespace Kernel::ACPI::AML
|
||||
|
||||
FieldRules access_rules;
|
||||
|
||||
FieldElement* index_element = nullptr;
|
||||
FieldElement* data_element = nullptr;
|
||||
BAN::RefPtr<FieldElement> index_element = nullptr;
|
||||
BAN::RefPtr<FieldElement> data_element = nullptr;
|
||||
|
||||
IndexFieldElement(NameSeg name, uint64_t bit_offset, uint32_t bit_count, FieldRules access_rules)
|
||||
: NamedObject(Node::Type::IndexFieldElement, name)
|
||||
|
||||
Reference in New Issue
Block a user