alder_lake_bios/Intel/AlderLake/AlderLakeChipsetPkg/Library/PeiOemSvcChipsetLib/OemSvcUpdateFspsUpd.c

51 lines
2.1 KiB
C

/** @file
;******************************************************************************
;* Copyright (c) 2018, 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/PeiOemSvcChipsetLib.h>
#include <FspEas.h>
#include <FspsUpd.h>
/**
This function offers an interface to modify FSPS_UPD data before the FSP-S API be called.
@param[in,out] FspUpdDataPtr A pointer to the UPD data region data strcture address.
It must convert to FSPS_UPD structure for update FSPS UPD.
If you set this pointer to NULL, FSP API will use the
default FSP-S UPD settings in the binary.
@retval EFI_UNSUPPORTED Returns unsupported by default.
@retval EFI_MEDIA_CHANGED Alter the Configuration Parameter.
@retval EFI_SUCCESS The function performs the same operation as caller.
The caller will skip the specified behavior and assuming
that it has been handled completely by this function.
*/
EFI_STATUS
OemSvcUpdateFspsUpd (
IN OUT VOID **FspUpdDataPtr
)
{
FSPS_UPD *FspsUpd;
FspsUpd = (FSPS_UPD *)(*FspUpdDataPtr);
//
// Set this pointer to NULL, use the default FSP-S UPD settings in the binary.
// BUGBUG: When set the FspUpdDataPtr to NULL, will cause the system to hang in FSP binary,
// still can't use the default UPD data in binary to boot successfully.
//
// *FspUpdDataPtr = NULL;
return EFI_UNSUPPORTED;
}