]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Guid / StatusCodeDataTypeDebug.h
index 52e7c95e73c0758286b6b7ff0fcfbfedfdcfc362..6f2688064b12e8c745525a96c52e41c37901c9f4 100644 (file)
@@ -1,23 +1,19 @@
 /** @file\r
-  This file defines the GUID and data structure used to pass DEBUG() macro \r
+  This file defines the GUID and data structure used to pass DEBUG() macro\r
   information to the Status Code Protocol and Status Code PPI.\r
 \r
-  Copyright (c) 2007 - 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
-  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) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 #ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
 #define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
 \r
+#include <Pi/PiStatusCode.h>\r
+\r
 ///\r
-/// Global ID used to identify a structure of type EFI_DEBUG_INFO\r
+/// The Global ID used to identify a structure of type EFI_DEBUG_INFO.\r
 ///\r
 #define EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID \\r
   { \\r
   }\r
 \r
 ///\r
-/// The maximum size of an EFI_DEBUG_INFO structure\r
+/// The maximum size of an EFI_DEBUG_INFO structure.\r
+///\r
+#define EFI_STATUS_CODE_DATA_MAX_SIZE  0x200\r
+\r
+///\r
+/// Define the maximum extended data size that is supported when a\r
+/// status code is reported.\r
 ///\r
-#define EFI_STATUS_CODE_DATA_MAX_SIZE 200\r
+#define MAX_EXTENDED_DATA_SIZE  (EFI_STATUS_CODE_DATA_MAX_SIZE + sizeof(EFI_STATUS_CODE_DATA))\r
 \r
 ///\r
-/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed \r
-/// by a 96-byte buffer that contains the variable argument list passed to the \r
-//  DEBUG() macro that has been converted to a BASE_LIST.  The 96-byte buffer is \r
-/// followed by a Null-terminated ASCII string that is the Format string passed \r
-/// to the DEBUG() macro.  The maximum size of this structure is defined by \r
+/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed\r
+/// by a 96-byte buffer that contains the variable argument list passed to the\r
+/// DEBUG() macro that has been converted to a BASE_LIST.  The 96-byte buffer is\r
+/// followed by a Null-terminated ASCII string that is the Format string passed\r
+/// to the DEBUG() macro.  The maximum size of this structure is defined by\r
 /// EFI_STATUS_CODE_DATA_MAX_SIZE.\r
 ///\r
 typedef struct {\r
   ///\r
   /// The debug error level passed into a DEBUG() macro.\r
   ///\r
-  UINT32  ErrorLevel;\r
+  UINT32    ErrorLevel;\r
 } EFI_DEBUG_INFO;\r
 \r
-extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;\r
+extern EFI_GUID  gEfiStatusCodeDataTypeDebugGuid;\r
 \r
 #endif // _STATUS_CODE_DATA_TYPE_DEBUG_H_\r