SN_PCI_ALLOC_CONSISTENT

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

 

NAME

sn_pci_alloc_consistent - allocate memory for coherent DMA  

SYNOPSIS

"SYNOPSIS"

void * sn_pci_alloc_consistent (struct pci_dev * hwdev, size_t size, dma_addr_t * dma_handle);  

ARGUMENTS

hwdev
device to allocate for
size
size of the region
dma_handle
DMA (bus) address
 

DESCRIPTION

pci_alloc_consistent 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-mapping.txt for more information. Note that this routine will always put a 32 bit DMA address into dma_handle. This is because most devices that are capable of 64 bit PCI DMA transactions can't do 64 bit _coherent_ DMAs, and unfortunately this interface has to cater to the LCD. Oh well.

Also known as platform_pci_alloc_consistent by the IA64 machvec code.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 04:41:06 GMT, October 06, 2005