Import 2.3.25pre1
[davej-history.git] / include / linux / bootmem.h
bloba0727169eeab7fb8330a72a5846dcd762199fd4a
1 #ifndef _LINUX_BOOTMEM_H
2 #define _LINUX_BOOTMEM_H
4 #include <linux/config.h>
5 #include <asm/pgtable.h>
6 #include <asm/dma.h>
8 /*
9 * simple boot-time physical memory area allocator.
12 extern unsigned long max_low_pfn;
14 extern unsigned long __init init_bootmem (unsigned long addr, unsigned long memend);
15 extern void __init reserve_bootmem (unsigned long addr, unsigned long size);
16 extern void __init free_bootmem (unsigned long addr, unsigned long size);
17 extern void * __init __alloc_bootmem (unsigned long size, unsigned long align, unsigned long goal);
18 #define alloc_bootmem(x) \
19 __alloc_bootmem((x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
20 #define alloc_bootmem_pages(x) \
21 __alloc_bootmem((x), PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
22 #define alloc_bootmem_low_pages(x) \
23 __alloc_bootmem((x), PAGE_SIZE, 0)
24 extern unsigned long __init free_all_bootmem (void);
26 #endif /* _LINUX_BOOTMEM_H */