aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJames Bottomley <james.bottomley@steeleye.com>2004-06-29 05:20:29 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 05:20:29 -0700
commit4ddc09038885e0906efea13e978be192147ef60f (patch)
treee766bb8182f6aad6bb975f69e892c6bb54e30409 /mm
parent55be71cfb77dc0a0a59716be3e1ac7946245ef67 (diff)
downloadhistory-4ddc09038885e0906efea13e978be192147ef60f.tar.gz
[PATCH] dma_get_required_mask()
This patch implements dma_get_required_mask() which may be used by drivers to probe the optimal DMA descriptor type they should be implementing on the platform. I've also tested it this time with the sym_2 driver...making it chose the correct descriptors for the platform. (although I don't have a 64 bit platform with >4GB memory, so I only confirmed it selects the 32 bit descriptors all the time...) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/bootmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c
index 00f4661e174b28..966135b90ff28b 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -16,6 +16,7 @@
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/mmzone.h>
+#include <linux/module.h>
#include <asm/dma.h>
#include <asm/io.h>
@@ -27,6 +28,10 @@ unsigned long max_low_pfn;
unsigned long min_low_pfn;
unsigned long max_pfn;
+EXPORT_SYMBOL(max_pfn); /* This is exported so
+ * dma_get_required_mask(), which uses
+ * it, can be an inline function */
+
/* return the number of _pages_ that will be allocated for the boot bitmap */
unsigned long __init bootmem_bootmap_pages (unsigned long pages)
{