1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 06:55:08 +00:00
serenity/Kernel/Bus/PCI/Initializer.h
Liav A 2272d93215 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.
2022-03-02 18:41:54 +01:00

18 lines
279 B
C++

/*
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Kernel {
namespace PCI {
extern bool g_pci_access_io_probe_failed;
extern bool g_pci_access_is_disabled_from_commandline;
void initialize();
}
}