SN_DMA_ALLOC_COHERENT

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

sn_dma_alloc_coherent - allocate memory for coherent DMA  

SYNOPSIS

"SYNOPSIS"

void * sn_dma_alloc_coherent (struct device * dev, size_t size, dma_addr_t * dma_handle, int flags);  

ARGUMENTS

dev
device to allocate for
size
size of the region
dma_handle
DMA (bus) address
flags
memory allocation flags
 

DESCRIPTION

dma_alloc_coherent returns a pointer to a memory region suitable for coherent DMA traffic to/from a PCI device. On SN platforms, this means that dma_handle will have the PCIIO_DMA_CMD flag set.

This interface is usually used for ``command'' streams (e.g. the command queue for a SCSI controller). See Documentation/DMA-API.txt for more information.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:49 GMT, October 09, 2005