TianoCore EDK2 master
Loading...
Searching...
No Matches
UnitTestBootLib.h File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SetBootNextDevice (VOID)
 

Detailed Description

Provides a library function that can be customized to set the platform to boot from USB on the next boot. This allows the test framework to reboot back to USB. Since boot managers are not all the same creating a lib to support platform customization will make porting to new code base/platform easier.

Copyright (c) Microsoft Corporation.
Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UnitTestBootLib.h.

Function Documentation

◆ SetBootNextDevice()

EFI_STATUS EFIAPI SetBootNextDevice ( VOID  )

Set the boot manager to boot from a specific device on the next boot. This should be set only for the next boot and shouldn't require any manual clean up

Return values
EFI_SUCCESSBoot device for next boot was set.
EFI_UNSUPPORTEDSetting the boot device for the next boot is not supportted.
OtherBoot device for next boot can not be set.

NULL implementation for UnitTestBootLib to allow simple compilation

Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent Set the boot manager to boot from a specific device on the next boot. This should be set only for the next boot and shouldn't require any manual clean up

Return values
EFI_SUCCESSBoot device for next boot was set.
EFI_UNSUPPORTEDSetting the boot device for the next boot is not supportted.
OtherBoot device for next boot can not be set.

Implement UnitTestBootLib using USB Class Boot option. This should be industry standard and should work on all platforms

Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent Set the boot manager to boot from a specific device on the next boot. This should be set only for the next boot and shouldn't require any manual clean up

Return values
EFI_SUCCESSBoot device for next boot was set.
EFI_UNSUPPORTEDSetting the boot device for the next boot is not supportted.
OtherBoot device for next boot can not be set.

Definition at line 21 of file UnitTestBootLibNull.c.