1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

Kernel/Net: Enable usage of RTL8168E and RTL8168H in RTL8168 driver

I tested both (version 15 and 30 of the RTL8168 chipset) with PCI-
passthrough of these cards, and they seem to work just fine with the
driver.
This commit is contained in:
Liav A 2021-09-18 14:46:19 +03:00 committed by Idan Horowitz
parent 86fa5d71c0
commit 23ef46f4f7
2 changed files with 54 additions and 4 deletions

View file

@ -43,6 +43,8 @@ private:
virtual bool handle_irq(const RegisterState&) override;
virtual StringView class_name() const override { return "RTL8168NetworkAdapter"sv; }
bool determine_supported_version() const;
struct [[gnu::packed]] TXDescriptor {
volatile u16 frame_length; // top 2 bits are reserved
volatile u16 flags;