]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: provide a bad_dma_address symbol for i386
authorGlauber Costa <gcosta@redhat.com>
Tue, 25 Mar 2008 21:36:36 +0000 (18:36 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:56 +0000 (19:19 +0200)
It's initially 0, since we don't expect any DMA there.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma_32.c
include/asm-x86/dma-mapping.h
include/asm-x86/dma-mapping_64.h

index 453b4bda2714a64df4338b65015d7dff0f658658..55ab3c874d8ff876b052b2077757c442fcf2f615 100644 (file)
 #include <linux/module.h>
 #include <asm/io.h>
 
+/* For i386, we make it point to the NULL address */
+dma_addr_t bad_dma_address __read_mostly = 0x0;
+EXPORT_SYMBOL(bad_dma_address);
+
 struct dma_coherent_mem {
        void            *virt_base;
        u32             device_base;
index c671a0aea59bfcf25058a7098374731792c8a723..984935d86bbdb6accc10ac083c25a2e9df012d72 100644 (file)
@@ -10,6 +10,8 @@
 #include <asm/io.h>
 #include <asm/swiotlb.h>
 
+extern dma_addr_t bad_dma_address;
+
 struct dma_mapping_ops {
        int             (*mapping_error)(dma_addr_t dma_addr);
        void*           (*alloc_coherent)(struct device *dev, size_t size,
index 9674dac9fa3a34a77964ef1e6b14e84e4bb12214..352bf4164a5e4c63dd182850a277b8ef0cae8e74 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _X8664_DMA_MAPPING_H
 #define _X8664_DMA_MAPPING_H 1
 
-extern dma_addr_t bad_dma_address;
 extern int iommu_merge;
 
 static inline int dma_mapping_error(dma_addr_t dma_addr)