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:
parent
e171c25a67
commit
66f7c8e0e8
2 changed files with 23 additions and 41 deletions
|
@ -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)>&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue