1
Fork 0
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:
Andreas Kling 2019-03-10 15:25:33 +01:00
parent 0c806bfa25
commit 405413c354
12 changed files with 271 additions and 3 deletions

View file

@ -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);