1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

Kernel: Ensure E1000NetworkAdapter uses virtual memory correctly

This commit is contained in:
Liav A 2020-03-06 21:40:36 +02:00 committed by Andreas Kling
parent d6e122fd3a
commit 9dbc273675
2 changed files with 25 additions and 32 deletions

View file

@ -94,6 +94,10 @@ private:
IOAddress m_io_base;
VirtualAddress m_mmio_base;
OwnPtr<Region> m_rx_descriptors_region;
OwnPtr<Region> m_tx_descriptors_region;
Vector<OwnPtr<Region>> m_rx_buffers_regions;
Vector<OwnPtr<Region>> m_tx_buffers_regions;
OwnPtr<Region> m_mmio_region;
u8 m_interrupt_line { 0 };
bool m_has_eeprom { false };
@ -102,9 +106,6 @@ private:
static const int number_of_rx_descriptors = 32;
static const int number_of_tx_descriptors = 8;
e1000_rx_desc* m_rx_descriptors;
e1000_tx_desc* m_tx_descriptors;
WaitQueue m_wait_queue;
};
}