Kernel: Start adding support for E1000 network adapters.

This commit is contained in:
Andreas Kling 2019-03-10 15:25:33 +01:00
commit 405413c354
Notes: sideshowbarker 2024-07-19 15:05:25 +09:00
12 changed files with 271 additions and 3 deletions

16
Kernel/NetworkAdapter.cpp Normal file
View file

@ -0,0 +1,16 @@
#include <Kernel/NetworkAdapter.h>
#include <Kernel/StdLib.h>
NetworkAdapter::NetworkAdapter()
{
memset(&m_mac_address, 0, sizeof(m_mac_address));
}
NetworkAdapter::~NetworkAdapter()
{
}
void NetworkAdapter::set_mac_address(const byte* mac_address)
{
memcpy(m_mac_address, mac_address, 6);
}