mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
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:
@@ -1,6 +1,6 @@
|
||||
#include <io.h>
|
||||
#include <registers.h>
|
||||
#include <memmap.h>
|
||||
#include <gpxe/memmap.h>
|
||||
|
||||
/*
|
||||
* Originally by Eric Biederman
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <errno.h>
|
||||
#include <realmode.h>
|
||||
#include <bios.h>
|
||||
#include <memmap.h>
|
||||
#include <gpxe/memmap.h>
|
||||
|
||||
/**
|
||||
* @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 */
|
||||
Reference in New Issue
Block a user