StatusCodeDataTypeDebug.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
2N/A/** @file
2N/A This file defines the GUID and data structure used to pass DEBUG() macro
2N/A information to the Status Code Protocol and Status Code PPI.
2N/A
2N/ACopyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
2N/AThis program and the accompanying materials are licensed and made available under
2N/Athe terms and conditions of the BSD License that accompanies this distribution.
2N/AThe full text of the license may be found at
2N/Ahttp://opensource.org/licenses/bsd-license.php.
2N/A
2N/ATHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
2N/AWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
2N/A
2N/A**/
2N/A
2N/A#ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_
2N/A#define _STATUS_CODE_DATA_TYPE_DEBUG_H_
2N/A
2N/A///
2N/A/// The Global ID used to identify a structure of type EFI_DEBUG_INFO.
2N/A///
2N/A#define EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID \
2N/A { \
2N/A 0x9A4E9246, 0xD553, 0x11D5, { 0x87, 0xE2, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xb9 } \
2N/A }
2N/A
2N/A///
2N/A/// The maximum size of an EFI_DEBUG_INFO structure.
2N/A///
2N/A#define EFI_STATUS_CODE_DATA_MAX_SIZE 200
2N/A
2N/A///
2N/A/// This structure contains the ErrorLevel passed into the DEBUG() macro, followed
2N/A/// by a 96-byte buffer that contains the variable argument list passed to the
2N/A/// DEBUG() macro that has been converted to a BASE_LIST. The 96-byte buffer is
2N/A/// followed by a Null-terminated ASCII string that is the Format string passed
2N/A/// to the DEBUG() macro. The maximum size of this structure is defined by
2N/A/// EFI_STATUS_CODE_DATA_MAX_SIZE.
2N/A///
2N/Atypedef struct {
2N/A ///
2N/A /// The debug error level passed into a DEBUG() macro.
2N/A ///
2N/A UINT32 ErrorLevel;
2N/A} EFI_DEBUG_INFO;
2N/A
2N/Aextern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;
2N/A
2N/A#endif // _STATUS_CODE_DATA_TYPE_DEBUG_H_