49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/** @file
|
|
PEI Chipset Services Library.
|
|
|
|
This file contains only one function that is PeiCsSvcSetSetupVariableDefault().
|
|
The function PeiCsSvcSetSetupVariableDefault() use chipset services to set defaul
|
|
variables when variable not found
|
|
|
|
;***************************************************************************
|
|
;* Copyright (c) 2017, 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/CmosLib.h>
|
|
#include <ChipsetSetupConfig.h>
|
|
#include <ChipsetCmos.h>
|
|
|
|
/**
|
|
When variable not found, to set default variables.
|
|
|
|
@param[in] SystemConfiguration A pointer to setup variables
|
|
|
|
@return EFI_SUCCESS Always return successfully
|
|
*/
|
|
EFI_STATUS
|
|
SetSetupVariableDefault (
|
|
IN VOID *SystemConfiguration
|
|
)
|
|
{
|
|
// CHIPSET_CONFIGURATION *SystemConfig;
|
|
|
|
// SystemConfig = (CHIPSET_CONFIGURATION *)SystemConfiguration;
|
|
// if (SystemConfig->SetupVariableInvalid) {
|
|
// //
|
|
// // Please sync with default settings in VFR files.
|
|
// //
|
|
|
|
// WriteExtCmos8 (R_XCMOS_INDEX, R_XCMOS_DATA, SetupNVFlag, NV_NOT_FOUND);
|
|
// } else {
|
|
// WriteExtCmos8 (R_XCMOS_INDEX, R_XCMOS_DATA, SetupNVFlag, NV_AVAILABLE);
|
|
// }
|
|
return EFI_SUCCESS;
|
|
}
|