alder_lake_bios/Board/Oem/L05AlderLakePMultiBoardPkg/Library/DxeOemSvcFeatureLib/OemSvcSwitchFlipToBoot.c

51 lines
1.4 KiB
C

/** @file
Provides an interface for switch Flip to Boot.
;******************************************************************************
;* Copyright (c) 2020, Insyde Software Corp. All Rights Reserved.
;*
;* You may not reproduce, distribute, publish, display, perform, modify, adapt,
;* transmit, broadcast, present, recite, release, license or otherwise exploit
;* any part of this publication in any form, by any means, without the prior
;* written permission of Insyde Software Corporation.
;*
;******************************************************************************
*/
#include <Uefi.h>
#include <L05Config.h>
#ifdef LCFC_SUPPORT
#include <Library/LfcEcLib.h>
#endif
/**
Provides an interface for switch Flip to Boot.
@param TriggerPoint Trigger point for project reference.
@param L05FlipToBoot The switch setting of Flip to Boot.
@retval EFI_UNSUPPORTED Returns unsupported by default. The return status will not be referenced.
**/
EFI_STATUS
OemSvcSwitchFlipToBoot (
IN L05_OEM_SWITCH_TRIGGER_POINT_TYPE TriggerPoint,
IN UINT8 L05FlipToBoot
)
{
/*++
Todo:
Add project specific code in here.
--*/
#ifdef LCFC_SUPPORT
EFI_STATUS Status = EFI_SUCCESS;
Status = LfcEcLibSetFlipToBootMode(L05FlipToBoot);
return Status;
#else
return EFI_UNSUPPORTED;
#endif
}