PDX_ENABLEIRQ callback function

The DxEnableIRQ callback function indicates to the video miniport driver which IRQs should be enabled or disabled.

Syntax


PDX_ENABLEIRQ DxEnableIRQ;

DWORD DxEnableIRQ(
   PVOID            HwDeviceExtension,
   PDDENABLEIRQINFO EnableIrqInfo,
   PVOID            lpOutput
)
{ ... }

Parameters

HwDeviceExtension

Points to the miniport driver's device extension.

EnableIrqInfo

Points to the DDENABLEIRQINFO structure that contains the information required to enable interrupts.

lpOutput

Reserved for system use.

Return value

DxEnableIRQ returns DX_OK if it succeeds; otherwise, it returns one of the following error values:

DXERR_GENERIC
DXERR_OUTOFCAPS
DXERR_UNSUPPORTED

Remarks

The dwIRQSources member of the DDENABLEIRQINFO structure at EnableIrqInfo contains the DDIRQ_Xxx flags that are set for every IRQ that should be enabled. If an IRQ is not specified in this call, it should be disabled. If the requested combination cannot be supported, this function fails.

Because the video miniport driver must always manage its own IRQ, it must call the specified IRQCallback when an IRQ occurs. When calling IRQCallback, the dwIRQFlags member of the DX_IRQDATA structure passed to IRQCallback contains the DDIRQ_Xxx flags that indicate what caused the IRQ.

Requirements

Target platform

Header

Dxmini.h (include Dxmini.h)

See also

DDENABLEIRQINFO
DX_IRQDATA
IRQCallback

 

 

Send comments about this topic to Microsoft

Show: