mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Kernel/PCI: Unify disable checks under PCI::Access::is_disabled method
To declare that we don't have a PCI bus in the system we do two things: 1. Probe IO ports before enabling access - In case we are using the QEMU ISA-PC machine type, IO probing results in floating bus condition (returning 0xFF values), thus, we know we don't have PCI bus on the system. 2. Allow the user to specify to not use the PCI bus at all in the kernel commandline.
This commit is contained in:
parent
f6e635938f
commit
2272d93215
5 changed files with 22 additions and 6 deletions
|
@ -9,6 +9,9 @@
|
|||
namespace Kernel {
|
||||
namespace PCI {
|
||||
|
||||
extern bool g_pci_access_io_probe_failed;
|
||||
extern bool g_pci_access_is_disabled_from_commandline;
|
||||
|
||||
void initialize();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue