1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

Kernel: Simplify PCI::initialize()

Choosing between I/O and MMIO is not as difficult as we were making it.
This commit is contained in:
Andreas Kling 2020-04-08 18:06:08 +02:00
parent e171c25a67
commit 66f7c8e0e8
2 changed files with 23 additions and 41 deletions

View file

@ -33,6 +33,11 @@ namespace Kernel {
class PCI::Access {
public:
enum class Type {
IO,
MMIO,
};
virtual void enumerate_all(Function<void(Address, ID)>&) = 0;
void enumerate_bus(int type, u8 bus, Function<void(Address, ID)>&);