VDMAD_Unlock_DMA_Region

include vdmad.inc

mov esi, OFFSET32 DMA_Region
mov ecx, Size
VxDcall VDMAD_Unlock_DMA_Region
jz ErrorHandler
 

Unlocks the DMA region previously locked to a channel. Uses flags

DMA_Region
Linear address of the actual DMA region.
Size
Size in bytes of the DMA region.

This service is called after a DMA transfer is complete and the channel has been masked, preventing the controller from attempting any further transfers to the programmed address.