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
commit 15dfca4a79
Notes: sideshowbarker 2024-07-19 08:55:54 +09:00
4 changed files with 52 additions and 50 deletions

View file

@ -30,6 +30,7 @@
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/PCI/Access.h>
#include <Kernel/PCI/Device.h>
#include <LibBareMetal/IO.h>
namespace Kernel {
@ -62,7 +63,7 @@ private:
u16 in16(u16 address);
u32 in32(u16 address);
u16 m_io_base { 0 };
IOAddress m_io_base;
u8 m_interrupt_line { 0 };
u32 m_rx_buffer_addr { 0 };
u16 m_rx_buffer_offset { 0 };