OpenCore
1.0.4
OpenCore Bootloader
|
#include <Uefi.h>
#include <Protocol/OcVariableRuntime.h>
#include <Protocol/OcFirmwareRuntime.h>
#include <Library/OcDirectResetLib.h>
#include <Library/OcVariableLib.h>
#include <Library/UefiBootServicesTableLib.h>
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS | InternalLocateVariableRuntimeProtocol (OC_VARIABLE_RUNTIME_PROTOCOL **OcVariableRuntimeProtocol) |
VOID | OcLoadLegacyNvram (IN OC_STORAGE_CONTEXT *Storage, IN OC_NVRAM_LEGACY_MAP *LegacyMap, IN BOOLEAN LegacyOverwrite, IN BOOLEAN RequestBootVarRouting) |
VOID EFIAPI | OcSaveLegacyNvram (VOID) |
VOID EFIAPI | OcResetLegacyNvram (VOID) |
VOID EFIAPI | OcSwitchToFallbackLegacyNvram (VOID) |
Methods wrapping calls to legacy NVRAM protocol from OpenCore.
Copyright (C) 2022, mikebeaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file LegacyNvramWrapper.c.
STATIC EFI_STATUS InternalLocateVariableRuntimeProtocol | ( | OC_VARIABLE_RUNTIME_PROTOCOL ** | OcVariableRuntimeProtocol | ) |
Definition at line 17 of file LegacyNvramWrapper.c.
VOID OcLoadLegacyNvram | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN OC_NVRAM_LEGACY_MAP * | LegacyMap, | ||
IN BOOLEAN | LegacyOverwrite, | ||
IN BOOLEAN | RequestBootVarRouting ) |
Load emulated NVRAM using installed protocol when present.
[in] | Storage | OpenCore storage. |
[in] | LegacyMap | OpenCore legacy NVRAM map, stating which variables are allowed to be read/written. |
[in] | LegacyOverwrite | Whether to overwrite any pre-existing variables found in emulated NVRAM. |
[in] | RequestBootVarRouting | Whether OpenCore boot variable routing is enabled. |
Definition at line 54 of file LegacyNvramWrapper.c.
VOID EFIAPI OcResetLegacyNvram | ( | VOID | ) |
Reset emulated NVRAM using installed protocol when present. If protocol is present, does not return and restarts system.
Definition at line 147 of file LegacyNvramWrapper.c.
VOID EFIAPI OcSaveLegacyNvram | ( | VOID | ) |
Save to emulated NVRAM using installed protocol when present.
Definition at line 124 of file LegacyNvramWrapper.c.
VOID EFIAPI OcSwitchToFallbackLegacyNvram | ( | VOID | ) |
Switch to fallback emulated NVRAM using installed protocol when present.
Definition at line 172 of file LegacyNvramWrapper.c.