3a6064fa |
1 | /** @file\r |
ff517dee |
2 | This file defines the GUID and data structure used to pass DEBUG() macro \r |
3 | information to the Status Code Protocol and Status Code PPI.\r |
3a6064fa |
4 | \r |
dd632e25 |
5 | Copyright (c) 2007 - 2009, Intel Corporation\r |
3a6064fa |
6 | All rights reserved. This program and the accompanying materials\r |
7 | are licensed and made available under the terms and conditions of the BSD License\r |
8 | which accompanies this distribution. The full text of the license may be found at\r |
9 | http://opensource.org/licenses/bsd-license.php\r |
10 | \r |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
13 | \r |
14 | **/\r |
15 | \r |
16 | #ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r |
17 | #define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r |
18 | \r |
ff517dee |
19 | ///\r |
20 | /// Global ID used to identify a structure of type EFI_DEBUG_INFO\r |
21 | ///\r |
3a6064fa |
22 | #define EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID \\r |
ff517dee |
23 | { \\r |
24 | 0x9A4E9246, 0xD553, 0x11D5, { 0x87, 0xE2, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xb9 } \\r |
25 | }\r |
3a6064fa |
26 | \r |
ff517dee |
27 | ///\r |
28 | /// The maximum size of an EFI_DEBUG_INO structure\r |
29 | ///\r |
785e0c07 |
30 | #define EFI_STATUS_CODE_DATA_MAX_SIZE 200\r |
31 | \r |
ff517dee |
32 | ///\r |
97482d94 |
33 | /// This structure contains the ErrorLevel passed into the DEBUG() macro, followed \r |
ff517dee |
34 | /// by a 96-byte buffer that contains the variable argument list passed to the \r |
35 | // DEBUG() macro that has been converted to a BASE_LIST. The 96-byte buffer is \r |
97482d94 |
36 | /// followed by a Null-terminated ASCII string that is the Format string passed \r |
ff517dee |
37 | /// to the DEBUG() macro. The maximum size of this structure is defined by \r |
0e0ab706 |
38 | /// EFI_STATUS_CODE_DATA_MAX_SIZE.\r |
ff517dee |
39 | ///\r |
3a6064fa |
40 | typedef struct {\r |
ff517dee |
41 | ///\r |
42 | /// The debug error level passed into a DEBUG() macro.\r |
43 | ///\r |
3a6064fa |
44 | UINT32 ErrorLevel;\r |
3a6064fa |
45 | } EFI_DEBUG_INFO;\r |
46 | \r |
47 | extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;\r |
48 | \r |
49 | #endif // _STATUS_CODE_DATA_TYPE_DEBUG_H_\r |