]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Include / Guid / MemoryStatusCodeRecord.h
index d6c3243094baa46b0327b2d2720c42894621829e..8dafc6945be1ad8db570c2a68e6431e365c2f572 100644 (file)
@@ -1,14 +1,9 @@
 /** @file\r
-  GUID used to identify status code records HOB that originate from the PEI status code.    \r
-  \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
-The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+  GUID used to identify status code records HOB that originate from the PEI status code.\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
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -16,9 +11,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __MEMORY_STATUS_CODE_RECORD_H__\r
 \r
 ///\r
-/// Global ID used to identify GUIDed HOBs that start with a structure of type \r
-/// MEMORY_STATUSCODE_PACKET_HEADER, followed by an array of structures of type \r
-/// MEMORY_STATUSCODE_RECORD.  These GUIDed HOBs record all the information \r
+/// Global ID used to identify GUIDed HOBs that start with a structure of type\r
+/// MEMORY_STATUSCODE_PACKET_HEADER, followed by an array of structures of type\r
+/// MEMORY_STATUSCODE_RECORD.  These GUIDed HOBs record all the information\r
 /// passed into the ReportStatusCode() service of PEI Services Table.\r
 ///\r
 ///  <pre>\r
@@ -37,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   }\r
 \r
 ///\r
-/// A header structure that is followed by an array of records that contain the \r
+/// A header structure that is followed by an array of records that contain the\r
 /// parameters passed into the ReportStatusCode() service in the PEI Services Table.\r
 ///\r
 typedef struct {\r
@@ -56,7 +51,26 @@ typedef struct {
 } MEMORY_STATUSCODE_PACKET_HEADER;\r
 \r
 ///\r
-/// A structure that contains the parameters passed into the ReportStatusCode() \r
+/// A header structure that is followed by an array of records that contain the\r
+/// parameters passed into the ReportStatusCode() service in the DXE Services Table.\r
+///\r
+typedef struct {\r
+  ///\r
+  /// The index pointing to the last recored being stored.\r
+  ///\r
+  UINT32   RecordIndex;\r
+  ///\r
+  /// The number of records being stored.\r
+  ///\r
+  UINT32   NumberOfRecords;\r
+  ///\r
+  /// The maximum number of records that can be stored.\r
+  ///\r
+  UINT32   MaxRecordsNumber;\r
+} RUNTIME_MEMORY_STATUSCODE_HEADER;\r
+\r
+///\r
+/// A structure that contains the parameters passed into the ReportStatusCode()\r
 /// service in the PEI Services Table.\r
 ///\r
 typedef struct {\r