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

Kernel: Start adding support for E1000 network adapters.

This commit is contained in:
Andreas Kling 2019-03-10 15:25:33 +01:00
parent 0c806bfa25
commit 405413c354
12 changed files with 271 additions and 3 deletions

18
Kernel/NetworkAdapter.h Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include <AK/Types.h>
class NetworkAdapter {
public:
virtual ~NetworkAdapter();
virtual const char* class_name() const = 0;
const byte* mac_address() { return m_mac_address; }
protected:
NetworkAdapter();
void set_mac_address(const byte*);
private:
byte m_mac_address[6];
};