OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcFirmwareRuntime.h
Go to the documentation of this file.
1
15#ifndef OC_FIRMWARE_RUNTIME_PROTOCOL_H
16#define OC_FIRMWARE_RUNTIME_PROTOCOL_H
17
18#include <Uefi.h>
19
20#define OC_FIRMWARE_RUNTIME_REVISION 12
21
26#define OC_FIRMWARE_RUNTIME_PROTOCOL_GUID \
27 { 0x570332E4, 0xFC50, 0x4B21, \
28 { 0xAB, 0xE8, 0xAE, 0x72, 0xF0, 0x5B, 0x4F, 0xF7 } }
29
70
76typedef
77VOID
79 OUT OC_FWRT_CONFIG *Config
80 );
81
87typedef
88VOID
90 IN CONST OC_FWRT_CONFIG *Config
91 );
92
98typedef
99VOID
101 IN CONST OC_FWRT_CONFIG *Config OPTIONAL
102 );
103
112typedef
113EFI_STATUS
115 IN EFI_GET_VARIABLE GetVariable,
116 OUT EFI_GET_VARIABLE *OrgGetVariable OPTIONAL
117 );
118
130typedef
131EFI_STATUS
133 IN EFI_SET_VIRTUAL_ADDRESS_MAP SetAddressMap OPTIONAL,
134 IN BOOLEAN Enabled
135 );
136
146typedef
147EFI_STATUS
148(EFIAPI *OC_FWRT_GET_EXEC_AREA)(
149 OUT EFI_PHYSICAL_ADDRESS *BaseAddress,
150 OUT UINTN *Pages
151 );
152
166
170extern EFI_GUID gOcFirmwareRuntimeProtocolGuid;
171
172#endif // OC_FIRMWARE_RUNTIME_PROTOCOL_H
EFI_STATUS(EFIAPI * OC_FWRT_GET_EXEC_AREA)(OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINTN *Pages)
VOID(EFIAPI * OC_FWRT_GET_CURRENT_CONFIG)(OUT OC_FWRT_CONFIG *Config)
EFI_STATUS(EFIAPI * OC_FWRT_ON_SET_ADDRESS_MAP)(IN EFI_SET_VIRTUAL_ADDRESS_MAP SetAddressMap OPTIONAL, IN BOOLEAN Enabled)
struct OC_FWRT_CONFIG_ OC_FWRT_CONFIG
VOID(EFIAPI * OC_FWRT_SET_OVERRIDE_CONFIG)(IN CONST OC_FWRT_CONFIG *Config OPTIONAL)
VOID(EFIAPI * OC_FWRT_SET_MAIN_CONFIG)(IN CONST OC_FWRT_CONFIG *Config)
EFI_STATUS(EFIAPI * OC_FWRT_ON_GET_VARIABLE)(IN EFI_GET_VARIABLE GetVariable, OUT EFI_GET_VARIABLE *OrgGetVariable OPTIONAL)
EFI_GUID gOcFirmwareRuntimeProtocolGuid
OC_FWRT_SET_OVERRIDE_CONFIG SetOverride
OC_FWRT_GET_CURRENT_CONFIG GetCurrent
OC_FWRT_ON_GET_VARIABLE OnGetVariable
OC_FWRT_GET_EXEC_AREA GetExecArea
OC_FWRT_ON_SET_ADDRESS_MAP OnSetAddressMap
OC_FWRT_SET_MAIN_CONFIG SetMain