ia64/xen-unstable

changeset 8910:0bd35cce6611

[IA64] import linux/include/asm-ia64/meminit.h from 2.6.16-rc3.

this is needed for a later patch to modify meminit.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Fri Feb 24 08:41:21 2006 -0700 (2006-02-24)
parents c1ba4af23ec9
children 17adc9c5984a
files linux-2.6-xen-sparse/include/asm-ia64/meminit.h
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-ia64/meminit.h	Fri Feb 24 08:41:21 2006 -0700
     1.3 @@ -0,0 +1,62 @@
     1.4 +#ifndef meminit_h
     1.5 +#define meminit_h
     1.6 +
     1.7 +/*
     1.8 + * This file is subject to the terms and conditions of the GNU General Public
     1.9 + * License.  See the file "COPYING" in the main directory of this archive
    1.10 + * for more details.
    1.11 + */
    1.12 +
    1.13 +#include <linux/config.h>
    1.14 +
    1.15 +/*
    1.16 + * Entries defined so far:
    1.17 + * 	- boot param structure itself
    1.18 + * 	- memory map
    1.19 + * 	- initrd (optional)
    1.20 + * 	- command line string
    1.21 + * 	- kernel code & data
    1.22 + * 	- Kernel memory map built from EFI memory map
    1.23 + *
    1.24 + * More could be added if necessary
    1.25 + */
    1.26 +#define IA64_MAX_RSVD_REGIONS 6
    1.27 +
    1.28 +struct rsvd_region {
    1.29 +	unsigned long start;	/* virtual address of beginning of element */
    1.30 +	unsigned long end;	/* virtual address of end of element + 1 */
    1.31 +};
    1.32 +
    1.33 +extern struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1];
    1.34 +extern int num_rsvd_regions;
    1.35 +
    1.36 +extern void find_memory (void);
    1.37 +extern void reserve_memory (void);
    1.38 +extern void find_initrd (void);
    1.39 +extern int filter_rsvd_memory (unsigned long start, unsigned long end, void *arg);
    1.40 +extern void efi_memmap_init(unsigned long *, unsigned long *);
    1.41 +
    1.42 +/*
    1.43 + * For rounding an address to the next IA64_GRANULE_SIZE or order
    1.44 + */
    1.45 +#define GRANULEROUNDDOWN(n)	((n) & ~(IA64_GRANULE_SIZE-1))
    1.46 +#define GRANULEROUNDUP(n)	(((n)+IA64_GRANULE_SIZE-1) & ~(IA64_GRANULE_SIZE-1))
    1.47 +#define ORDERROUNDDOWN(n)	((n) & ~((PAGE_SIZE<<MAX_ORDER)-1))
    1.48 +
    1.49 +#ifdef CONFIG_NUMA
    1.50 +  extern void call_pernode_memory (unsigned long start, unsigned long len, void *func);
    1.51 +#else
    1.52 +# define call_pernode_memory(start, len, func)	(*func)(start, len, 0)
    1.53 +#endif
    1.54 +
    1.55 +#define IGNORE_PFN0	1	/* XXX fix me: ignore pfn 0 until TLB miss handler is updated... */
    1.56 +
    1.57 +#ifdef CONFIG_VIRTUAL_MEM_MAP
    1.58 +# define LARGE_GAP	0x40000000 /* Use virtual mem map if hole is > than this */
    1.59 +  extern unsigned long vmalloc_end;
    1.60 +  extern struct page *vmem_map;
    1.61 +  extern int find_largest_hole (u64 start, u64 end, void *arg);
    1.62 +  extern int create_mem_map_page_table (u64 start, u64 end, void *arg);
    1.63 +#endif
    1.64 +
    1.65 +#endif /* meminit_h */