![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <amdblocks/agesawrapper.h>
#include <amdblocks/BiosCallOuts.h>
#include <cbmem.h>
#include <string.h>
Go to the source code of this file.
Functions | |
static void * | agesa_heap_base (void) |
static void | EmptyHeap (int unused) |
AGESA_STATUS | agesa_GetTempHeapBase (uint32_t Func, uintptr_t Data, void *ConfigPtr) |
AGESA_STATUS | agesa_HeapRebase (uint32_t Func, uintptr_t Data, void *ConfigPtr) |
static AGESA_STATUS | FindAllocatedNode (uint32_t handle, BIOS_BUFFER_NODE **last_allocd_or_match) |
static void | ConcatenateNodes (BIOS_BUFFER_NODE *FirstNodePtr, BIOS_BUFFER_NODE *SecondNodePtr) |
AGESA_STATUS | agesa_AllocateBuffer (uint32_t Func, uintptr_t Data, void *ConfigPtr) |
AGESA_STATUS | agesa_DeallocateBuffer (uint32_t Func, uintptr_t Data, void *ConfigPtr) |
AGESA_STATUS | agesa_LocateBuffer (uint32_t Func, uintptr_t Data, void *ConfigPtr) |
AGESA_STATUS agesa_AllocateBuffer | ( | uint32_t | Func, |
uintptr_t | Data, | ||
void * | ConfigPtr | ||
) |
Definition at line 132 of file heapmanager.c.
References agesa_heap_base(), AGESA_SUCCESS, BIOS_HEAP_SIZE, _BIOS_BUFFER_NODE::BufferHandle, _BIOS_BUFFER_NODE::BufferSize, FindAllocatedNode(), _BIOS_BUFFER_NODE::NextNodeOffset, NULL, _BIOS_HEAP_MANAGER::StartOfAllocatedNodes, and _BIOS_HEAP_MANAGER::StartOfFreedNodes.
AGESA_STATUS agesa_DeallocateBuffer | ( | uint32_t | Func, |
uintptr_t | Data, | ||
void * | ConfigPtr | ||
) |
Definition at line 308 of file heapmanager.c.
References agesa_heap_base(), AGESA_SUCCESS, _BIOS_BUFFER_NODE::BufferHandle, _BIOS_BUFFER_NODE::BufferSize, ConcatenateNodes(), memset(), _BIOS_BUFFER_NODE::NextNodeOffset, _BIOS_HEAP_MANAGER::StartOfAllocatedNodes, and _BIOS_HEAP_MANAGER::StartOfFreedNodes.
AGESA_STATUS agesa_GetTempHeapBase | ( | uint32_t | Func, |
uintptr_t | Data, | ||
void * | ConfigPtr | ||
) |
Definition at line 34 of file heapmanager.c.
References AGESA_SUCCESS.
Definition at line 8 of file heapmanager.c.
References BIOS_HEAP_SIZE, cbmem_add(), and CBMEM_ID_RESUME_SCRATCH.
Referenced by agesa_AllocateBuffer(), agesa_DeallocateBuffer(), agesa_HeapRebase(), EmptyHeap(), and FindAllocatedNode().
AGESA_STATUS agesa_HeapRebase | ( | uint32_t | Func, |
uintptr_t | Data, | ||
void * | ConfigPtr | ||
) |
Definition at line 58 of file heapmanager.c.
References agesa_heap_base(), and AGESA_SUCCESS.
AGESA_STATUS agesa_LocateBuffer | ( | uint32_t | Func, |
uintptr_t | Data, | ||
void * | ConfigPtr | ||
) |
Definition at line 422 of file heapmanager.c.
References AGESA_SUCCESS, _BIOS_BUFFER_NODE::BufferSize, and FindAllocatedNode().
|
static |
Definition at line 119 of file heapmanager.c.
References _BIOS_BUFFER_NODE::BufferSize, memset(), and _BIOS_BUFFER_NODE::NextNodeOffset.
Referenced by agesa_DeallocateBuffer().
|
static |
Definition at line 13 of file heapmanager.c.
References agesa_heap_base(), BIOS_HEAP_SIZE, and memset().
|
static |
Definition at line 82 of file heapmanager.c.
References agesa_heap_base(), AGESA_SUCCESS, _BIOS_BUFFER_NODE::BufferHandle, _BIOS_BUFFER_NODE::NextNodeOffset, and _BIOS_HEAP_MANAGER::StartOfAllocatedNodes.
Referenced by agesa_AllocateBuffer(), and agesa_LocateBuffer().