SN_PCI_MAP_SINGLE

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

 

NAME

sn_pci_map_single - map a single region for DMA  

SYNOPSIS

"SYNOPSIS"

dma_addr_t sn_pci_map_single (struct pci_dev * hwdev, void * ptr, size_t size, int direction);  

ARGUMENTS

hwdev
device to map for
ptr
kernel virtual address of the region to map
size
size of the region
direction
DMA direction
 

DESCRIPTION

Map the region pointed to by ptr for DMA and return the DMA address. Also known as platform_pci_map_single by the IA64 machvec code.

We map this to the one step pcibr_dmamap_trans interface rather than the two step pciio_dmamap_alloc/pciio_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; get rid of dev_desc and vhdl (seems redundant given a pci_dev); 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: 05:30:57 GMT, October 06, 2005