mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
Kernel/PCI: Fix support of multiple PCI host controllers enumeration
First scan PCI bus 0. Find any device on that bus, and if it's a PCI-to-PCI bridge, recursively scan it too. Then try to handle Multiple PCI host bridges on slot 0, device 0. If we happen to miss some PCI buses because they are not reachable through recursive PCI-to-PCI bridges scanning starting from bus 0, we might find them in this scanning.
This commit is contained in:
parent
c6ffee7f18
commit
07474b4349
Notes:
sideshowbarker
2024-07-18 17:37:30 +09:00
Author: https://github.com/supercomputer7
Commit: 07474b4349
Pull-request: https://github.com/SerenityOS/serenity/pull/7340
Issue: https://github.com/SerenityOS/serenity/issues/7334
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/boricj
3 changed files with 24 additions and 11 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Bitmap.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/PCI/Definitions.h>
|
||||
|
@ -49,6 +50,7 @@ protected:
|
|||
virtual ~Access() = default;
|
||||
|
||||
Vector<PhysicalID> m_physical_ids;
|
||||
Bitmap m_enumerated_buses;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue