MiniportEnableInterrupt

VOID
MiniportEnableInterrupt(

IN NDIS_HANDLE MiniportAdapterContext
);

MiniportEnableInterrupt is an optional function, supplied by some drivers of NICs that support dynamic enabling and disabling of interrupts but do not share an IRQ.

Parameters

MiniportAdapterContext

Specifies the handle to a miniport-allocated context area in which the driver maintains per-NIC state, set up by MiniportInitialize.

Comments

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 re-enabling 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 pre-empted by an interrupt.

By default, MiniportEnableInterrupt runs at IRQL DISPATCH_LEVEL.

See Also

MiniportDisableInterrupt, MiniportHandleInterrupt, MiniportInitialize, MiniportISR, NdisMRegisterInterrupt