]>
Commit | Line | Data |
---|---|---|
10c5d87e | 1 | /** @file\r |
d1102dba | 2 | This file defines the GUID and data structure used to pass DEBUG() macro\r |
10c5d87e | 3 | information to the Status Code Protocol and Status Code PPI.\r |
4 | \r | |
d1102dba | 5 | Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
10c5d87e | 7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef _STATUS_CODE_DATA_TYPE_DEBUG_H_\r | |
11 | #define _STATUS_CODE_DATA_TYPE_DEBUG_H_\r | |
12 | \r | |
6964b5c4 CL |
13 | #include <Pi/PiStatusCode.h>\r |
14 | \r | |
10c5d87e | 15 | ///\r |
64a80549 | 16 | /// The Global ID used to identify a structure of type EFI_DEBUG_INFO.\r |
10c5d87e | 17 | ///\r |
18 | #define EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID \\r | |
19 | { \\r | |
20 | 0x9A4E9246, 0xD553, 0x11D5, { 0x87, 0xE2, 0x00, 0x06, 0x29, 0x45, 0xC3, 0xb9 } \\r | |
21 | }\r | |
22 | \r | |
23 | ///\r | |
64a80549 | 24 | /// The maximum size of an EFI_DEBUG_INFO structure.\r |
10c5d87e | 25 | ///\r |
6964b5c4 CL |
26 | #define EFI_STATUS_CODE_DATA_MAX_SIZE 0x200\r |
27 | \r | |
28 | ///\r | |
29 | /// Define the maximum extended data size that is supported when a\r | |
30 | /// status code is reported.\r | |
31 | ///\r | |
32 | #define MAX_EXTENDED_DATA_SIZE (EFI_STATUS_CODE_DATA_MAX_SIZE + sizeof(EFI_STATUS_CODE_DATA))\r | |
10c5d87e | 33 | \r |
34 | ///\r | |
d1102dba LG |
35 | /// This structure contains the ErrorLevel passed into the DEBUG() macro, followed\r |
36 | /// by a 96-byte buffer that contains the variable argument list passed to the\r | |
37 | /// DEBUG() macro that has been converted to a BASE_LIST. The 96-byte buffer is\r | |
38 | /// followed by a Null-terminated ASCII string that is the Format string passed\r | |
39 | /// to the DEBUG() macro. The maximum size of this structure is defined by\r | |
10c5d87e | 40 | /// EFI_STATUS_CODE_DATA_MAX_SIZE.\r |
41 | ///\r | |
42 | typedef struct {\r | |
43 | ///\r | |
44 | /// The debug error level passed into a DEBUG() macro.\r | |
45 | ///\r | |
1436aea4 | 46 | UINT32 ErrorLevel;\r |
10c5d87e | 47 | } EFI_DEBUG_INFO;\r |
48 | \r | |
1436aea4 | 49 | extern EFI_GUID gEfiStatusCodeDataTypeDebugGuid;\r |
10c5d87e | 50 | \r |
51 | #endif // _STATUS_CODE_DATA_TYPE_DEBUG_H_\r |