mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 14:28:11 +00:00
Kernel: Fix PCI bridge enumeration
The enumeration code is already enumerating all buses, recursively enumerating bridges (which are buses) makes devices on bridges being enumerated multiple times. Also, the PCI code was incorrectly mixing up terminology; let's settle down on bus, device and function because ever since PCIe came along "slots" isn't really a thing anymore.
This commit is contained in:
parent
34508c0b01
commit
06d76a4717
6 changed files with 42 additions and 42 deletions
|
@ -363,7 +363,7 @@ static bool procfs$pci(InodeIdentifier, KBufferBuilder& builder)
|
|||
auto obj = array.add_object();
|
||||
obj.add("seg", address.seg());
|
||||
obj.add("bus", address.bus());
|
||||
obj.add("slot", address.slot());
|
||||
obj.add("slot", address.device());
|
||||
obj.add("function", address.function());
|
||||
obj.add("vendor_id", id.vendor_id);
|
||||
obj.add("device_id", id.device_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue