OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | OC_VARIABLE_RUNTIME_PROTOCOL_ |
Macros | |
#define | OC_VARIABLE_RUNTIME_PROTOCOL_REVISION 1 |
#define | OC_VARIABLE_RUNTIME_PROTOCOL_GUID |
Typedefs | |
typedef EFI_STATUS(EFIAPI * | OC_VARIABLE_RUNTIME_PROTOCOL_LOAD_NVRAM) (IN OC_STORAGE_CONTEXT *StorageContext, IN OC_NVRAM_LEGACY_MAP *LegacyMap, IN BOOLEAN LegacyOverwrite) |
typedef EFI_STATUS(EFIAPI * | OC_VARIABLE_RUNTIME_PROTOCOL_SAVE_NVRAM) (VOID) |
typedef EFI_STATUS(EFIAPI * | OC_VARIABLE_RUNTIME_PROTOCOL_RESET_NVRAM) (VOID) |
typedef EFI_STATUS(EFIAPI * | OC_VARIABLE_RUNTIME_PROTOCOL_SWITCH_TO_FALLBACK) (VOID) |
typedef struct OC_VARIABLE_RUNTIME_PROTOCOL_ | OC_VARIABLE_RUNTIME_PROTOCOL |
Variables | |
EFI_GUID | gOcVariableRuntimeProtocolGuid |
Copyright (C) 2022, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file OcVariableRuntime.h.
#define OC_VARIABLE_RUNTIME_PROTOCOL_GUID |
Definition at line 22 of file OcVariableRuntime.h.
#define OC_VARIABLE_RUNTIME_PROTOCOL_REVISION 1 |
Variable runtime protocol version.
Definition at line 16 of file OcVariableRuntime.h.
typedef struct OC_VARIABLE_RUNTIME_PROTOCOL_ OC_VARIABLE_RUNTIME_PROTOCOL |
The structure exposed by OC_VARIABLE_RUNTIME_PROTOCOL.
typedef EFI_STATUS(EFIAPI * OC_VARIABLE_RUNTIME_PROTOCOL_LOAD_NVRAM) (IN OC_STORAGE_CONTEXT *StorageContext, IN OC_NVRAM_LEGACY_MAP *LegacyMap, IN BOOLEAN LegacyOverwrite) |
Load NVRAM from storage, applying legacy filter and overwrite settings.
[in] | StorageContext | OpenCore storage context. Saved for used by any subsequent SaveNvram call. |
[in] | LegacyMap | OpenCore legacy NVRAM map, stating which variables are allowed to be read/written. Saved for used by any subsequent SaveNvram call. |
[in] | LegacyOverwrite | OpenCore NVRAM LegacyOverwrite setting. |
EFI_INVALID_PARAMETER | StorageContext or NvramConfig is NULL. |
EFI_ALREADY_STARTED | Has been called already. |
EFI_NOT_FOUND | Invalid or missing NVRAM storage. |
EFI_UNSUPPORTED | Invalid NVRAM storage contents. |
EFI_SUCCESS | On success. |
Definition at line 42 of file OcVariableRuntime.h.
typedef EFI_STATUS(EFIAPI * OC_VARIABLE_RUNTIME_PROTOCOL_RESET_NVRAM) (VOID) |
Reset NVRAM. Uses storage context saved by required, prior call to LoadNvram.
EFI_NOT_READY | If called before LoadNvram. |
EFI_NOT_FOUND | Invalid or missing NVRAM storage. |
other | Other error from child function. |
EFI_SUCCESS | On success. |
Definition at line 75 of file OcVariableRuntime.h.
typedef EFI_STATUS(EFIAPI * OC_VARIABLE_RUNTIME_PROTOCOL_SAVE_NVRAM) (VOID) |
Save NVRAM to storage, applying legacy filter. Uses legacy map and storage context saved by required, prior call to LoadNvram.
EFI_NOT_READY | If called before LoadNvram. |
EFI_NOT_FOUND | Invalid or missing NVRAM storage. |
EFI_UNSUPPORTED | Invalid NVRAM storage contents. |
EFI_OUT_OF_RESOURCES | Out of memory. |
other | Other error from child function. |
EFI_SUCCESS | On success. |
Definition at line 61 of file OcVariableRuntime.h.
typedef EFI_STATUS(EFIAPI * OC_VARIABLE_RUNTIME_PROTOCOL_SWITCH_TO_FALLBACK) (VOID) |
Switch to fallback NVRAM. Uses storage context saved by required, prior call to LoadNvram. This works around the fact that we cannot save NVRAM changes during macOS installer reboots (which never start launch daemon). In existing implementation this works in combination with Launchd.command, which renames previous nvram.plist as nvram.fallback on each save of new file.
EFI_NOT_READY | If called before LoadNvram. |
EFI_NOT_FOUND | Invalid or missing NVRAM storage. |
EFI_ALREADY_STARTED | Already at fallback NVRAM. |
EFI_OUT_OF_RESOURCES | Out of memory. |
other | Other error from child function. |
EFI_SUCCESS | On success. |
Definition at line 95 of file OcVariableRuntime.h.
|
extern |