mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57: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
|
@ -9,6 +9,8 @@ struct ID {
|
|||
word vendor_id { 0 };
|
||||
word device_id { 0 };
|
||||
|
||||
bool is_null() const { return !vendor_id && !device_id; }
|
||||
|
||||
bool operator==(const ID& other) const
|
||||
{
|
||||
return vendor_id == other.vendor_id && device_id == other.device_id;
|
||||
|
@ -38,6 +40,7 @@ private:
|
|||
};
|
||||
|
||||
void enumerate_all(Function<void(Address, ID)>);
|
||||
byte get_interrupt_line(Address);
|
||||
dword get_BAR0(Address);
|
||||
dword get_BAR1(Address);
|
||||
dword get_BAR2(Address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue