NAME

vme_dma_buffer_create - Allocates a DMA safe memory buffer and an associated handle.

SYNOPSIS

int vme_dma_buffer_create ( bus_handle, vme_dma_handle_t * handle, size_t size, int flags, void * phys_addr )

PARAMETERS

bus_handle

Handle allocated by vme_init.

vme_dma_handle_t * handle

Pointer to the DMA buffer handle to allocate.

size_t size

Minimum size of the window, in bytes.

int flags

No flags are currently defined for this parameter; use 0.

void * phys_addr

Specifies the physical address of a DMA buffer. If NULL, space is automatically allocated.

DESCRIPTION

Allocates a DMA safe memory buffer and an associated handle.

RETURNS

0 on success, or -1 on failure.

SEE ALSO

vme_dma_buffer_map(3), vme_dma_buffer_phys_addr(3), vme_dma_buffer_release(3), vme_dma_buffer_unmap(3), vme_dma_read(3), vme_dma_write(3)