ICE_TEA_BIOS/Board/Oem/L05AlderLakePMultiBoardPkg/Library/SmmOemSvcKernelLib/OemSvcPowerButtonCallback.c
LCFC\AiXia.Jiang a870bff2f4 1.Frist commit
2022-09-30 14:59:06 +08:00

51 lines
1.7 KiB
C

/** @file
This service belongs to the event of power button.
When power button event is triggered, this service will be called.
OEM can add specific code in this service, if they want to do something when power button event occur.
;******************************************************************************
;* Copyright (c) 2012, Insyde Software Corporation. 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/SmmOemSvcKernelLib.h>
//_Start_L05_HDD_SPIN_DOWN_
#include "L05Hook/HddSpinDown.h"
//_End_L05_HDD_SPIN_DOWN_
/**
This service belongs to the event of power button.
When power button event is triggered, this service will be called.
OEM can add specific code in this service, if they want to do something when power button event occur.
@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 Base on OEM design.
**/
EFI_STATUS
OemSvcPowerButtonCallback (
VOID
)
{
/*++
Todo:
Add project specific code in here.
--*/
//_Start_L05_HDD_SPIN_DOWN_
#ifdef L05_ALL_FEATURE_ENABLE
HddSpinDownFunc ();
#endif
//_End_L05_HDD_SPIN_DOWN_
return EFI_UNSUPPORTED;
}