OpenCore
1.0.4
OpenCore Bootloader
|
#include <Guid/AppleVariable.h>
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/OcDirectResetLib.h>
#include <Library/OcVariableLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/OcBootEntry.h>
Go to the source code of this file.
Macros | |
#define | OC_MENU_RESET_NVRAM_ID "reset_nvram" |
#define | OC_MENU_RESET_NVRAM_ENTRY "Reset NVRAM" |
Functions | |
STATIC VOID | WaitForChime (IN OUT OC_PICKER_CONTEXT *Context) |
STATIC EFI_STATUS | SystemActionResetNvram (IN OUT OC_PICKER_CONTEXT *PickerContext) |
STATIC EFI_STATUS EFIAPI | ResetNvramGetBootEntries (IN OUT OC_PICKER_CONTEXT *PickerContext, IN CONST EFI_HANDLE Device OPTIONAL, OUT OC_PICKER_ENTRY **Entries, OUT UINTN *NumEntries) |
STATIC CHAR8 *EFIAPI | ResetNvramCheckHotKeys (IN OUT OC_PICKER_CONTEXT *Context, IN UINTN NumKeys, IN APPLE_MODIFIER_MAP Modifiers, IN APPLE_KEY_CODE *Keys) |
EFI_STATUS EFIAPI | UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC BOOLEAN | mUseApple = FALSE |
STATIC BOOLEAN | mPreserveBoot = FALSE |
STATIC OC_PICKER_ENTRY | mResetNvramBootEntries [1] |
STATIC OC_BOOT_ENTRY_PROTOCOL | mResetNvramBootEntryProtocol |
Boot entry protocol implementation of Reset NVRAM boot picker entry.
Copyright (c) 2022, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file ResetNvramEntry.c.
#define OC_MENU_RESET_NVRAM_ENTRY "Reset NVRAM" |
Definition at line 20 of file ResetNvramEntry.c.
#define OC_MENU_RESET_NVRAM_ID "reset_nvram" |
Definition at line 19 of file ResetNvramEntry.c.
STATIC CHAR8 *EFIAPI ResetNvramCheckHotKeys | ( | IN OUT OC_PICKER_CONTEXT * | Context, |
IN UINTN | NumKeys, | ||
IN APPLE_MODIFIER_MAP | Modifiers, | ||
IN APPLE_KEY_CODE * | Keys ) |
Definition at line 119 of file ResetNvramEntry.c.
STATIC EFI_STATUS EFIAPI ResetNvramGetBootEntries | ( | IN OUT OC_PICKER_CONTEXT * | PickerContext, |
IN CONST EFI_HANDLE Device | OPTIONAL, | ||
OUT OC_PICKER_ENTRY ** | Entries, | ||
OUT UINTN * | NumEntries ) |
Definition at line 94 of file ResetNvramEntry.c.
STATIC EFI_STATUS SystemActionResetNvram | ( | IN OUT OC_PICKER_CONTEXT * | PickerContext | ) |
Definition at line 41 of file ResetNvramEntry.c.
EFI_STATUS EFIAPI UefiMain | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable ) |
Definition at line 155 of file ResetNvramEntry.c.
STATIC VOID WaitForChime | ( | IN OUT OC_PICKER_CONTEXT * | Context | ) |
Definition at line 27 of file ResetNvramEntry.c.
STATIC BOOLEAN mPreserveBoot = FALSE |
Definition at line 23 of file ResetNvramEntry.c.
STATIC OC_PICKER_ENTRY mResetNvramBootEntries[1] |
Definition at line 74 of file ResetNvramEntry.c.
STATIC OC_BOOT_ENTRY_PROTOCOL mResetNvramBootEntryProtocol |
Definition at line 146 of file ResetNvramEntry.c.
STATIC BOOLEAN mUseApple = FALSE |
Definition at line 22 of file ResetNvramEntry.c.