]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/ReportStatusCodeLib.h
1) Add new BaseLib API GetPreviousNode()
[mirror_edk2.git] / MdePkg / Include / Library / ReportStatusCodeLib.h
index 8b71274d7382b4af9cf425328eb7238b63b031b7..90796ccd90725f2206bc2a36b83c9e4e82305c95 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides services to log status code records.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, 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
@@ -15,7 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __REPORT_STATUS_CODE_LIB_H__\r
 #define __REPORT_STATUS_CODE_LIB_H__\r
 \r
-#include <Pi/PiMultiPhase.h>\r
+#include <Uefi/UefiBaseType.h>\r
+#include <Pi/PiStatusCode.h>\r
 #include <Protocol/DevicePath.h>\r
 \r
 //\r
@@ -25,10 +26,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED             0x00000002\r
 #define REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED             0x00000004\r
 \r
-//\r
-// Extended Data structure definitions with EFI_STATUS_CODE_DATA headers removed\r
-//\r
-\r
 /**\r
   Converts a status code to an 8-bit POST code value.\r
 \r
@@ -138,7 +135,7 @@ EFIAPI
 ReportStatusCodeExtractDebugInfo (\r
   IN CONST EFI_STATUS_CODE_DATA  *Data, \r
   OUT UINT32                     *ErrorLevel,\r
-  OUT VA_LIST                    *Marker,\r
+  OUT BASE_LIST                  *Marker,\r
   OUT CHAR8                      **Format\r
   );\r
 \r
@@ -151,7 +148,7 @@ ReportStatusCodeExtractDebugInfo (
   passed in a zero instance, NULL extended data, and a caller ID of \r
   gEfiCallerIdGuid, which is the GUID for the module.  \r
   \r
-  ReportStatusCode()must actively prevent recusrsion.  If ReportStatusCode() \r
+  ReportStatusCode()must actively prevent recursion.  If ReportStatusCode() \r
   is called while processing another any other Report Status Code Library function,\r
   then ReportStatusCode() must return immediately.\r
 \r
@@ -178,9 +175,8 @@ ReportStatusCode (
   Allocates and fills in the extended data section of a status code with the \r
   Device Path Protocol specified by DevicePath.  This function is responsible \r
   for allocating a buffer large enough for the standard header and the device \r
-  path.  The standard header is filled in with a GUID of \r
-  gEfiStatusCodeSpecificDataGuid.  The status code is reported with a zero \r
-  instance and a caller ID of gEfiCallerIdGuid.\r
+  path.  The standard header is filled in with an implementation dependent GUID.\r
+  The status code is reported with a zero instance and a caller ID of gEfiCallerIdGuid.\r
 \r
   ReportStatusCodeWithDevicePath()must actively prevent recursion.  If \r
   ReportStatusCodeWithDevicePath() is called while processing another any other \r
@@ -220,7 +216,7 @@ ReportStatusCodeWithDevicePath (
   These data structure do not have the standard header, so this function is \r
   responsible for allocating a buffer large enough for the standard header and \r
   the extended data passed into this function.  The standard header is filled \r
-  in with a GUID of  gEfiStatusCodeSpecificDataGuid.  The status code is reported \r
+  in with an implementation dependent GUID.  The status code is reported \r
   with a zero instance and a caller ID of gEfiCallerIdGuid.\r
 \r
   ReportStatusCodeWithExtendedData()must actively prevent recursion.  If \r
@@ -266,7 +262,7 @@ ReportStatusCodeWithExtendedData (
   is responsible for allocating a buffer large enough for the standard header and \r
   the extended data passed into this function.  The standard header is filled in \r
   with a GUID specified by ExtendedDataGuid.  If ExtendedDataGuid is NULL, then a \r
-  GUID of gEfiStatusCodeSpecificDatauid is used.  The status code is reported with \r
+  GUID of gEfiStatusCodeSpecificDataGuid is used.  The status code is reported with \r
   an instance specified by Instance and a caller ID specified by CallerId.  If \r
   CallerId is NULL, then a caller ID of gEfiCallerIdGuid is used.\r
 \r
@@ -285,8 +281,7 @@ ReportStatusCodeWithExtendedData (
                             ID of gEfiCallerIdGuid is used.\r
   @param  ExtendedDataGuid  Pointer to the GUID for the extended data buffer.  \r
                             If this parameter is NULL, then a the status code \r
-                            standard header is filled in with \r
-                            gEfiStatusCodeSpecificDataGuid.\r
+                            standard header is filled in with an implementation dependent GUID.\r
   @param  ExtendedData      Pointer to the extended data buffer.  This is an \r
                             optional parameter that may be NULL.\r
   @param  ExtendedDataSize  The size, in bytes, of the extended data buffer.\r
@@ -472,8 +467,7 @@ ReportDebugCodeEnabled (
                             ID of gEfiCallerIdGuid is used.\r
   @param  ExtendedDataGuid  Pointer to the GUID for the extended data buffer.  \r
                             If this parameter is NULL, then a the status code \r
-                            standard header is filled in with \r
-                            gEfiStatusCodeSpecificDataGuid.\r
+                            standard header is filled in with an implementation dependent GUID.\r
   @param  ExtendedData      Pointer to the extended data buffer.  This is an \r
                             optional parameter that may be NULL.\r
   @param  ExtendedDataSize  The size, in bytes, of the extended data buffer.\r