VDMAD_Copy_From_Buffer

include vdmad.inc

VxDcall VDMAD_Copy_From_Buffer


The VDMAD_Copy_From_Buffer service allows another device to copy data from the VDMAD buffer to the actual DMA region associated with the buffer. This service is called after the VDMAD_Request_Buffer service, after a memory write transfer and before the VDMAD_Release_Buffer service.

Parameters

EBX

Specifies the buffer identifier.

ESI

Specifies the region linear.

EDI

Specifies the offset within the buffer to the start of copying.

ECX

Specifies the size of the buffer.

Return Value

The carry flag is clear if the data is copied from buffer into DMA region. Otherwise, the carry flag is set and the AL register contains one of the following error values:

Value Meaning

0Ah DMA_Invalid_Buffer: invalid buffer ID supplied.
0Bh DMA_Copy_Out_Range: (ESI + ECX) is greater than buffer size.

Uses

EAX, Flags