mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 07:25:07 +00:00

Also, PCI Initializer dismiss() now deletes the object correctly, and the PCI initialization process no longer use the DMI decoder to determine if PCI is supported. grub configuration files include an entry to boot the OS without ACPI support.
22 lines
No EOL
528 B
C++
22 lines
No EOL
528 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
#include <Kernel/ACPI/Definitions.h>
|
|
#include <Kernel/PCI/Definitions.h>
|
|
|
|
class PCI::Initializer {
|
|
public:
|
|
static PCI::Initializer& the();
|
|
void initialize_pci_mmio_access(ACPI_RAW::MCFG& mcfg);
|
|
void initialize_pci_io_access();
|
|
void test_and_initialize(bool disable_pci_mmio);
|
|
static void dismiss();
|
|
|
|
private:
|
|
~Initializer();
|
|
Initializer();
|
|
bool test_acpi();
|
|
bool test_pci_io();
|
|
bool test_pci_mmio();
|
|
void initialize_pci_mmio_access_after_test();
|
|
}; |