VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Include/Protocol/EsrtManagement.h@ 99404

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

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

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.4 KB
 
1/** @file
2 The Esrt Management Protocol used to register/set/update an updatable firmware resource .
3
4Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef _ESRT_MANAGEMENT_H_
10#define _ESRT_MANAGEMENT_H_
11
12#include <Guid/SystemResourceTable.h>
13
14///
15/// Global ID for the ESRT_MANAGEMENT_PROTOCOL.
16///
17#define ESRT_MANAGEMENT_PROTOCOL_GUID \
18 { \
19 0xa340c064, 0x723c, 0x4a9c, { 0xa4, 0xdd, 0xd5, 0xb4, 0x7a, 0x26, 0xfb, 0xb0 } \
20 }
21
22///
23/// Forward declaration for the _ESRT_MANAGEMENT_PROTOCOL.
24///
25typedef struct _ESRT_MANAGEMENT_PROTOCOL ESRT_MANAGEMENT_PROTOCOL;
26
27/**
28 Get Variable name and data by Esrt Entry FwClass
29
30 @param[in] FwClass FwClass of Esrt entry to get
31 @param[in out] Entry Esrt entry returned
32
33 @retval EFI_SUCCESS The variable saving this Esrt Entry exists.
34 @retval EF_NOT_FOUND No correct variable found.
35
36**/
37typedef
38EFI_STATUS
39(EFIAPI *GET_ESRT_ENTRY)(
40 IN EFI_GUID *FwClass,
41 IN OUT EFI_SYSTEM_RESOURCE_ENTRY *Entry
42 );
43
44/**
45 Update one ESRT entry in ESRT Cache.
46
47 @param[in] Entry Esrt entry to be updated
48
49 @retval EFI_SUCCESS Successfully update an ESRT entry in cache.
50 @retval EFI_INVALID_PARAMETER Entry does't exist in ESRT Cache
51 @retval EFI_WRITE_PROTECTED ESRT Cache repositoy is locked
52
53**/
54typedef
55EFI_STATUS
56(EFIAPI *UPDATE_ESRT_ENTRY)(
57 IN EFI_SYSTEM_RESOURCE_ENTRY *Entry
58 );
59
60/**
61 Non-FMP instance to unregister Esrt Entry from ESRT Cache.
62
63 @param[in] FwClass FwClass of Esrt entry to Unregister
64
65 @retval EFI_SUCCESS Insert all entries Successfully
66 @retval EFI_NOT_FOUND FwClass does not exsit
67
68**/
69typedef
70EFI_STATUS
71(EFIAPI *UNREGISTER_ESRT_ENTRY)(
72 IN EFI_GUID *FwClass
73 );
74
75/**
76 Non-FMP instance to register one ESRT entry into ESRT Cache.
77
78 @param[in] Entry Esrt entry to be set
79
80 @retval EFI_SUCCESS Successfully set a variable.
81 @retval EFI_INVALID_PARAMETER ESRT Entry is already exist
82 @retval EFI_OUT_OF_RESOURCES Non-FMP ESRT repository is full
83
84**/
85typedef
86EFI_STATUS
87(EFIAPI *REGISTER_ESRT_ENTRY)(
88 IN EFI_SYSTEM_RESOURCE_ENTRY *Entry
89 );
90
91/**
92 This function syn up Cached ESRT with data from FMP instances
93 Function should be called after Connect All in order to locate all FMP protocols
94 installed
95
96 @retval EFI_SUCCESS Successfully sync cache repository from FMP instances
97 @retval EFI_NOT_FOUND No FMP Instance are found
98 @retval EFI_OUT_OF_RESOURCES Resource allocaton fail
99
100**/
101typedef
102EFI_STATUS
103(EFIAPI *SYNC_ESRT_FMP)(
104 VOID
105 );
106
107/**
108 This function locks up Esrt repository to be readonly. It should be called
109 before gEfiEndOfDxeEventGroupGuid event signaled
110
111 @retval EFI_SUCCESS Locks up FMP Non-FMP repository successfully
112
113**/
114typedef
115EFI_STATUS
116(EFIAPI *LOCK_ESRT_REPOSITORY)(
117 VOID
118 );
119
120struct _ESRT_MANAGEMENT_PROTOCOL {
121 GET_ESRT_ENTRY GetEsrtEntry;
122 UPDATE_ESRT_ENTRY UpdateEsrtEntry;
123 REGISTER_ESRT_ENTRY RegisterEsrtEntry;
124 UNREGISTER_ESRT_ENTRY UnRegisterEsrtEntry;
125 SYNC_ESRT_FMP SyncEsrtFmp;
126 LOCK_ESRT_REPOSITORY LockEsrtRepository;
127};
128
129extern EFI_GUID gEsrtManagementProtocolGuid;
130
131#endif // #ifndef _ESRT_MANAGEMENT_H_
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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