patch-2.4.19 linux-2.4.19/arch/mips/kernel/pci-dma.c

Next file: linux-2.4.19/arch/mips/kernel/pci.c
Previous file: linux-2.4.19/arch/mips/kernel/old-time.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips/kernel/pci-dma.c linux-2.4.19/arch/mips/kernel/pci-dma.c
@@ -10,6 +10,7 @@
 #include <linux/config.h>
 #include <linux/types.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 #include <linux/string.h>
 #include <linux/pci.h>
 
@@ -27,7 +28,7 @@
 
 	if (ret != NULL) {
 		memset(ret, 0, size);
-#ifndef CONFIG_COHERENT_IO
+#ifdef CONFIG_NONCOHERENT_IO
 		dma_cache_wback_inv((unsigned long) ret, size);
 		ret = KSEG1ADDR(ret);
 #endif
@@ -42,8 +43,11 @@
 {
 	unsigned long addr = (unsigned long) vaddr;
 
-#ifndef CONFIG_COHERENT_IO
+#ifdef CONFIG_NONCOHERENT_IO
 	addr = KSEG0ADDR(addr);
 #endif
 	free_pages(addr, get_order(size));
 }
+
+EXPORT_SYMBOL(pci_alloc_consistent);
+EXPORT_SYMBOL(pci_free_consistent);

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