TianoCore EDK2 master
Loading...
Searching...
No Matches
LinuxBootBm.c File Reference
#include <Uefi.h>
#include <Guid/EventGroup.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiBootManagerLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/PlatformBootManager.h>

Go to the source code of this file.

Functions

STATIC VOID PlatformRegisterFvBootOption (CONST EFI_GUID *FileGuid, CHAR16 *Description, UINT32 Attributes)
 
VOID EFIAPI PlatformBootManagerBeforeConsole (VOID)
 
VOID EFIAPI PlatformBootManagerAfterConsole (VOID)
 
VOID EFIAPI PlatformBootManagerWaitCallback (UINT16 TimeoutRemain)
 
VOID EFIAPI PlatformBootManagerUnableToBoot (VOID)
 

Detailed Description

Implementation for PlatformBootManagerLib library class interfaces.

Copyright (C) 2015-2016, Red Hat, Inc. Copyright (c) 2014 - 2019, ARM Ltd. All rights reserved.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2016, Linaro Ltd. All rights reserved.
Copyright (c) 2020 - 2021, Ampere Computing LLC. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file LinuxBootBm.c.

Function Documentation

◆ PlatformBootManagerAfterConsole()

VOID EFIAPI PlatformBootManagerAfterConsole ( VOID  )

Do the platform specific action after the console is connected.

Such as: Dynamically switch output mode; Signal console ready platform customized event; Run diagnostics like memory testing; Connect certain devices; Dispatch additional option roms.

Definition at line 136 of file LinuxBootBm.c.

◆ PlatformBootManagerBeforeConsole()

VOID EFIAPI PlatformBootManagerBeforeConsole ( VOID  )

Do the platform specific action before the console is connected.

Such as: Update console variable; Register new Driver#### or Boot####; Signal ReadyToLock event.

Definition at line 114 of file LinuxBootBm.c.

◆ PlatformBootManagerUnableToBoot()

VOID EFIAPI PlatformBootManagerUnableToBoot ( VOID  )

The function is called when no boot option could be launched, including platform recovery options and options pointing to applications built into firmware volumes.

If this function returns, BDS attempts to enter an infinite loop.

Definition at line 182 of file LinuxBootBm.c.

◆ PlatformBootManagerWaitCallback()

VOID EFIAPI PlatformBootManagerWaitCallback ( UINT16  TimeoutRemain)

This function is called each second during the boot manager waits the timeout.

Parameters
TimeoutRemainThe remaining timeout.

Definition at line 166 of file LinuxBootBm.c.

◆ PlatformRegisterFvBootOption()

STATIC VOID PlatformRegisterFvBootOption ( CONST EFI_GUID FileGuid,
CHAR16 *  Description,
UINT32  Attributes 
)

Register a boot option using a file GUID in the FV.

Parameters
FileGuidThe file GUID name in the FV.
DescriptionThe description of the boot option.
AttributesThe attributes of the boot option.

Definition at line 40 of file LinuxBootBm.c.