summaryrefslogtreecommitdiff
path: root/Kernel/CommandLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/CommandLine.cpp')
-rw-r--r--Kernel/CommandLine.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp
index 007af0e706..d8e1d671f2 100644
--- a/Kernel/CommandLine.cpp
+++ b/Kernel/CommandLine.cpp
@@ -108,13 +108,15 @@ UNMAP_AFTER_INIT bool CommandLine::is_vmmouse_enabled() const
return lookup("vmmouse").value_or("on") == "on";
}
-UNMAP_AFTER_INIT bool CommandLine::is_pci_ecam_enabled() const
+UNMAP_AFTER_INIT PCIAccessLevel CommandLine::pci_access_level() const
{
auto value = lookup("pci_ecam").value_or("on");
if (value == "on")
- return true;
+ return PCIAccessLevel::MappingPerBus;
+ if (value == "per-device")
+ return PCIAccessLevel::MappingPerDevice;
if (value == "off")
- return false;
+ return PCIAccessLevel::IOAddressing;
PANIC("Unknown PCI ECAM setting: {}", value);
}