XenevaOS
Loading...
Searching...
No Matches
physm.h
Go to the documentation of this file.
1
30#ifndef __PHYSICAL_MMNGR_H__
31#define __PHYSICAL_MMNGR_H__
32
33#include "littleboot.h"
34
36
37/*
38 * LBInitializePmmngr -- initialize the physical memory manager
39 * @param map -- pointer to memory map area
40 * @param num_entries -- number of memory map entries
41 * @param buffer -- Pointer to buffer where to store pmmngr data
42 * @param buffsize -- pmmngr internal data size
43 */
44extern void LBInitializePmmngr(memory_region_t* map, uint64_t num_entries, void*buffer, size_t buffsize);
45
46/*
47 * LBPmmngrAlloc -- allocate a physical block
48 */
49extern paddr_t LBPmmngrAlloc();
50
51extern void LBPmmngrFree(paddr_t addr);
52
53extern void* LBPmmngrGetAllocatedPtr();
54
55extern void* LBPmmngrGetStackPtr();
56
58
59#endif
EFI_PHYSICAL_ADDRESS paddr_t
Definition physm.h:37
void LBPmmngrFree(paddr_t addr)
Definition physm.c:84
void * LBPmmngrGetAllocatedPtr()
Definition physm.c:104
uint32_t LBPmmngrGetReservedMemCount()
Definition physm.c:112
void LBInitializePmmngr(memory_region_t *map, uint64_t num_entries, void *buffer, size_t buffsize)
Definition physm.c:47
paddr_t LBPmmngrAlloc()
Definition physm.c:73
void * LBPmmngrGetStackPtr()
Definition physm.c:108
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
Definition littleboot.h:82