W_ENABLE_INTERRUPT_HANDLER callback function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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.

Syntax

W_ENABLE_INTERRUPT_HANDLER MiniportEnableInterrupt;

VOID MiniportEnableInterrupt(
  _In_ NDIS_HANDLE MiniportAdapterContext
)
{ ... }

Parameters

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

Return value

None

Remarks

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.

Requirements

Target platform

Desktop

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Use MiniportEnableInterruptEx instead. Supported for NDIS 5.1 drivers in Windows Vista and Microsoft Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

See also

MiniportDisableInterrupt

MiniportHandleInterrupt

MiniportInitialize

MiniportISR

NdisMRegisterInterrupt

 

 

Send comments about this topic to Microsoft