diff options
author | Liav A <liavalb@gmail.com> | 2021-10-22 19:54:20 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-23 19:17:44 +0200 |
commit | d395ac8f5974e55e18e5dfb7aef55e2027f8f092 (patch) | |
tree | b3cb3c26a6c48134f3281e4e07a3fb8e011799b2 | |
parent | ca32ee571447a0f780ce92a364a63a5b9537032f (diff) | |
download | serenity-d395ac8f5974e55e18e5dfb7aef55e2027f8f092.zip |
Kernel/PCI: Rename Access::scan_pci_domains method
We rename it to scan_pci_domains_from_acpi_mcfg_table to ensure clarity,
because this method relies on the ACPI MCFG table to work.
-rw-r--r-- | Kernel/Bus/PCI/Access.cpp | 4 | ||||
-rw-r--r-- | Kernel/Bus/PCI/Access.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Bus/PCI/Access.cpp b/Kernel/Bus/PCI/Access.cpp index 6900478c01..fe3ae3a2d2 100644 --- a/Kernel/Bus/PCI/Access.cpp +++ b/Kernel/Bus/PCI/Access.cpp @@ -42,14 +42,14 @@ UNMAP_AFTER_INIT bool Access::initialize_for_memory_access(PhysicalAddress mcfg_ InterruptDisabler disabler; auto* access = new Access(Access::AccessType::Memory); - if (!access->scan_pci_domains(mcfg_table)) + if (!access->search_pci_domains_from_acpi_mcfg_table(mcfg_table)) return false; access->rescan_hardware(); dbgln_if(PCI_DEBUG, "PCI: MMIO access initialised."); return true; } -UNMAP_AFTER_INIT bool Access::scan_pci_domains(PhysicalAddress mcfg_table) +UNMAP_AFTER_INIT bool Access::search_pci_domains_from_acpi_mcfg_table(PhysicalAddress mcfg_table) { auto checkup_region_or_error = MM.allocate_kernel_region(mcfg_table.page_base(), (PAGE_SIZE * 2), "PCI MCFG Checkup", Memory::Region::Access::ReadWrite); if (checkup_region_or_error.is_error()) diff --git a/Kernel/Bus/PCI/Access.h b/Kernel/Bus/PCI/Access.h index 530af0adf7..8d5d8c9b0e 100644 --- a/Kernel/Bus/PCI/Access.h +++ b/Kernel/Bus/PCI/Access.h @@ -48,7 +48,7 @@ private: void enumerate_device(int type, u8 bus, u8 device, bool recursive); explicit Access(AccessType); - bool scan_pci_domains(PhysicalAddress mcfg); + bool search_pci_domains_from_acpi_mcfg_table(PhysicalAddress mcfg); Vector<Capability> get_capabilities(Address); Optional<u8> get_capabilities_pointer(Address address); |