OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcBootstrap.c File Reference
#include <Library/OcMainLib.h>
#include <Uefi.h>
#include <Protocol/DevicePath.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/OcBootstrap.h>
#include <Protocol/OcInterface.h>
#include <Library/UefiLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcDevicePathLib.h>
#include <Library/OcFileLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include "OpenCanopy.h"
#include "BmfLib.h"
#include "GuiApp.h"

Go to the source code of this file.

Macros

#define DEFAULT_CURSOR_OFFSET_X   BOOT_CURSOR_OFFSET
 
#define DEFAULT_CURSOR_OFFSET_Y   112U
 

Functions

STATIC EFI_STATUS OcShowMenuByOcEnter (IN BOOT_PICKER_GUI_CONTEXT *GuiContext)
 
STATIC VOID OcShowMenuByOcLeave (VOID)
 
STATIC VOID OcSetInitialCursorOffset (VOID)
 
EFI_STATUS EFIAPI OcShowMenuByOc (IN OC_BOOT_CONTEXT *BootContext, IN OC_BOOT_ENTRY **BootEntries, OUT OC_BOOT_ENTRY **ChosenBootEntry)
 
EFI_STATUS EFIAPI OcShowPasswordByOc (IN OC_PICKER_CONTEXT *Context, IN OC_PRIVILEGE_LEVEL Level)
 
EFI_STATUS InternalContextConstruct (OUT BOOT_PICKER_GUI_CONTEXT *Context, IN OC_STORAGE_CONTEXT *Storage, IN OC_PICKER_CONTEXT *Picker)
 
STATIC EFI_STATUS EFIAPI GuiOcInterfacePopulate (IN OC_INTERFACE_PROTOCOL *This, IN OC_STORAGE_CONTEXT *Storage, IN OC_PICKER_CONTEXT *Context)
 
EFI_STATUS EFIAPI UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

BOOT_PICKER_GUI_CONTEXT mGuiContext
 
STATIC GUI_DRAWING_CONTEXT mDrawContext
 
STATIC EFI_CONSOLE_CONTROL_SCREEN_MODE mPreviousMode
 
STATIC OC_INTERFACE_PROTOCOL mOcInterface
 

Detailed Description

This file is part of OpenCanopy, OpenCore GUI.

Copyright (c) 2018-2019, Download-Fritz. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file OcBootstrap.c.

Macro Definition Documentation

◆ DEFAULT_CURSOR_OFFSET_X

#define DEFAULT_CURSOR_OFFSET_X   BOOT_CURSOR_OFFSET

Definition at line 37 of file OcBootstrap.c.

◆ DEFAULT_CURSOR_OFFSET_Y

#define DEFAULT_CURSOR_OFFSET_Y   112U

Definition at line 38 of file OcBootstrap.c.

Function Documentation

◆ GuiOcInterfacePopulate()

STATIC EFI_STATUS EFIAPI GuiOcInterfacePopulate ( IN OC_INTERFACE_PROTOCOL * This,
IN OC_STORAGE_CONTEXT * Storage,
IN OC_PICKER_CONTEXT * Context )

Definition at line 304 of file OcBootstrap.c.

◆ InternalContextConstruct()

EFI_STATUS InternalContextConstruct ( OUT BOOT_PICKER_GUI_CONTEXT * Context,
IN OC_STORAGE_CONTEXT * Storage,
IN OC_PICKER_CONTEXT * Picker )

Definition at line 389 of file GuiApp.c.

◆ OcSetInitialCursorOffset()

STATIC VOID OcSetInitialCursorOffset ( VOID )

Definition at line 79 of file OcBootstrap.c.

◆ OcShowMenuByOc()

EFI_STATUS EFIAPI OcShowMenuByOc ( IN OC_BOOT_CONTEXT * BootContext,
IN OC_BOOT_ENTRY ** BootEntries,
OUT OC_BOOT_ENTRY ** ChosenBootEntry )

some circumstances)

Definition at line 94 of file OcBootstrap.c.

◆ OcShowMenuByOcEnter()

STATIC EFI_STATUS OcShowMenuByOcEnter ( IN BOOT_PICKER_GUI_CONTEXT * GuiContext)

Definition at line 47 of file OcBootstrap.c.

◆ OcShowMenuByOcLeave()

STATIC VOID OcShowMenuByOcLeave ( VOID )

Definition at line 69 of file OcBootstrap.c.

◆ OcShowPasswordByOc()

EFI_STATUS EFIAPI OcShowPasswordByOc ( IN OC_PICKER_CONTEXT * Context,
IN OC_PRIVILEGE_LEVEL Level )

Definition at line 233 of file OcBootstrap.c.

◆ UefiMain()

EFI_STATUS EFIAPI UefiMain ( IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE * SystemTable )

Definition at line 330 of file OcBootstrap.c.

Variable Documentation

◆ mDrawContext

STATIC GUI_DRAWING_CONTEXT mDrawContext

Definition at line 42 of file OcBootstrap.c.

◆ mGuiContext

BOOT_PICKER_GUI_CONTEXT mGuiContext
extern

Definition at line 29 of file GuiApp.c.

◆ mOcInterface

STATIC OC_INTERFACE_PROTOCOL mOcInterface
Initial value:
= {
}
STATIC EFI_STATUS EFIAPI GuiOcInterfacePopulate(IN OC_INTERFACE_PROTOCOL *This, IN OC_STORAGE_CONTEXT *Storage, IN OC_PICKER_CONTEXT *Context)
#define OC_INTERFACE_REVISION
Definition OcInterface.h:27

Definition at line 323 of file OcBootstrap.c.

◆ mPreviousMode

STATIC EFI_CONSOLE_CONTROL_SCREEN_MODE mPreviousMode

Definition at line 43 of file OcBootstrap.c.