Поделиться через


MiniportEnableInterrupt (Compact 2013)

3/26/2014

This optional function is supplied by some drivers of network adapters that support dynamic enabling and disabling of interrupts but do not share an IRQ.

Syntax

VOID MiniportEnableInterrupt(
  NDIS_HANDLE MiniportAdapterContext
);

Parameters

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

Return Value

None

Remarks

MiniportEnableInterrupt typically enables interrupts by writing a mask to the network adapter.

A network adapter driver that exports a MiniportDisableInterrupt function does not have to have a reciprocal MiniportEnableInterrupt function. Such a driver's MiniportHandleInterrupt function is responsible for re-enabling interrupts on the network adapter.

If its network adapter does not support dynamic enabling and disabling of interrupts, the network adapter driver must register a MiniportISR function and set RequestIsr to TRUE when it calls NdisMRegisterInterrupt. Such a driver's MiniportISR function must acknowledge each interrupt generated by the network adapter and save any necessary interrupt information for the driver's MiniportHandleInterrupt function.

Requirements

Header

externs.h

See Also

Reference

NDIS 5.x Legacy Functions
MiniportDisableInterrupt
MiniportHandleInterrupt
MiniportInitialize
MiniportISR
NdisFreeMemory
NdisFreeSpinLock
NdisIMDeInitializeDeviceInstance
NdisMCancelTimer
NdisMDeregisterAdapterShutdownHandler
NdisMDeregisterInterrupt
NdisMDeregisterIoPortRange
NdisMRegisterAdapterShutdownHandler
NdisMRegisterInterrupt
NdisMUnmapIoSpace
ProtocolUnbindAdapter
NDIS 5.x Legacy Reference