3 * - By John Hodge (thePowersGang)
6 * - Physical Memory Map definitions
11 typedef struct sPMemMapEnt tPMemMapEnt;
15 PMEMTYPE_FREE, // Free RAM
16 PMEMTYPE_USED, // Used by Kernel / Modules
17 PMEMTYPE_RESERVED, // Unavaliable
18 PMEMTYPE_NVRAM, // Non-volatile
19 PMEMTYPE_UNMAPPED // Nothing on these lines
26 enum ePMemMapEntType Type;
30 extern void PMemMap_DumpBlocks(tPMemMapEnt *map, int NEnts);
31 extern int PMemMap_SplitBlock(tPMemMapEnt *map, int NEnts, int MaxEnts, int Block, Uint64 Offset);
32 extern int PMemMap_CompactMap(tPMemMapEnt *map, int NEnts, int MaxEnts);
33 extern int PMemMap_ValidateMap(tPMemMapEnt *map, int NEnts, int MaxEnts);
34 extern int PMemMap_MarkRangeUsed(tPMemMapEnt *map, int NEnts, int MaxEnts, Uint64 Base, Uint64 Size);