summaryrefslogtreecommitdiff
path: root/Kernel/PCI/Access.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-02-02 01:52:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-02-02 00:57:13 +0100
commit583e9ad372388a88a82474dff0fcb1f30a153d21 (patch)
tree2a322e26330d4ec37029560d3cf88ca732047a9b /Kernel/PCI/Access.h
parent60715695b285f8d74711e925300d22346ca838d2 (diff)
downloadserenity-583e9ad372388a88a82474dff0fcb1f30a153d21.zip
Kernel: Detect devices when enumerating the PCI bus
Instead of making each driver to enumerate the PCI bus itself, PCI::Initializer will call detect_devices() to do one enumeration of the bus.
Diffstat (limited to 'Kernel/PCI/Access.h')
-rw-r--r--Kernel/PCI/Access.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/PCI/Access.h b/Kernel/PCI/Access.h
index 05cde7dd42..dad1d48b67 100644
--- a/Kernel/PCI/Access.h
+++ b/Kernel/PCI/Access.h
@@ -53,7 +53,7 @@ public:
space_size = (~space_size) + 1;
return space_size;
}
-
+ virtual ID get_id(Address address) final;
virtual u8 get_revision_id(Address address) { return read8_field(address, PCI_REVISION_ID); }
virtual u8 get_subclass(Address address) { return read8_field(address, PCI_SUBCLASS); }
virtual u8 get_class(Address address) { return read8_field(address, PCI_CLASS); }