patch-2.4.22 linux-2.4.22/arch/parisc/kernel/pci-dma.c
Next file: linux-2.4.22/arch/parisc/kernel/perf.c
Previous file: linux-2.4.22/arch/parisc/kernel/parisc_ksyms.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/parisc/kernel/pci-dma.c
- Orig date:
2002-11-28 15:53:10.000000000 -0800
diff -urN linux-2.4.21/arch/parisc/kernel/pci-dma.c linux-2.4.22/arch/parisc/kernel/pci-dma.c
@@ -428,9 +428,9 @@
BUG();
for (i = 0; i < nents; i++, sglist++ ) {
- sg_dma_address(sglist) = (dma_addr_t) virt_to_phys(sglist->address);
+ sg_dma_address(sglist) = (dma_addr_t) virt_to_phys(sg_virt_addr(sglist));
sg_dma_len(sglist) = sglist->length;
- flush_kernel_dcache_range((unsigned long)sglist->address,
+ flush_kernel_dcache_range((unsigned long)sg_virt_addr(sglist),
sglist->length);
}
return nents;
@@ -449,7 +449,7 @@
/* once we do combining we'll need to use phys_to_virt(sg_dma_address(sglist)) */
for (i = 0; i < nents; i++, sglist++ )
- flush_kernel_dcache_range((unsigned long) sglist->address, sglist->length);
+ flush_kernel_dcache_range((unsigned long) sg_virt_addr(sglist), sglist->length);
return;
}
@@ -468,7 +468,7 @@
/* once we do combining we'll need to use phys_to_virt(sg_dma_address(sglist)) */
for (i = 0; i < nents; i++, sglist++ )
- flush_kernel_dcache_range((unsigned long) sglist->address, sglist->length);
+ flush_kernel_dcache_range((unsigned long) sg_virt_addr(sglist), sglist->length);
}
struct pci_dma_ops pcxl_dma_ops = {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)