Kernel: Allow looking up devices with multiple eisa ids

Also match against _CIDs in addition to _HID
This commit is contained in:
2025-08-13 18:59:46 +03:00
parent 58ad839136
commit c2017a5181
2 changed files with 60 additions and 16 deletions

View File

@@ -50,6 +50,7 @@ namespace Kernel::ACPI::AML
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);
BAN::ErrorOr<BAN::Vector<Scope>> find_device_with_eisa_id(BAN::Span<BAN::StringView> eisa_ids);
private:
BAN::ErrorOr<Scope> resolve_path(const Scope& scope, const NameString& name_string);