Kernel: Add helper to find ACPI devices with EISA id

This commit is contained in:
2024-12-18 01:45:00 +02:00
parent 85e215650c
commit 437fa45ca2
2 changed files with 78 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ namespace Kernel::ACPI::AML
BAN::ErrorOr<void> for_each_child(const Scope&, const BAN::Function<BAN::Iteration(BAN::StringView, Reference*)>&);
BAN::ErrorOr<void> for_each_child(const Scope&, const BAN::Function<BAN::Iteration(const Scope&, Reference*)>&);
BAN::ErrorOr<BAN::Vector<Scope>> find_device_with_eisa_id(BAN::StringView eisa_id);
private:
BAN::ErrorOr<Scope> resolve_path(const Scope& scope, const NameString& name_string);