.\" 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_MAP_SINGLE" "9" "09 October 2005" "" "" .SH NAME sn_dma_map_single \- map a single page for DMA .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp dma_addr_t sn_dma_map_single (struct device * \fIdev\fB, void * \fIcpu_addr\fB, size_t \fIsize\fB, int \fIdirection\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR device to map for .TP \fB\fIcpu_addr\fB\fR kernel virtual address of the region to map .TP \fB\fIsize\fB\fR size of the region .TP \fB\fIdirection\fB\fR DMA direction .SH "DESCRIPTION" .PP Map the region pointed to by \fIcpu_addr\fR for DMA and return the DMA address. .PP We map this to the one step pcibr_dmamap_trans interface rather than the two step pcibr_dmamap_alloc/pcibr_dmamap_addr because we have no way of saving the dmamap handle from the alloc to later free (which is pretty much unacceptable). .SH "TODO" .PP simplify our interface; figure out how to save dmamap handle so can use two step.