summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-10-01 13:27:28 -0700
committerRalf Baechle <ralf@linux-mips.org>2010-10-29 19:08:28 +0100
commitcfd570990f863de90a86da73ef7b7d84e5190647 (patch)
tree3326708ee363f1266041981465076ec1927f0b95 /arch
parentf12990720c5f9bc156ab3e992d3a1c2f43d8d51a (diff)
downloadlinux-stable-cfd570990f863de90a86da73ef7b7d84e5190647.tar.gz
linux-stable-cfd570990f863de90a86da73ef7b7d84e5190647.tar.bz2
linux-stable-cfd570990f863de90a86da73ef7b7d84e5190647.zip
MIPS: Allow MAX_DMA32_PFN to be overridden.
DMA mapping may reduce the usable physical address range usable for 32-bit DMA. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Patchwork: http://patchwork.linux-mips.org/patch/1633/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/dma.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/dma.h b/arch/mips/include/asm/dma.h
index 1353c81065d1..2d47da62d5a7 100644
--- a/arch/mips/include/asm/dma.h
+++ b/arch/mips/include/asm/dma.h
@@ -91,7 +91,10 @@
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)
#endif
#define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS))
+
+#ifndef MAX_DMA32_PFN
#define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT))
+#endif
/* 8237 DMA controllers */
#define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */