]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Include/Dxe/ArchProtocol/StatusCode.h
Remove the dependence to MdePkg
[mirror_edk2.git] / Tools / Source / TianoTools / Include / Dxe / ArchProtocol / StatusCode.h
1 /** @file
2 Status code Runtime Protocol as defined in the DXE CIS
3
4 The StatusCode () Tiano service is added to the EFI system table and the
5 EFI_STATUS_CODE_ARCH_PROTOCOL_GUID protocol is registered with a NULL
6 pointer.
7
8 No CRC of the EFI system table is required, as it is done in the DXE core.
9
10 This code abstracts Status Code reporting.
11
12 Copyright (c) 2006, Intel Corporation
13 All rights reserved. This program and the accompanying materials
14 are licensed and made available under the terms and conditions of the BSD License
15 which accompanies this distribution. The full text of the license may be found at
16 http://opensource.org/licenses/bsd-license.php
17
18 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
19 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20
21 Module Name: StatusCode.h
22
23 @par Revision Reference:
24 Version 0.91B.
25
26 **/
27
28 #ifndef __STATUS_CODE_RUNTIME_PROTOCOL_H__
29 #define __STATUS_CODE_RUNTIME_PROTOCOL_H__
30
31 #define EFI_STATUS_CODE_RUNTIME_PROTOCOL_GUID \
32 { 0xd2b2b828, 0x826, 0x48a7, { 0xb3, 0xdf, 0x98, 0x3c, 0x0, 0x60, 0x24, 0xf0 } }
33
34 /**
35 Provides an interface that a software module can call to report a status code.
36
37 @param Type Indicates the type of status code being reported.
38
39 @param Value Describes the current status of a hardware or software entity.
40 This included information about the class and subclass that is used to
41 classify the entity as well as an operation.
42
43 @param Instance The enumeration of a hardware or software entity within
44 the system. Valid instance numbers start with 1.
45
46 @param CallerId This optional parameter may be used to identify the caller.
47 This parameter allows the status code driver to apply different rules to
48 different callers.
49
50 @param Data This optional parameter may be used to pass additional data.
51
52 @retval EFI_SUCCESS The function completed successfully
53
54 @retval EFI_DEVICE_ERROR The function should not be completed due to a device error.
55
56 **/
57 typedef
58 EFI_STATUS
59 (EFIAPI *EFI_REPORT_STATUS_CODE) (
60 IN EFI_STATUS_CODE_TYPE Type,
61 IN EFI_STATUS_CODE_VALUE Value,
62 IN UINT32 Instance,
63 IN EFI_GUID *CallerId OPTIONAL,
64 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
65 );
66
67 /**
68 @par Protocol Description:
69 Provides the service required to report a status code to the platform firmware.
70 This protocol must be produced by a runtime DXE driver and may be consumed
71 only by the DXE Foundation.
72
73 @param ReportStatusCode Emit a status code.
74
75 **/
76 typedef struct _EFI_STATUS_CODE_PROTOCOL {
77 EFI_REPORT_STATUS_CODE ReportStatusCode;
78 } EFI_STATUS_CODE_PROTOCOL;
79
80 extern EFI_GUID gEfiStatusCodeRuntimeProtocolGuid;
81
82 #endif