]>
Commit | Line | Data |
---|---|---|
d1f95000 | 1 | /** @file\r |
28c1711d | 2 | Status code Runtime Protocol as defined in PI Specification 1.4a VOLUME 2 DXE\r |
d1f95000 | 3 | \r |
9095d37b LG |
4 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
d1f95000 | 9 | \r |
9095d37b LG |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
d1f95000 | 12 | \r |
d1f95000 | 13 | **/\r |
14 | \r | |
15 | #ifndef __STATUS_CODE_RUNTIME_PROTOCOL_H__\r | |
16 | #define __STATUS_CODE_RUNTIME_PROTOCOL_H__\r | |
17 | \r | |
18 | #define EFI_STATUS_CODE_RUNTIME_PROTOCOL_GUID \\r | |
19 | { 0xd2b2b828, 0x826, 0x48a7, { 0xb3, 0xdf, 0x98, 0x3c, 0x0, 0x60, 0x24, 0xf0 } }\r | |
20 | \r | |
21 | /**\r | |
22 | Provides an interface that a software module can call to report a status code.\r | |
23 | \r | |
24 | @param Type Indicates the type of status code being reported.\r | |
25 | @param Value Describes the current status of a hardware or software entity.\r | |
26 | This included information about the class and subclass that is used to\r | |
27 | classify the entity as well as an operation.\r | |
28 | @param Instance The enumeration of a hardware or software entity within\r | |
29 | the system. Valid instance numbers start with 1.\r | |
30 | @param CallerId This optional parameter may be used to identify the caller.\r | |
31 | This parameter allows the status code driver to apply different rules to\r | |
32 | different callers.\r | |
33 | @param Data This optional parameter may be used to pass additional data.\r | |
34 | \r | |
35 | @retval EFI_SUCCESS The function completed successfully\r | |
36 | @retval EFI_DEVICE_ERROR The function should not be completed due to a device error.\r | |
37 | \r | |
38 | **/\r | |
39 | typedef\r | |
ec0ccdda | 40 | EFI_STATUS\r |
8b13229b | 41 | (EFIAPI *EFI_REPORT_STATUS_CODE)(\r |
d1f95000 | 42 | IN EFI_STATUS_CODE_TYPE Type,\r |
43 | IN EFI_STATUS_CODE_VALUE Value,\r | |
44 | IN UINT32 Instance,\r | |
45 | IN EFI_GUID *CallerId OPTIONAL,\r | |
46 | IN EFI_STATUS_CODE_DATA *Data OPTIONAL\r | |
47 | );\r | |
48 | \r | |
44717a39 | 49 | ///\r |
50 | /// Provides the service required to report a status code to the platform firmware.\r | |
28c1711d | 51 | /// This protocol must be produced by a runtime DXE driver.\r |
44717a39 | 52 | ///\r |
d1f95000 | 53 | typedef struct _EFI_STATUS_CODE_PROTOCOL {\r |
54 | EFI_REPORT_STATUS_CODE ReportStatusCode;\r | |
55 | } EFI_STATUS_CODE_PROTOCOL;\r | |
56 | \r | |
57 | extern EFI_GUID gEfiStatusCodeRuntimeProtocolGuid;\r | |
58 | \r | |
59 | #endif\r |