1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +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

@ -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 };