]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/StatusCode/Pei/MemoryStausCodeWorker.c
Modules clean up.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / StatusCode / Pei / MemoryStausCodeWorker.c
index 195e3e2183304d58f6de3452ad01e528d4f3e10c..23b5130c7dd73f36b0d6803bf29cd285b1a1a948 100644 (file)
@@ -1,32 +1,27 @@
 /** @file\r
   Memory status code worker in PEI.\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
+  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:  MemoryStatusCodeWorker.c\r
 \r
 **/\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
-\r
 #include "PeiStatusCode.h"\r
 \r
 /**\r
-  Create one memory status code GUID'ed HOB, use PacketIndex \r
+  Create one memory status code GUID'ed HOB, use PacketIndex\r
   to identify the packet.\r
 \r
-  @param   PacketIndex    Index of records packet. \r
\r
+  @param   PacketIndex    Index of records packet.\r
+\r
   @return                 Always return pointer of memory status code packet.\r
 \r
 **/\r
@@ -43,8 +38,8 @@ CreateMemoryStatusCodePacket (
   //\r
   PacketHeader =\r
     (MEMORY_STATUSCODE_PACKET_HEADER *) BuildGuidHob (\r
-                                          &gMemoryStatusCodeRecordGuid, \r
-                                          PcdGet16 (PcdStatusCodeMemorySize) * \r
+                                          &gMemoryStatusCodeRecordGuid,\r
+                                          PcdGet16 (PcdStatusCodeMemorySize) *\r
                                           1024 +\r
                                           sizeof (MEMORY_STATUSCODE_PACKET_HEADER)\r
                                           );\r
@@ -61,9 +56,9 @@ CreateMemoryStatusCodePacket (
 \r
 /**\r
   Initialize memory status code.\r
-  Create one GUID'ed HOB with PCD defined size. If create required size \r
+  Create one GUID'ed HOB with PCD defined size. If create required size\r
   GUID'ed HOB failed, then ASSERT().\r
\r
+\r
   @return           The function always return EFI_SUCCESS\r
 \r
 **/\r
@@ -83,21 +78,21 @@ MemoryStatusCodeInitializeWorker (
 \r
 /**\r
   Report status code into GUID'ed HOB..\r
\r
+\r
   @param  CodeType      Indicates the type of status code being reported.  Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.\r
\r
-  @param  Value         Describes the current status of a hardware or software entity.  \r
-                        This included information about the class and subclass that is used to classify the entity \r
-                        as well as an operation.  For progress codes, the operation is the current activity. \r
-                        For error codes, it is the exception.  For debug codes, it is not defined at this time. \r
-                        Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.  \r
+\r
+  @param  Value         Describes the current status of a hardware or software entity.\r
+                        This included information about the class and subclass that is used to classify the entity\r
+                        as well as an operation.  For progress codes, the operation is the current activity.\r
+                        For error codes, it is the exception.  For debug codes, it is not defined at this time.\r
+                        Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.\r
                         Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.\r
\r
-  @param  Instance      The enumeration of a hardware or software entity within the system.  \r
-                        A system may contain multiple entities that match a class/subclass pairing. \r
-                        The instance differentiates between them.  An instance of 0 indicates that instance information is unavailable, \r
+\r
+  @param  Instance      The enumeration of a hardware or software entity within the system.\r
+                        A system may contain multiple entities that match a class/subclass pairing.\r
+                        The instance differentiates between them.  An instance of 0 indicates that instance information is unavailable,\r
                         not meaningful, or not relevant.  Valid instance numbers start with 1.\r
\r
+\r
   @return               The function always return EFI_SUCCESS.\r
 \r
 **/\r
@@ -140,11 +135,11 @@ MemoryStatusCodeReportWorker (
 \r
   if (NULL == Record) {\r
     //\r
-    // In order to save status code , create new packet. \r
+    // In order to save status code , create new packet.\r
     //\r
     PacketHeader = CreateMemoryStatusCodePacket (PacketIndex);\r
 \r
-    Record = (MEMORY_STATUSCODE_RECORD *) (PacketHeader + 1); \r
+    Record = (MEMORY_STATUSCODE_RECORD *) (PacketHeader + 1);\r
     Record = &Record[PacketHeader->RecordIndex++];\r
   }\r
 \r