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

View File

@@ -1,6 +1,6 @@
#include <io.h>
#include <registers.h>
#include <memmap.h>
#include <gpxe/memmap.h>
/*
* Originally by Eric Biederman

View File

@@ -20,7 +20,7 @@
#include <errno.h>
#include <realmode.h>
#include <bios.h>
#include <memmap.h>
#include <gpxe/memmap.h>
/**
* @file

View File

@@ -1,34 +0,0 @@
#ifndef _MEMMAP_H
#define _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 /* _MEMMAP_H */