Synchronizes the I/O caches with the DMA buffer, by flushing the data from the I/O caches and updating the CPU caches.
![]() | |
| This function should be called after performing a DMA transfer (see Remarks below). |
DWORD WD_DMASyncIo(
HANDLE hWD,
WD_DMA *pDMA);
| Name | Type | Input/Output |
|---|---|---|
| hWD | HANDLE | Input |
| pDMA | WD_DMA* | Input |
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate
error code otherwise
WD_DMASyncIo() after a DMA transfer in order to flush the data
from the I/O cache and update the CPU cache with the new data. The
function also flushes additional caches and buffers between the device and
memory, such as caches associated with bus extenders or bridges.
WD_DMASyncIo(hWD, &dma);