mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Kernel: Add interface to read link speed and duplex for NetworkAdapter
Read the appropriate registers for RTL8139, RTL8168 and E1000. For NE2000 just assume 10mbit full duplex as there is no indicator for it in the pure NE2000 spec. Mock values for loopback.
This commit is contained in:
parent
238ac8ac25
commit
59fdeec7f5
9 changed files with 98 additions and 0 deletions
|
@ -27,6 +27,8 @@ public:
|
|||
|
||||
virtual void send_raw(ReadonlyBytes) override;
|
||||
virtual bool link_up() override;
|
||||
virtual i32 link_speed() override;
|
||||
virtual bool link_full_duplex() override;
|
||||
|
||||
virtual StringView purpose() const override { return class_name(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue