blob: cfd3fe9dc9f0902affeb03da12f2f50933975629 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef _IPXE_MEMMAP_H
#define _IPXE_MEMMAP_H
#include <stdint.h>
/**
* @file
*
* Memory mapping
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
/** 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 /* _IPXE_MEMMAP_H */
|