summaryrefslogtreecommitdiff
path: root/Kernel/Bus/PCI/API.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-09-23 09:05:34 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-29 11:24:33 +0200
commit82bb08a15cbe447b5b0deeac16cccc22bf1c1c57 (patch)
treeecb5dc7c013c1f11516fb8c74561be10179fa7d2 /Kernel/Bus/PCI/API.h
parente22d9dc360d123b5b3c847a9ec882da220dc8e66 (diff)
downloadserenity-82bb08a15cbe447b5b0deeac16cccc22bf1c1c57.zip
Kernel/PCI: Cache more details about PCI devices when enumerating them
There's no good reason to fetch these values each time we need them.
Diffstat (limited to 'Kernel/Bus/PCI/API.h')
-rw-r--r--Kernel/Bus/PCI/API.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/PCI/API.h b/Kernel/Bus/PCI/API.h
index 6d23a6e594..f68005705f 100644
--- a/Kernel/Bus/PCI/API.h
+++ b/Kernel/Bus/PCI/API.h
@@ -19,7 +19,7 @@ u32 read32(Address address, u32 field);
ID get_id(PCI::Address);
bool is_io_space_enabled(Address);
-void enumerate(Function<void(Address, ID)> callback);
+void enumerate(Function<void(Address, PhysicalID const&)> callback);
void enable_interrupt_line(Address);
void disable_interrupt_line(Address);
u8 get_interrupt_line(Address);