]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.h
Modules clean up.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / StatusCode / Dxe / DxeStatusCode.h
index 288e3988051b190bc5c42a35c14ca2544b244f81..9762313e6ef38c02fc6ff936b307d8a6c87b882b 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
 /*++\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
 --*/\r
 \r
 \r
 --*/\r
 \r
@@ -46,7 +46,7 @@
 #include <Library/OemHookStatusCodeLib.h>\r
 \r
 //\r
 #include <Library/OemHookStatusCodeLib.h>\r
 \r
 //\r
-// Data hub worker definition \r
+// Data hub worker definition\r
 //\r
 #define MAX_NUMBER_DATAHUB_RECORDS                1000\r
 #define DATAHUB_BYTES_PER_RECORD                  EFI_STATUS_CODE_DATA_MAX_SIZE\r
 //\r
 #define MAX_NUMBER_DATAHUB_RECORDS                1000\r
 #define DATAHUB_BYTES_PER_RECORD                  EFI_STATUS_CODE_DATA_MAX_SIZE\r
@@ -56,8 +56,8 @@
 //\r
 // Address type of pointer.\r
 // The point type always equal to PHYSICAL_MODE on IA32/X64/EBC architecture\r
 //\r
 // Address type of pointer.\r
 // The point type always equal to PHYSICAL_MODE on IA32/X64/EBC architecture\r
