Share via


LPOALAllocateCommonBuffer (Windows Embedded CE 6.0)

1/6/2010

This function allocates memory for a DMA adapter specific driver. A similar function is HalAllocateCommonBuffer.

Syntax

typedef PVOID (* LPOALAllocateCommoneBuffer)(
    PDMA_PDD_ADAPTER_CONTEXT lpPddAdapterContext,
    PCE_DMA_ADAPTER DmaAdapter,
  ULONG Length,
  PPHYSICAL_ADDRESS LogicalAddress,
  BOOLEAN CacheEnabled
);

Parameters

  • Length
    [in] Size of buffer to allocate.
  • LogicalAddress
    [out] Pointer to the bus-relative, logical address buffer used by the DMA controller on the specified bus.
  • CacheEnabled
    [in] Ignored. The buffer returned is always at an uncached virtual address.

Return Value

Returns a pointer to an allocated buffer for the device driver to use. Returns NULL if the function fails.

Requirements

Header dmamif.h
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Direct Memory Access Abstraction PDD Functions