EVT_WDF_PROGRAM_DMA callback function (wdfdmatransaction.h)
[Applies to KMDF only]
A framework-based driver's EvtProgramDma event callback function programs a specified device to perform a DMA transfer operation.
[in] WDFDMATRANSACTION Transaction,
[in] WDFDEVICE Device,
[in] WDFCONTEXT Context,
[in] WDF_DMA_DIRECTION Direction,
[in] PSCATTER_GATHER_LIST SgList
A handle to the DMA transaction object that represents the current DMA transaction.
A handle to a framework device object.
The context pointer that the driver specified in a previous call to WdfDmaTransactionExecute.
A WDF_DMA_DIRECTION-typed value that specifies the direction of the DMA transfer operation.
A pointer to a SCATTER_GATHER_LIST structure.
The EvtProgramDma callback function must return TRUE if it successfully starts the DMA transfer operation. Otherwise, this callback function must return FALSE. However, the framework currently ignores the return value.
The framework calls a driver's EvtProgramDma event callback function when a DMA transfer is available. The callback function must program the hardware to start the transfer.
The driver must not manipulate the data buffers associated with the transaction until after WdfDmaTransactionDmaCompletedXxx has returned TRUE.
For single packet transfers, the scatter/gather list that the SgList parameter points to contains a single element.
For more information about this callback function, see Programming DMA Hardware.
|Minimum KMDF version
|wdfdmatransaction.h (include Wdf.h)