mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
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.
This commit is contained in:
parent
60715695b2
commit
583e9ad372
10 changed files with 64 additions and 50 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue