alder_lake_bios/Board/Intel/AlderLakeSMultiBoardPkg/Library/DxeOemSvcKernelLib/OemSvcChangeVbiosBootDisplay.c

53 lines
1.6 KiB
C

/** @file
Provide OEM to change Vbios boot-display under dual mode.
;******************************************************************************
;* Copyright (c) 2013, 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 <Library/DxeOemSvcKernelLib.h>
#include <Library/UefiBootServicesTableLib.h>
extern EFI_GUID gEfiChangeVbiosBootDisplayProtocolGuid;
/**
Allows OEM to change Vbios boot-display under dual mode.
@param Base on OEM design.
@retval EFI_UNSUPPORTED Returns unsupported by default.
@retval EFI_SUCCESS The service is customized in the project.
@retval EFI_MEDIA_CHANGED The value of IN OUT parameter is changed.
@retval Others Depends on customization.
**/
EFI_STATUS
OemSvcChangeVbiosBootDisplay (
VOID
)
{
/*++
Todo:
Add project specific code in here.
--*/
EFI_HANDLE pHandle;
EFI_STATUS Status;
pHandle = NULL;
Status = gBS->InstallProtocolInterface (
&pHandle,
&gEfiChangeVbiosBootDisplayProtocolGuid,
EFI_NATIVE_INTERFACE,
NULL
);
return EFI_MEDIA_CHANGED;
}