drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / vendorcode / amd / pi / Lib / debug_util.c
blob29d0841904a16f1af9385b0bce5936f2abfc0c51
2 #include <AGESA.h>
3 #include <AMD.h>
4 #include <heapManager.h>
6 #include "debug_util.h"
8 static const char undefined[] = "undefined";
10 static const char *HeapStatusStr[] = {
11 "DoNotExistYet", "LocalCache", "TempMem", "SystemMem", "DoNotExistAnymore","S3Resume"
14 /* This function has to match with enumeration of XXXX defined
15 * inside heapManager.h header file.
17 const char *heap_status_name(UINT8 HeapStatus)
19 if ((HeapStatus < HEAP_DO_NOT_EXIST_YET) || (HeapStatus > HEAP_S3_RESUME))
20 return undefined;
22 int index = HeapStatus - HEAP_DO_NOT_EXIST_YET;
23 return HeapStatusStr[index];