Move memmap.h out of arch/i386; it no longer contains anything

architecture-dependent and is needed by the ELF code.
This commit is contained in:
Michael Brown
2007-01-11 14:08:44 +00:00
parent c6a4055fae
commit c980cdd0aa
3 changed files with 5 additions and 5 deletions

34
src/include/gpxe/memmap.h Normal file
View File

@@ -0,0 +1,34 @@
#ifndef _GPXE_MEMMAP_H
#define _GPXE_MEMMAP_H
#include <stdint.h>
/**
* @file
*
* Memory mapping
*
*/
/** A usable memory region */
struct memory_region {
/** Physical start address */
uint64_t start;
/** Physical end address */
uint64_t end;
};
/** Maximum number of memory regions we expect to encounter */
#define MAX_MEMORY_REGIONS 8
/** A memory map */
struct memory_map {
/** Memory regions */
struct memory_region regions[MAX_MEMORY_REGIONS];
/** Number of used regions */
unsigned int count;
};
extern void get_memmap ( struct memory_map *memmap );
#endif /* _GPXE_MEMMAP_H */