SN_DMA_MAP_SINGLE

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

 

NAME

sn_dma_map_single - map a single page for DMA  

SYNOPSIS

"SYNOPSIS"

dma_addr_t sn_dma_map_single (struct device * dev, void * cpu_addr, size_t size, int direction);  

ARGUMENTS

dev
device to map for
cpu_addr
kernel virtual address of the region to map
size
size of the region
direction
DMA direction
 

DESCRIPTION

Map the region pointed to by cpu_addr for DMA and return the DMA address.

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).  

TODO

simplify our interface; figure out how to save dmamap handle so can use two step.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
TODO

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