1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

Kernel/PCI: Move IO based HostBridge code to x86 arch-specific directory

The simple PCI::HostBridge class implements access to the PCI
configuration space by using x86 IO instructions. Therefore, it should
be put in the Arch/x86/PCI directory so it can be easily omitted for
non-x86 builds.
This commit is contained in:
Liav A 2022-09-02 13:41:48 +03:00 committed by Linus Groh
parent a02c9c9569
commit 1596ee241f
9 changed files with 113 additions and 90 deletions

View file

@ -16,11 +16,13 @@
namespace Kernel::PCI {
class HostBridge;
class Access {
public:
static bool initialize_for_multiple_pci_domains(PhysicalAddress mcfg_table);
#if ARCH(I386) || ARCH(X86_64)
static bool initialize_for_one_pci_domain();
#endif
ErrorOr<void> fast_enumerate(Function<void(DeviceIdentifier const&)>&) const;
void rescan_hardware();