]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h
Remove status code modules' dependency on IntelFrameworkModulePkg.
[mirror_edk2.git] / MdeModulePkg / Include / Guid / StatusCodeDataTypeDebug.h
diff --git a/MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h b/MdeModulePkg/Include/Guid/StatusCodeDataTypeDebug.h
new file mode 100644 (file)
index 0000000..52e7c95
--- /dev/null
@@ -0,0 +1,49 @@
+/** @file\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
+\r
+**/\r
+\r
+#ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
+#define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r
+\r
+///\r
+/// Global ID used to identify a structure of type EFI_DEBUG_INFO\r
+///\r
+#define EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID \\r
+  { \\r
+    0x9A4E9246, 0xD553, 0x11D5, { 0x87, 0xE2, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xb9 } \\r
+  }\r
+\r
+///\r
+/// The maximum size of an EFI_DEBUG_INFO structure\r
+///\r
+#define EFI_STATUS_CODE_DATA_MAX_SIZE 200\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
+/// 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
+} EFI_DEBUG_INFO;\r
+\r
+extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;\r
+\r
+#endif // _STATUS_CODE_DATA_TYPE_DEBUG_H_\r