mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:35:06 +00:00
Kernel: Start adding support for E1000 network adapters.
This commit is contained in:
parent
0c806bfa25
commit
405413c354
12 changed files with 271 additions and 3 deletions
16
Kernel/NetworkAdapter.cpp
Normal file
16
Kernel/NetworkAdapter.cpp
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue