summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/dma.h
diff options
context:
space:
mode:
authorFranck Bui-Huu2007-01-10 09:44:04 +0100
committerRalf Baechle2007-02-06 17:53:13 +0100
commitdb84dc61552ae0d198a8133d28b80c3838930ba8 (patch)
treea2aed3a3d8789f297285c153ecc352ed6c8acb22 /include/asm-mips/dma.h
parent[MIPS] Unify memset.S (diff)
downloadkernel-qcow2-linux-db84dc61552ae0d198a8133d28b80c3838930ba8.tar.gz
kernel-qcow2-linux-db84dc61552ae0d198a8133d28b80c3838930ba8.tar.xz
kernel-qcow2-linux-db84dc61552ae0d198a8133d28b80c3838930ba8.zip
[MIPS] Setup min_low_pfn/max_low_pfn correctly
This patch makes a better usage of these two globals. 'min_low_pfn' is now correctly setup for all configs, which allow us to rely on it in boot memory code init. Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/dma.h')
-rw-r--r--include/asm-mips/dma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-mips/dma.h b/include/asm-mips/dma.h
index 23f789c80845..e06ef0776d48 100644
--- a/include/asm-mips/dma.h
+++ b/include/asm-mips/dma.h
@@ -91,6 +91,7 @@
#else
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000)
#endif
+#define MAX_DMA_PFN PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS))
/* 8237 DMA controllers */
#define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */