DMA_FLAGS enumeration (video.h)

The DMA_FLAGS enumeration specifies flags for the VideoPortLockPages or VideoPortDoDma functions.

Syntax

typedef enum {
  VideoPortUnlockAfterDma,
  VideoPortKeepPagesLocked,
  VideoPortDmaInitOnly
} DMA_FLAGS;

Constants

 
VideoPortUnlockAfterDma
Tells the video port to unlock the pages after the miniport signals that the DMA is complete via the pDmaCompletionEvent in HwStartDma. Failure to set this event at DMA completion can cause the memory to be unlocked at random times. This flag is best used when one wants to do one DMA transfer that occurs infrequently. It allows locking, DMAing, and unlocking to be performed in the context of one IOCTL.
VideoPortKeepPagesLocked
Tells the video port to leave the pages locked if possible.
VideoPortDmaInitOnly
Tells the video port to lock the pages but not call the miniport's HwStartDma routine. This flag isn't applicable to VideoPortDoDma.

Requirements

Requirement Value
Minimum supported client Windows 11, version 24H2
Header video.h

See also

HwStartDma

VideoPortDoDma

VideoPortLockPages