patch-2.3.99-pre6 linux/include/asm-arm/pci.h

Next file: linux/include/asm-arm/pgalloc.h
Previous file: linux/include/asm-arm/hardirq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-arm/pci.h linux/include/asm-arm/pci.h
@@ -51,7 +51,7 @@
 extern inline dma_addr_t
 pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction)
 {
-	consistent_sync(ptr, size, 3);
+	consistent_sync(ptr, size, direction);
 	return virt_to_bus(ptr);
 }
 
@@ -89,7 +89,7 @@
 	int i;
 
 	for (i = 0; i < nents; i++, sg++)
-		consistent_sync(sg->address, sg->length, 3);
+		consistent_sync(sg->address, sg->length, direction);
 
 	return nents;
 }
@@ -116,7 +116,7 @@
 extern inline void
 pci_dma_sync_single(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int direction)
 {
-	consistent_sync(bus_to_virt(dma_handle), size, 3);
+	consistent_sync(bus_to_virt(dma_handle), size, direction);
 }
 
 /* Make physical memory consistent for a set of streaming

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)