VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Protocol/StatusCode.h

最後變更 在這個檔案是 99404,由 vboxsync 提交於 2 年 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.1 KB
 
1/** @file
2 Status code Runtime Protocol as defined in PI Specification 1.4a VOLUME 2 DXE
3
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef __STATUS_CODE_RUNTIME_PROTOCOL_H__
10#define __STATUS_CODE_RUNTIME_PROTOCOL_H__
11
12#define EFI_STATUS_CODE_RUNTIME_PROTOCOL_GUID \
13{ 0xd2b2b828, 0x826, 0x48a7, { 0xb3, 0xdf, 0x98, 0x3c, 0x0, 0x60, 0x24, 0xf0 } }
14
15/**
16 Provides an interface that a software module can call to report a status code.
17
18 @param Type Indicates the type of status code being reported.
19 @param Value Describes the current status of a hardware or software entity.
20 This included information about the class and subclass that is used to
21 classify the entity as well as an operation.
22 @param Instance The enumeration of a hardware or software entity within
23 the system. Valid instance numbers start with 1.
24 @param CallerId This optional parameter may be used to identify the caller.
25 This parameter allows the status code driver to apply different rules to
26 different callers.
27 @param Data This optional parameter may be used to pass additional data.
28
29 @retval EFI_SUCCESS The function completed successfully
30 @retval EFI_DEVICE_ERROR The function should not be completed due to a device error.
31
32**/
33typedef
34EFI_STATUS
35(EFIAPI *EFI_REPORT_STATUS_CODE)(
36 IN EFI_STATUS_CODE_TYPE Type,
37 IN EFI_STATUS_CODE_VALUE Value,
38 IN UINT32 Instance,
39 IN EFI_GUID *CallerId OPTIONAL,
40 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
41 );
42
43///
44/// Provides the service required to report a status code to the platform firmware.
45/// This protocol must be produced by a runtime DXE driver.
46///
47typedef struct _EFI_STATUS_CODE_PROTOCOL {
48 EFI_REPORT_STATUS_CODE ReportStatusCode;
49} EFI_STATUS_CODE_PROTOCOL;
50
51extern EFI_GUID gEfiStatusCodeRuntimeProtocolGuid;
52
53#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette