1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

Kernel: More work on Ethernet support.

This commit is contained in:
Andreas Kling 2019-03-10 23:40:09 +01:00
parent 97664fad60
commit 1678ac69ef
8 changed files with 62 additions and 9 deletions

View file

@ -15,7 +15,7 @@ public:
E1000NetworkAdapter(PCI::Address, byte irq);
virtual ~E1000NetworkAdapter() override;
virtual void send(const byte*, int) override;
virtual void send_raw(const byte*, int) override;
private:
virtual void handle_irq() override;
@ -57,6 +57,8 @@ private:
word in16(word address);
dword in32(word address);
void receive();
PCI::Address m_pci_address;
word m_io_base { 0 };
PhysicalAddress m_mmio_base;