|
OpenCore
1.0.5
OpenCore Bootloader
|
#include "BootManagementInternal.h"#include <Protocol/OcBootEntry.h>#include <Library/BaseLib.h>#include <Library/UefiBootServicesTableLib.h>#include <Library/MemoryAllocationLib.h>#include <Library/OcFileLib.h>#include <Library/OcDebugLogLib.h>Go to the source code of this file.
Data Structures | |
| struct | BEP_ADD_ENTRIES_CONTEXT |
Functions | |
| VOID | OcLocateBootEntryProtocolHandles (IN OUT EFI_HANDLE **EntryProtocolHandles, IN OUT UINTN *EntryProtocolHandleCount) |
| VOID | OcFreeBootEntryProtocolHandles (EFI_HANDLE **EntryProtocolHandles) |
| STATIC BOOLEAN EFIAPI | InternalAddEntriesFromProtocol (IN OUT OC_PICKER_CONTEXT *PickerContext, IN EFI_HANDLE BootEntryProtocolHandle, IN OC_BOOT_ENTRY_PROTOCOL *BootEntryProtocol, IN VOID *Context) |
| VOID | OcConsumeBootEntryProtocol (IN OUT OC_PICKER_CONTEXT *PickerContext, IN EFI_HANDLE *EntryProtocolHandles, IN UINTN EntryProtocolHandleCount, IN OC_CONSUME_ENTRY_PROTOCOL_ACTION Action, IN VOID *Context) |
| EFI_STATUS | OcAddEntriesFromBootEntryProtocol (IN OUT OC_BOOT_CONTEXT *BootContext, IN OUT OC_BOOT_FILESYSTEM *FileSystem, IN EFI_HANDLE *EntryProtocolHandles, IN UINTN EntryProtocolHandleCount, IN CONST VOID *DefaultEntryId, OPTIONAL IN BOOLEAN CreateDefault, IN BOOLEAN CreateForHotKey) |
Boot Entry Protocol.
Copyright (c) 2021, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file BootEntryProtocol.c.
| STATIC BOOLEAN EFIAPI InternalAddEntriesFromProtocol | ( | IN OUT OC_PICKER_CONTEXT * | PickerContext, |
| IN EFI_HANDLE | BootEntryProtocolHandle, | ||
| IN OC_BOOT_ENTRY_PROTOCOL * | BootEntryProtocol, | ||
| IN VOID * | Context ) |
Definition at line 72 of file BootEntryProtocol.c.
| EFI_STATUS OcAddEntriesFromBootEntryProtocol | ( | IN OUT OC_BOOT_CONTEXT * | BootContext, |
| IN OUT OC_BOOT_FILESYSTEM * | FileSystem, | ||
| IN EFI_HANDLE * | EntryProtocolHandles, | ||
| IN UINTN | EntryProtocolHandleCount, | ||
| IN CONST VOID * | DefaultEntryId, | ||
| OPTIONAL IN BOOLEAN | CreateDefault, | ||
| IN BOOLEAN | CreateForHotKey ) |
Request bootable entries from installed boot entry protocol drivers.
| [in,out] | BootContext | Context of filesystems. |
| [in,out] | FileSystem | Filesystem to scan for entries. |
| [in] | EntryProtocolHandles | Boot entry protocol handles, or NULL if none. |
| [in] | EntryProtocolHandleCount | Count of boot entry protocol handles. |
| [in] | DefaultEntryId | Id of saved default entry on this file system. |
| [in] | CreateDefault | Create default entry if TRUE, create all others otherwise. |
| [in] | CreateForHotKey | If TRUE default entry is being created for protocol hotkey, otherwise for NVRAM boot entry. |
| EFI_SUCCESS | At least one entry was created. |
Definition at line 239 of file BootEntryProtocol.c.
| VOID OcConsumeBootEntryProtocol | ( | IN OUT OC_PICKER_CONTEXT * | PickerContext, |
| IN EFI_HANDLE * | EntryProtocolHandles, | ||
| IN UINTN | EntryProtocolHandleCount, | ||
| IN OC_CONSUME_ENTRY_PROTOCOL_ACTION | Action, | ||
| IN VOID * | Context ) |
Consume boot entry protocol.
| [in,out] | PickerContext | Picker context. |
| [in] | EntryProtocolHandles | Boot entry protocol handles, or NULL if none. |
| [in] | EntryProtocolHandleCount | Count of boot entry protocol handles. |
| [in] | Action | Action to perform for each protocol instance. |
| [in] | Context | Context. |
Definition at line 187 of file BootEntryProtocol.c.
| VOID OcFreeBootEntryProtocolHandles | ( | EFI_HANDLE ** | EntryProtocolHandles | ) |
Free boot entry protocol handles.
| [in,out] | EntryProtocolHandles | Boot entry protocol handles, or NULL if none. |
Definition at line 57 of file BootEntryProtocol.c.
| VOID OcLocateBootEntryProtocolHandles | ( | IN OUT EFI_HANDLE ** | EntryProtocolHandles, |
| IN OUT UINTN * | EntryProtocolHandleCount ) |
Locate boot entry protocol handles.
| [in,out] | EntryProtocolHandles | Boot entry protocol handles, or NULL if none. |
| [in,out] | EntryProtocolHandleCount | Count of boot entry protocol handles. |
Definition at line 28 of file BootEntryProtocol.c.