]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Coreboot.h
CorebootModulePkg/CbParseLib: Support current Coreboot IMD
[mirror_edk2.git] / CorebootModulePkg / Include / Coreboot.h
index 703c034ca913bae8562e2a3f9d584b52892347d3..f2f18be2ccbc77af9493a8dfcca9a6d7c5f6d99d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Coreboot PEI module include file.\r
 \r
-  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -51,6 +51,9 @@
 \r
 #define DYN_CBMEM_ALIGN_SIZE (4096)\r
 \r
+#define IMD_ENTRY_MAGIC      (~0xC0389481)\r
+#define CBMEM_ENTRY_MAGIC    (~0xC0389479)\r
+\r
 struct cbmem_entry {\r
   UINT32 magic;\r
   UINT32 start;\r
@@ -66,6 +69,22 @@ struct cbmem_root {
   struct cbmem_entry entries[0];\r
 };\r
 \r
+struct imd_entry {\r
+  UINT32 magic;\r
+  UINT32 start_offset;\r
+  UINT32 size;\r
+  UINT32 id;\r
+};\r
+\r
+struct imd_root {\r
+  UINT32 max_entries;\r
+  UINT32 num_entries;\r
+  UINT32 flags;\r
+  UINT32 entry_align;        \r
+  UINT32 max_offset;\r
+  struct imd_entry entries[0];\r
+};\r
+\r
 struct cbuint64 {\r
   UINT32 lo;\r
   UINT32 hi;\r