Kernel/Net: Make E1000 interrupt handler derive from PCI::IRQHandler

This will allow us to support MSIs.
This commit is contained in:
Sönke Holz authored and Sönke Holz committed 2026-07-18 12:27:34 +02:00
1 parent f81ec38b6f
commit b56eed7e39
1 file changed
+3 -3
+3 -3
View File
@@ -10,7 +10,7 @@
#include <AK/SetOnce.h>
#include <Kernel/Bus/PCI/Access.h>
#include <Kernel/Bus/PCI/Device.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Interrupts/PCIIRQHandler.h>
#include <Kernel/Library/IOWindow.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Security/Random.h>
@@ -71,7 +71,7 @@ protected:
bool handle_interrupt();
class InterruptHandler final : public IRQHandler {
class InterruptHandler final : public PCI::IRQHandler {
public:
static ErrorOr<NonnullOwnPtr<InterruptHandler>> create(E1000NetworkAdapter& network_adapter, InterruptNumber interrupt_number)
{
@@ -83,7 +83,7 @@ protected:
private:
InterruptHandler(E1000NetworkAdapter& network_adapter, InterruptNumber interrupt_number)
: IRQHandler(interrupt_number)
: PCI::IRQHandler(network_adapter, interrupt_number)
, m_network_adapter(network_adapter)
{
}