Partager via


DMAGetBufferPhysAddr (Compact 2013)

3/26/2014

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

See Also

Reference

Ceddk.dll DMA Functions
Ceddk.dll DMA Structures