kernels/linux-2.4.0/arch/ia64/sn/io/pci_dma.c
/*
 * Unmap a set of streaming mode DMA translations.
 * Again, cpu read rules concerning calls here are the same as for
 * pci_unmap_single() above.
 */
Unmap a set of streaming mode DMA translations.
Again, cpu read rules concerning calls here are the same as for
pci_unmap_single() above.
Unmap a set of streaming mode DMA translations . Again cpu read rules concerning calls here are the same as for pci_unmap_single () above .
void
sn1_pci_unmap_sg (struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction)
{
	int i;
	if (direction == PCI_DMA_NONE)
		BUG();
	for (i = 0; i < nelems; i++, sg++)
		if (sg->orig_address != sg->address) {
			sg->address = sg->orig_address;
			sg->orig_address = 0;
		}
}
void sn1_pci_unmap_sg ( struct pci_dev * hwdev , struct scatterlist * sg , int nelems , int direction ) { int i ; if ( direction == PCI_DMA_NONE ) BUG ( ) ; for ( i = 0 ; i < nelems ; i ++ , sg ++ ) if ( sg -> orig_address != sg -> address ) { sg -> address = sg -> orig_address ; sg -> orig_address = 0 ; } }
Unmap a set of streaming mode DMA translations.
Unmap a set of streaming mode DMA translations .
/* phys_to_virt((dma_addr_t)sg->address | ~0x80000000); */