-// Otherwise, VIRTUAL_MODE/PHYSICAL_MODE would be used on Ipf architecture, \r
-// \r
+// Otherwise, VIRTUAL_MODE/PHYSICAL_MODE would be used on Ipf architecture,\r
+//\r
 typedef enum {\r
   PHYSICAL_MODE,\r
   VIRTUAL_MODE\r
 typedef enum {\r
   PHYSICAL_MODE,\r
   VIRTUAL_MODE\r
@@ -72,8 +72,8 @@ typedef struct {
 \r
 \r
 //\r
 \r
 \r
 //\r
-// Runtime memory status code worker definition \r
-// \r
+// Runtime memory status code worker definition\r
+//\r
 typedef struct {\r
   UINT32   RecordIndex;\r
   UINT32   NumberOfRecords;\r
 typedef struct {\r
   UINT32   RecordIndex;\r
   UINT32   NumberOfRecords;\r
@@ -83,22 +83,22 @@ typedef struct {
 \r
 typedef struct {\r
   //\r
 \r
 typedef struct {\r
   //\r
-  // Report operation nest status. \r
+  // Report operation nest status.\r
   // If it is set, then the report operation has nested.\r
   // If it is set, then the report operation has nested.\r
-  // \r
+  //\r
   UINT32                            StatusCodeNestStatus;\r
   //\r
   // Runtime status code management header, the records buffer is following it.\r
   UINT32                            StatusCodeNestStatus;\r
   //\r
   // Runtime status code management header, the records buffer is following it.\r
-  // \r
+  //\r
   RUNTIME_MEMORY_STATUSCODE_HEADER  *RtMemoryStatusCodeTable[2];\r
 } DXE_STATUS_CODE_CONTROLLER;\r
 \r
 \r
 /**\r
   RUNTIME_MEMORY_STATUSCODE_HEADER  *RtMemoryStatusCodeTable[2];\r
 } DXE_STATUS_CODE_CONTROLLER;\r
 \r
 \r
 /**\r
-  \r
-  Dispatch initialization request to sub status code devices based on \r
+\r
+  Dispatch initialization request to sub status code devices based on\r
   customized feature flags.\r
   customized feature flags.\r
\r
+\r
 **/\r
 VOID\r
 InitializationDispatcherWorker (\r
 **/\r
 VOID\r
 InitializationDispatcherWorker (\r
@@ -108,7 +108,7 @@ InitializationDispatcherWorker (
 \r
 /**\r
   Initialize serial status code worker.\r
 \r
 /**\r
   Initialize serial status code worker.\r
\r
+\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
@@ -120,29 +120,29 @@ EfiSerialStatusCodeInitializeWorker (
 \r
 /**\r
   Convert status code value and extended data to readable ASCII string, send string to serial I/O device.\r
 \r
 /**\r
   Convert status code value and extended data to readable ASCII string, send string to serial I/O device.\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
   @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
                         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
                         not meaningful, or not relevant.  Valid instance numbers start with 1.\r
 \r
 \r
-  @param  CallerId      This optional parameter may be used to identify the caller. \r
-                        This parameter allows the status code driver to apply different rules to different callers. \r
+  @param  CallerId      This optional parameter may be used to identify the caller.\r
+                        This parameter allows the status code driver to apply different rules to different callers.\r
                         Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.\r
 \r
 \r
   @param  Data          This optional parameter may be used to pass additional data\r
                         Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.\r
 \r
 \r
   @param  Data          This optional parameter may be used to pass additional data\r
\r
+\r
   @retval EFI_SUCCESS         Success to report status code to serial I/O.\r
   @retval EFI_DEVICE_ERROR    EFI serial device can not work after ExitBootService() is called .\r
 \r
   @retval EFI_SUCCESS         Success to report status code to serial I/O.\r
   @retval EFI_DEVICE_ERROR    EFI serial device can not work after ExitBootService() is called .\r
 \r
@@ -158,7 +158,7 @@ SerialStatusCodeReportWorker (
 \r
 /**\r
   Initialize runtime memory status code.\r
 \r
 /**\r
   Initialize runtime memory status code.\r
\r
+\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
@@ -168,26 +168,26 @@ RtMemoryStatusCodeInitializeWorker (
   );\r
 \r
 /**\r
   );\r
 \r
 /**\r
-  Report status code into runtime memory. If the runtime pool is full, roll back to the \r
+  Report status code into runtime memory. If the runtime pool is full, roll back to the\r
   first record and overwrite it.\r
   first record and overwrite it.\r
\r
-  @param  RtMemoryStatusCodeTable      \r
+\r
+  @param  RtMemoryStatusCodeTable\r
                         Point to Runtime memory table header.\r
 \r
   @param  CodeType      Indicates the type of status code being reported.  Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.\r
                         Point to Runtime memory table header.\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
                         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
                         not meaningful, or not relevant.  Valid instance numbers start with 1.\r
\r
+\r
   @return               The function always return EFI_SUCCESS.\r
 \r
 **/\r
   @return               The function always return EFI_SUCCESS.\r
 \r
 **/\r
@@ -202,7 +202,7 @@ RtMemoryStatusCodeReportWorker (
 /**\r
   Initialize data hubstatus code.\r
   Create a data hub listener.\r
 /**\r
   Initialize data hubstatus code.\r
   Create a data hub listener.\r
\r
+\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
@@ -214,29 +214,29 @@ DataHubStatusCodeInitializeWorker (
 \r
 /**\r
   Report status code into DataHub.\r
 \r
 /**\r
   Report status code into DataHub.\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
   @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
                         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
                         not meaningful, or not relevant.  Valid instance numbers start with 1.\r
 \r
 \r
-  @param  CallerId      This optional parameter may be used to identify the caller. \r
-                        This parameter allows the status code driver to apply different rules to different callers. \r
+  @param  CallerId      This optional parameter may be used to identify the caller.\r
+                        This parameter allows the status code driver to apply different rules to different callers.\r
                         Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.\r
 \r
 \r
   @param  Data          This optional parameter may be used to pass additional data\r
                         Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.\r
 \r
 \r
   @param  Data          This optional parameter may be used to pass additional data\r
\r
+\r
   @retval EFI_OUT_OF_RESOURCES   Can not acquire record buffer.\r
   @retval EFI_DEVICE_ERROR       EFI serial device can not work after ExitBootService() is called .\r
   @retval EFI_SUCCESS            Success to cache status code and signal log data event.\r
   @retval EFI_OUT_OF_RESOURCES   Can not acquire record buffer.\r
   @retval EFI_DEVICE_ERROR       EFI serial device can not work after ExitBootService() is called .\r
   @retval EFI_SUCCESS            Success to cache status code and signal log data event.\r
@@ -274,7 +274,7 @@ DxeStatusCodeDriverEntry (
 \r
 //\r
 // declaration of DXE status code controller.\r
 \r
 //\r
 // declaration of DXE status code controller.\r
-// \r
+//\r
 extern DXE_STATUS_CODE_CONTROLLER gDxeStatusCode;\r
 \r
 #endif\r
 extern DXE_STATUS_CODE_CONTROLLER gDxeStatusCode;\r
 \r
 #endif\r