OpenCore
1.0.4
OpenCore Bootloader
|
#include <Guid/AppleVariable.h>
#include <IndustryStandard/AppleCsrConfig.h>
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.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_TOGGLE_SIP "Toggle SIP (%a)" |
#define | OC_MENU_TOGGLE_SIP_SHOW_CSR "Toggle SIP (0x%X:%a)" |
#define | OC_MENU_TOGGLE_SIP_MAX_SIZE |
Functions | |
STATIC EFI_STATUS | SystemActionSetSip (IN OUT OC_PICKER_CONTEXT *Context) |
STATIC EFI_STATUS EFIAPI | ToggleSipGetBootEntries (IN OUT OC_PICKER_CONTEXT *PickerContext, IN CONST EFI_HANDLE Device OPTIONAL, OUT OC_PICKER_ENTRY **Entries, OUT UINTN *NumEntries) |
STATIC VOID EFIAPI | ToggleSipFreeBootEntries (IN OC_PICKER_ENTRY **Entries, IN UINTN NumEntries) |
EFI_STATUS EFIAPI | UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC UINT32 | mCsrUserConfig |
STATIC UINT32 | mCsrNextConfig |
STATIC UINT32 | mAttributes |
STATIC BOOLEAN | mShowCsr |
STATIC OC_PICKER_ENTRY | mToggleSipBootEntries [1] |
STATIC OC_BOOT_ENTRY_PROTOCOL | mToggleSipBootEntryProtocol |
Boot entry protocol implementation of Toggle SIP boot picker entry.
Copyright (c) 2022, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file ToggleSipEntry.c.
#define OC_MENU_TOGGLE_SIP "Toggle SIP (%a)" |
Definition at line 20 of file ToggleSipEntry.c.
#define OC_MENU_TOGGLE_SIP_MAX_SIZE |
Definition at line 22 of file ToggleSipEntry.c.
#define OC_MENU_TOGGLE_SIP_SHOW_CSR "Toggle SIP (0x%X:%a)" |
Definition at line 21 of file ToggleSipEntry.c.
STATIC EFI_STATUS SystemActionSetSip | ( | IN OUT OC_PICKER_CONTEXT * | Context | ) |
Definition at line 34 of file ToggleSipEntry.c.
STATIC VOID EFIAPI ToggleSipFreeBootEntries | ( | IN OC_PICKER_ENTRY ** | Entries, |
IN UINTN | NumEntries ) |
< Discard const
Definition at line 193 of file ToggleSipEntry.c.
STATIC EFI_STATUS EFIAPI ToggleSipGetBootEntries | ( | IN OUT OC_PICKER_CONTEXT * | PickerContext, |
IN CONST EFI_HANDLE Device | OPTIONAL, | ||
OUT OC_PICKER_ENTRY ** | Entries, | ||
OUT UINTN * | NumEntries ) |
Definition at line 87 of file ToggleSipEntry.c.
EFI_STATUS EFIAPI UefiMain | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable ) |
< Defaults.
Definition at line 224 of file ToggleSipEntry.c.
STATIC UINT32 mAttributes |
Definition at line 29 of file ToggleSipEntry.c.
STATIC UINT32 mCsrNextConfig |
Definition at line 28 of file ToggleSipEntry.c.
STATIC UINT32 mCsrUserConfig |
Definition at line 27 of file ToggleSipEntry.c.
STATIC BOOLEAN mShowCsr |
Definition at line 30 of file ToggleSipEntry.c.
STATIC OC_PICKER_ENTRY mToggleSipBootEntries[1] |
Definition at line 67 of file ToggleSipEntry.c.
STATIC OC_BOOT_ENTRY_PROTOCOL mToggleSipBootEntryProtocol |
Definition at line 216 of file ToggleSipEntry.c.