next up previous contents
Next: 2.17 WD_PcmciaControl() Up: 2. WD_xxx PCI/PCMCIA/ISA Functions Previous: 2.15 WD_DMASyncCpu()   Contents


2.16 WD_DMASyncIo()


PURPOSE

$\bullet$Synchronizes the I/O caches with the DMA buffer, by flushing the data from the I/O caches and updating the CPU caches.

NOTE: This function should be called after performing a DMA transfer (see Remarks below).


PROTOTYPE

DWORD WD_DMASyncIo(
    HANDLE hWD,
    WD_DMA *pDMA);


PARAMETERS

Name Type Input/Output
$\bullet$hWD HANDLE Input
$\bullet$pDMA WD_DMA* Input


DESCRIPTION

Name Description
hWD Handle 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_DMASyncIo(hWD, &dma);