diff options
author | Liav A <liavalb@gmail.com> | 2022-01-21 17:06:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-02 18:41:54 +0100 |
commit | 2272d932150f5858a8b80b1c5c35fdb8e953150a (patch) | |
tree | 884f49a18d2accff0bcceca7556a6579f6d8d5e5 /Kernel/Bus/PCI/Access.h | |
parent | f6e635938fb71aa54294ee69a151240645af5d02 (diff) | |
download | serenity-2272d932150f5858a8b80b1c5c35fdb8e953150a.zip |
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.
Diffstat (limited to 'Kernel/Bus/PCI/Access.h')
-rw-r--r-- | Kernel/Bus/PCI/Access.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Bus/PCI/Access.h b/Kernel/Bus/PCI/Access.h index f5c42c625c..8444b80c18 100644 --- a/Kernel/Bus/PCI/Access.h +++ b/Kernel/Bus/PCI/Access.h @@ -26,6 +26,7 @@ public: static Access& the(); static bool is_initialized(); + static bool is_disabled(); void write8_field(Address address, u32 field, u8 value); void write16_field(Address address, u32 field, u16 value); |