mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Kernel: Instantiate network adapters in their own detect() methods
This commit is one step forward for pluggable driver modules. Instead of creating instances of network adapter classes, we let their detect() methods to figure out if there are existing devices to initialize.
This commit is contained in:
parent
65f939b55c
commit
ea58563970
6 changed files with 27 additions and 22 deletions
|
@ -58,11 +58,8 @@ void initialize()
|
|||
MMIOAccess::initialize(ACPI::Parser::the()->find_table("MCFG"));
|
||||
else
|
||||
IOAccess::initialize();
|
||||
|
||||
enumerate([&](const Address& address, ID id) {
|
||||
PCI::enumerate([&](const Address& address, ID id) {
|
||||
klog() << address << " " << id;
|
||||
E1000NetworkAdapter::detect(address);
|
||||
RTL8139NetworkAdapter::detect(address);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue