]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h
UefiPayloadPkg: Enhance UEFI payload for coreboot and Slim Bootloader
[mirror_edk2.git] / UefiPayloadPkg / Include / Guid / MemoryMapInfoGuid.h
diff --git a/UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h b/UefiPayloadPkg/Include/Guid/MemoryMapInfoGuid.h
new file mode 100644 (file)
index 0000000..99187e8
--- /dev/null
@@ -0,0 +1,36 @@
+/** @file\r
+  This file defines the hob structure for memory map information.\r
+\r
+  Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef __MEMORY_MAP_INFO_GUID_H__\r
+#define __MEMORY_MAP_INFO_GUID_H__\r
+\r
+#include <Library/PcdLib.h>\r
+\r
+///\r
+/// Memory Map Information GUID\r
+///\r
+extern EFI_GUID gLoaderMemoryMapInfoGuid;\r
+\r
+#pragma pack(1)\r
+typedef struct {\r
+  UINT64 Base;\r
+  UINT64 Size;\r
+  UINT8  Type;\r
+  UINT8  Flag;\r
+  UINT8  Reserved[6];\r
+} MEMROY_MAP_ENTRY;\r
+\r
+typedef struct {\r
+  UINT8  Revision;\r
+  UINT8  Reserved0[3];\r
+  UINT32 Count;\r
+  MEMROY_MAP_ENTRY  Entry[0];\r
+} MEMROY_MAP_INFO;\r
+#pragma pack()\r
+\r
+#endif\r