1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

Kernel: Use IOAddress class in Network adapters' drivers

Also, kprintf() calls were replaced with klog() calls.
This commit is contained in:
Liav A 2020-03-01 16:16:26 +02:00 committed by Andreas Kling
parent 7d39e380f9
commit 15dfca4a79
4 changed files with 52 additions and 50 deletions

View file

@ -29,6 +29,7 @@
#include <AK/OwnPtr.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <LibBareMetal/IO.h>
#include <Kernel/PCI/Access.h>
#include <Kernel/PCI/Device.h>
@ -89,7 +90,7 @@ private:
void receive();
u16 m_io_base { 0 };
IOAddress m_io_base;
VirtualAddress m_mmio_base;
OwnPtr<Region> m_mmio_region;
u8 m_interrupt_line { 0 };