summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlauber Costa2008-03-25 22:36:36 +0100
committerIngo Molnar2008-04-19 19:19:56 +0200
commit7c18341665917b493fa40eeb3c7ff6c1a5ac47db (patch)
treef027237e256fe89ca03b83f8eb32978560b092da /include
parentx86: align to clflush size (diff)
downloadkernel-qcow2-linux-7c18341665917b493fa40eeb3c7ff6c1a5ac47db.tar.gz
kernel-qcow2-linux-7c18341665917b493fa40eeb3c7ff6c1a5ac47db.tar.xz
kernel-qcow2-linux-7c18341665917b493fa40eeb3c7ff6c1a5ac47db.zip
x86: provide a bad_dma_address symbol for i386
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>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/dma-mapping.h2
-rw-r--r--include/asm-x86/dma-mapping_64.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index c671a0aea59b..984935d86bbd 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/include/asm-x86/dma-mapping.h
@@ -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,
diff --git a/include/asm-x86/dma-mapping_64.h b/include/asm-x86/dma-mapping_64.h
index 9674dac9fa3a..352bf4164a5e 100644
--- a/include/asm-x86/dma-mapping_64.h
+++ b/include/asm-x86/dma-mapping_64.h
@@ -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)