aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bootmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/bootmem.h')
-rw-r--r--include/linux/bootmem.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h
index e319c649e4fd..c7124d4ce7cf 100644
--- a/include/linux/bootmem.h
+++ b/include/linux/bootmem.h
@@ -41,23 +41,23 @@ typedef struct bootmem_data {
41 struct list_head list; 41 struct list_head list;
42} bootmem_data_t; 42} bootmem_data_t;
43 43
44extern unsigned long __init bootmem_bootmap_pages (unsigned long); 44extern unsigned long bootmem_bootmap_pages (unsigned long);
45extern unsigned long __init init_bootmem (unsigned long addr, unsigned long memend); 45extern unsigned long init_bootmem (unsigned long addr, unsigned long memend);
46extern void __init free_bootmem (unsigned long addr, unsigned long size); 46extern void free_bootmem (unsigned long addr, unsigned long size);
47extern void * __init __alloc_bootmem (unsigned long size, unsigned long align, unsigned long goal); 47extern void * __alloc_bootmem (unsigned long size, unsigned long align, unsigned long goal);
48extern void * __init __alloc_bootmem_nopanic (unsigned long size, unsigned long align, unsigned long goal); 48extern void * __alloc_bootmem_nopanic (unsigned long size, unsigned long align, unsigned long goal);
49extern void * __init __alloc_bootmem_low(unsigned long size, 49extern void * __alloc_bootmem_low(unsigned long size,
50 unsigned long align, 50 unsigned long align,
51 unsigned long goal); 51 unsigned long goal);
52extern void * __init __alloc_bootmem_low_node(pg_data_t *pgdat, 52extern void * __alloc_bootmem_low_node(pg_data_t *pgdat,
53 unsigned long size, 53 unsigned long size,
54 unsigned long align, 54 unsigned long align,
55 unsigned long goal); 55 unsigned long goal);
56extern void * __init __alloc_bootmem_core(struct bootmem_data *bdata, 56extern void * __alloc_bootmem_core(struct bootmem_data *bdata,
57 unsigned long size, unsigned long align, unsigned long goal, 57 unsigned long size, unsigned long align, unsigned long goal,
58 unsigned long limit); 58 unsigned long limit);
59#ifndef CONFIG_HAVE_ARCH_BOOTMEM_NODE 59#ifndef CONFIG_HAVE_ARCH_BOOTMEM_NODE
60extern void __init reserve_bootmem (unsigned long addr, unsigned long size); 60extern void reserve_bootmem (unsigned long addr, unsigned long size);
61#define alloc_bootmem(x) \ 61#define alloc_bootmem(x) \
62 __alloc_bootmem((x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)) 62 __alloc_bootmem((x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
63#define alloc_bootmem_low(x) \ 63#define alloc_bootmem_low(x) \
@@ -67,12 +67,12 @@ extern void __init reserve_bootmem (unsigned long addr, unsigned long size);
67#define alloc_bootmem_low_pages(x) \ 67#define alloc_bootmem_low_pages(x) \
68 __alloc_bootmem_low((x), PAGE_SIZE, 0) 68 __alloc_bootmem_low((x), PAGE_SIZE, 0)
69#endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */ 69#endif /* !CONFIG_HAVE_ARCH_BOOTMEM_NODE */
70extern unsigned long __init free_all_bootmem (void); 70extern unsigned long free_all_bootmem (void);
71extern void * __init __alloc_bootmem_node (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal); 71extern void * __alloc_bootmem_node (pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal);
72extern unsigned long __init init_bootmem_node (pg_data_t *pgdat, unsigned long freepfn, unsigned long startpfn, unsigned long endpfn); 72extern unsigned long init_bootmem_node (pg_data_t *pgdat, unsigned long freepfn, unsigned long startpfn, unsigned long endpfn);
73extern void __init reserve_bootmem_node (pg_data_t *pgdat, unsigned long physaddr, unsigned long size); 73extern void reserve_bootmem_node (pg_data_t *pgdat, unsigned long physaddr, unsigned long size);
74extern void __init free_bootmem_node (pg_data_t *pgdat, unsigned long addr, unsigned long size); 74extern void free_bootmem_node (pg_data_t *pgdat, unsigned long addr, unsigned long size);
75extern unsigned long __init free_all_bootmem_node (pg_data_t *pgdat); 75extern unsigned long free_all_bootmem_node (pg_data_t *pgdat);
76#ifndef CONFIG_HAVE_ARCH_BOOTMEM_NODE 76#ifndef CONFIG_HAVE_ARCH_BOOTMEM_NODE
77#define alloc_bootmem_node(pgdat, x) \ 77#define alloc_bootmem_node(pgdat, x) \
78 __alloc_bootmem_node((pgdat), (x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)) 78 __alloc_bootmem_node((pgdat), (x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
@@ -94,14 +94,14 @@ static inline void *alloc_remap(int nid, unsigned long size)
94extern unsigned long __meminitdata nr_kernel_pages; 94extern unsigned long __meminitdata nr_kernel_pages;
95extern unsigned long nr_all_pages; 95extern unsigned long nr_all_pages;
96 96
97extern void *__init alloc_large_system_hash(const char *tablename, 97extern void * alloc_large_system_hash(const char *tablename,
98 unsigned long bucketsize, 98 unsigned long bucketsize,
99 unsigned long numentries, 99 unsigned long numentries,
100 int scale, 100 int scale,
101 int flags, 101 int flags,
102 unsigned int *_hash_shift, 102 unsigned int *_hash_shift,
103 unsigned int *_hash_mask, 103 unsigned int *_hash_mask,
104 unsigned long limit); 104 unsigned long limit);
105 105
106#define HASH_HIGHMEM 0x00000001 /* Consider highmem? */ 106#define HASH_HIGHMEM 0x00000001 /* Consider highmem? */
107#define HASH_EARLY 0x00000002 /* Allocating during early boot? */ 107#define HASH_EARLY 0x00000002 /* Allocating during early boot? */