2.15  WD_DMASyncCpu

PURPOSE
• Synchronizes the cache of all CPUs with the DMA buffer, by flushing the data from the CPU caches. NOTE: This function should be called before performing a DMA transfer (see Remarks below).
PROTOTYPE
DWORD WD_DMASyncCpu(
    HANDLE hWD,
    WD_DMA *pDMA);
PARAMETERS
NameTypeInput/Output
hWDHANDLEInput
pDMAWD_DMA*Input
DESCRIPTION
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open [5.2]
pDMA Pointer to a DMA information structure, received from a previous call to WD_DMALock [2.13]
RETURN VALUE
Returns WD_STATUS_SUCCESS(0) on success, or an appropriate error code otherwise [A].
REMARKS
EXAMPLE
WD_DMASyncCpu(hWD, &dma);