Share via


DMAGetBufferPhysAddr (Windows Embedded CE 6.0)

1/6/2010

This function returns the length and physical address of a DMA buffer block created by DMAOpenBuffer.

Syntax

DWORD DMAGetBufferPhysAddr (
    DMA_BUFFER_HANDLE hBuffer,
  DWORD NumOfBufferBlock,
  CE_DMA_BUFFER_BLOCK ceDmaBufferBLockArray[]
);

Parameters

  • hBuffer
    [in] DMA buffer block handle created by DMAOpenBuffer.
  • NumOfBufferBlock
    [in] Number of DMA buffer block descriptors passed in by the user.
  • ceDmaBufferBlockArray[]
    [in, out] Pointer to an array of CE_DMA_BUFFER_BLOCKs. This array is bounded by the parameter NumOfBufferBlocks and is updated prior to a return from DMAGetBufferPhysAddr.

Return Value

Returns a nonzero value indicating the number of physical DMA buffer blocks on success. Returns zero on failure. For extended error information, the user driver can call GetLastError.

Requirements

Header oaldma.h
Library CEDDK.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

CEDDK Dynamic-Link Library DMA Functions
CEDDK Dynamic-Link Library DMA Structures