ia64/xen-unstable

view xen/include/asm-x86/e820.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 42fe00c6f8b4
children
line source
1 #ifndef __E820_HEADER
2 #define __E820_HEADER
4 /*
5 * PC BIOS standard E820 types and structure.
6 */
7 #define E820_RAM 1
8 #define E820_RESERVED 2
9 #define E820_ACPI 3
10 #define E820_NVS 4
11 #define E820_UNUSABLE 5
13 struct e820entry {
14 uint64_t addr;
15 uint64_t size;
16 uint32_t type;
17 } __attribute__((packed));
19 #define E820MAX 128
21 struct e820map {
22 int nr_map;
23 struct e820entry map[E820MAX];
24 };
26 extern int e820_all_mapped(u64 start, u64 end, unsigned type);
27 extern int reserve_e820_ram(struct e820map *e820, uint64_t s, uint64_t e);
28 extern int e820_change_range_type(
29 struct e820map *e820, uint64_t s, uint64_t e,
30 uint32_t orig_type, uint32_t new_type);
31 extern unsigned long init_e820(const char *, struct e820entry *, int *);
32 extern struct e820map e820;
34 /* These symbols live in the boot trampoline. */
35 extern struct e820entry e820map[];
36 extern int e820nr;
37 extern unsigned int lowmem_kb, highmem_kb;
39 #define e820_raw bootsym(e820map)
40 #define e820_raw_nr bootsym(e820nr)
42 #endif /*__E820_HEADER*/