]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Include / Guid / MemoryStatusCodeRecord.h
index d6c3243094baa46b0327b2d2720c42894621829e..a924c592c9ef3d5c8305154e162369cc5d6eb77f 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,47 +32,66 @@ 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
   ///\r
   /// Index of the packet.\r
   ///\r
-  UINT16  PacketIndex;\r
+  UINT16    PacketIndex;\r
   ///\r
   /// The number of active records in the packet.\r
   ///\r
-  UINT16  RecordIndex;\r
+  UINT16    RecordIndex;\r
   ///\r
   /// The maximum number of records that the packet can store.\r
   ///\r
-  UINT32  MaxRecordsNumber;\r
+  UINT32    MaxRecordsNumber;\r
 } 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
   ///\r
   /// Status Code type to be reported.\r
   ///\r
-  EFI_STATUS_CODE_TYPE   CodeType;\r
+  EFI_STATUS_CODE_TYPE     CodeType;\r
 \r
   ///\r
   /// An operation, plus value information about the class and subclass, used to\r
   /// classify the hardware and software entity.\r
   ///\r
-  EFI_STATUS_CODE_VALUE  Value;\r
+  EFI_STATUS_CODE_VALUE    Value;\r
 \r
   ///\r
   /// The enumeration of a hardware or software entity within\r
   /// the system. Valid instance numbers start with the number 1.\r
   ///\r
-  UINT32                 Instance;\r
+  UINT32                   Instance;\r
 } MEMORY_STATUSCODE_RECORD;\r
 \r
-extern EFI_GUID gMemoryStatusCodeRecordGuid;\r
+extern EFI_GUID  gMemoryStatusCodeRecordGuid;\r
 \r
 #endif\r