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:
parent
0c806bfa25
commit
405413c354
12 changed files with 271 additions and 3 deletions
18
Kernel/NetworkAdapter.h
Normal file
18
Kernel/NetworkAdapter.h
Normal 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];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue