syslinux-3.08-2 sources from FC4
[bootcd.git] / syslinux / memdisk / e820.h
1 #ident "$Id: e820.h,v 1.4 2004/12/14 22:46:25 hpa Exp $"
2 /* ----------------------------------------------------------------------- *
3  *   
4  *   Copyright 2001 H. Peter Anvin - All Rights Reserved
5  *
6  *   This program is free software; you can redistribute it and/or modify
7  *   it under the terms of the GNU General Public License as published by
8  *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9  *   Boston MA 02111-1307, USA; either version 2 of the License, or
10  *   (at your option) any later version; incorporated herein by reference.
11  *
12  * ----------------------------------------------------------------------- */
13
14 /*
15  * e820.h
16  *
17  * Common routines for e820 memory map management
18  */
19
20 #include <stdint.h>
21
22 struct e820range {
23   uint64_t start;
24   uint32_t type;
25 } __attribute__((packed));
26
27 extern struct e820range ranges[];
28 extern int nranges;
29 extern uint32_t dos_mem, low_mem, high_mem;
30
31 extern void e820map_init(void);
32 extern void insertrange(uint64_t, uint64_t, uint32_t);
33 extern void get_mem(void);
34 extern void parse_mem(void);