]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Include/Guid/MemoryStatusCodeRecord.h
1) Check in Pei/Dxe status code;
[mirror_edk2.git] / EdkModulePkg / Include / Guid / MemoryStatusCodeRecord.h
diff --git a/EdkModulePkg/Include/Guid/MemoryStatusCodeRecord.h b/EdkModulePkg/Include/Guid/MemoryStatusCodeRecord.h
new file mode 100644 (file)
index 0000000..0c0fd9a
--- /dev/null
@@ -0,0 +1,54 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation                                                         \r
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+\r
+  MemoryStatusCodeRecord.h\r
+    \r
+Abstract:\r
+\r
+  GUID used to identify status code records HOB that originate from the PEI status code  \r
+\r
+--*/\r
+\r
+#ifndef _MEMORY_STATUS_CODE_RECORD_H__\r
+#define _MEMORY_STATUS_CODE_RECORD_H__\r
+\r
+#define MEMORY_STATUS_CODE_RECORD_GUID \\r
+  { \\r
+    0x60cc026, 0x4c0d, 0x4dda, {0x8f, 0x41, 0x59, 0x5f, 0xef, 0x0, 0xa5, 0x2} \\r
+  }\r
+\r
+/**\r
+  Memory status code records packet structure :\r
+  +---------------+----------+----------+-----+----------+-----+----------+\r
+  | Packet Header | Record 1 | Record 2 | ... + Record n | ... | Record m |\r
+  +---------------+----------+----------+-----+----------+-----+----------+\r
+                  ^                                 ^                     ^\r
+                  +--------- RecordIndex -----------+                     |\r
+                  +---------------- MaxRecordsNumber----------------------+\r
+**/\r
+typedef struct {\r
+  UINT16                  PacketIndex;          // Index of the Packet.\r
+  UINT16                  RecordIndex;          // Index of record in the packet.\r
+  UINT32                  MaxRecordsNumber;     // Max number of records in the packet.\r
+} MEMORY_STATUSCODE_PACKET_HEADER;\r
+\r
+typedef struct {\r
+  EFI_STATUS_CODE_TYPE    CodeType;\r
+  EFI_STATUS_CODE_VALUE   Value;\r
+  UINT32                  Instance;\r
+} MEMORY_STATUSCODE_RECORD;\r
+\r
+\r
+extern EFI_GUID gMemoryStatusCodeRecordGuid;\r
+\r
+#endif\r