The MiniportEnableInterrupt function is optionally supplied by some drivers of NICs that support dynamic enabling and disabling of interrupts but that do not share an IRQ.
VOID
MiniportEnableInterrupt(
IN NDIS_HANDLE MiniportAdapterContext
);
Declared in Ndis.h. Include Ndis.h.
MiniportEnableInterrupt typically enables interrupts by writing a mask to the NIC.
A NIC driver that exports a MiniportDisableInterrupt function need not have a reciprocal MiniportEnableInterrupt function. Such a driver’s MiniportHandleInterrupt function is responsible for reenabling interrupts on the NIC.
If its NIC does not support dynamic enabling and disabling of interrupts or if it shares an IRQ, the NIC driver must register a MiniportISR function and set RequestIsr to TRUE when it calls NdisMRegisterMiniport. Such a driver’s MiniportISR function must acknowledge each interrupt generated by the NIC and save any necessary interrupt information for the driver’s MiniportHandleInterrupt function.
MiniportEnableInterrupt can be preempted by an interrupt.
MiniportEnableInterrupt runs at IRQL = DISPATCH_LEVEL.
MiniportDisableInterrupt, MiniportHandleInterrupt, MiniportInitialize, MiniportISR, NdisMRegisterInterrupt