mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
Kernel/NE2000: Assume link status is up
Right now, NE2000 NICs don't work because the link is down by default and this will never change. Of all the NE2000 documentation I looked at I could not find a link status indicator, so just assume the link is up.
This commit is contained in:
parent
de2d5d6a7e
commit
e788bbdb55
1 changed files with 6 additions and 2 deletions
|
@ -23,7 +23,12 @@ public:
|
||||||
virtual ~NE2000NetworkAdapter() override;
|
virtual ~NE2000NetworkAdapter() override;
|
||||||
|
|
||||||
virtual void send_raw(ReadonlyBytes) override;
|
virtual void send_raw(ReadonlyBytes) override;
|
||||||
virtual bool link_up() override { return m_link_up; }
|
virtual bool link_up() override
|
||||||
|
{
|
||||||
|
// Pure NE2000 doesn't seem to have a link status indicator, so
|
||||||
|
// just assume that it's up.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
virtual StringView purpose() const override { return class_name(); }
|
virtual StringView purpose() const override { return class_name(); }
|
||||||
|
|
||||||
|
@ -48,7 +53,6 @@ private:
|
||||||
IOAddress m_io_base;
|
IOAddress m_io_base;
|
||||||
int m_ring_read_ptr;
|
int m_ring_read_ptr;
|
||||||
u8 m_interrupt_line { 0 };
|
u8 m_interrupt_line { 0 };
|
||||||
bool m_link_up { false };
|
|
||||||
|
|
||||||
MACAddress m_mac_address;
|
MACAddress m_mac_address;
|
||||||
EntropySource m_entropy_source;
|
EntropySource m_entropy_source;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue