1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:27:34 +00:00

Kernel: Simplify PCI initialization logic

- Get rid of the PCI::Initializer object which was not serving any real
  purpose or holding any data members.
- Move command line parsing from init to PCI::initialize().
This commit is contained in:
Andreas Kling 2020-04-08 17:39:17 +02:00
parent a6a8f36a83
commit f2ebfb9e4e
4 changed files with 28 additions and 76 deletions

View file

@ -26,28 +26,10 @@
#pragma once
#include <AK/Types.h>
#include <Kernel/ACPI/Definitions.h>
#include <Kernel/PCI/Definitions.h>
namespace Kernel {
namespace PCI {
class PCI::Initializer {
public:
static PCI::Initializer& the();
void initialize_pci_mmio_access(PhysicalAddress mcfg);
void initialize_pci_io_access();
void test_and_initialize(bool disable_pci_mmio);
static void dismiss();
private:
void detect_devices();
~Initializer();
Initializer();
bool test_acpi();
bool test_pci_io();
bool test_pci_mmio();
void initialize_pci_mmio_access_after_test();
};
void initialize();
}
}