VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Include/Guid/VariableRuntimeCacheInfo.h

Last change on this file was 108794, checked in by vboxsync, 3 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1/** @file
2 This Variable Runtime Cache Info HOB is used to store the address
3 and the size of the buffer that will be used for variable runtime
4 service when the PcdEnableVariableRuntimeCache is TRUE.
5
6 Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
7
8 SPDX-License-Identifier: BSD-2-Clause-Patent
9
10**/
11
12#ifndef VARIABLE_RUNTIME_CACHE_INFO_H_
13#define VARIABLE_RUNTIME_CACHE_INFO_H_
14
15#define VARIABLE_RUNTIME_CACHE_INFO_HOB_REVISION 1
16
17#define VARIABLE_RUNTIME_CACHE_INFO_GUID \
18 { \
19 0x0f472f7d, 0x6713, 0x4915, {0x96, 0x14, 0x5d, 0xda, 0x28, 0x40, 0x10, 0x56} \
20 }
21
22typedef struct {
23 ///
24 /// TRUE indicates GetVariable () or GetNextVariable () is being called.
25 /// When the value is FALSE, the given update (and any other pending updates)
26 /// can be flushed to the runtime cache.
27 ///
28 BOOLEAN ReadLock;
29 ///
30 /// TRUE indicates there is pending update for the given variable store needed
31 /// to be flushed to the runtime cache.
32 ///
33 BOOLEAN PendingUpdate;
34 ///
35 /// TRUE indicates all HOB variables have been flushed in flash.
36 ///
37 BOOLEAN HobFlushComplete;
38} CACHE_INFO_FLAG;
39
40typedef struct {
41 EFI_PHYSICAL_ADDRESS CacheInfoFlagBuffer;
42 ///
43 /// Base address of the runtime Hob variable cache Buffer.
44 ///
45 EFI_PHYSICAL_ADDRESS RuntimeHobCacheBuffer;
46 UINT64 RuntimeHobCachePages;
47 ///
48 /// Base address of the non-volatile variable runtime cache Buffer.
49 ///
50 EFI_PHYSICAL_ADDRESS RuntimeNvCacheBuffer;
51 UINT64 RuntimeNvCachePages;
52 ///
53 /// Base address of the volatile variable runtime cache Buffer.
54 ///
55 EFI_PHYSICAL_ADDRESS RuntimeVolatileCacheBuffer;
56 UINT64 RuntimeVolatileCachePages;
57} VARIABLE_RUNTIME_CACHE_INFO;
58
59extern EFI_GUID gEdkiiVariableRuntimeCacheInfoHobGuid;
60
61#endif
Note: See TracBrowser for help on using the repository browser.

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