.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SN_DMA_ALLOC_COHERENT" "9" "09 October 2005" "" ""
.SH NAME
sn_dma_alloc_coherent \- allocate memory for coherent DMA
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void * sn_dma_alloc_coherent (struct device * \fIdev\fB, size_t \fIsize\fB, dma_addr_t * \fIdma_handle\fB, int \fIflags\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
device to allocate for
.TP
\fB\fIsize\fB\fR
size of the region
.TP
\fB\fIdma_handle\fB\fR
DMA (bus) address
.TP
\fB\fIflags\fB\fR
memory allocation flags
.SH "DESCRIPTION"
.PP
\fBdma_alloc_coherent\fR returns a pointer to a memory region suitable for
coherent DMA traffic to/from a PCI device. On SN platforms, this means
that \fIdma_handle\fR will have the PCIIO_DMA_CMD flag set.
.PP
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.