/** @file DXE Chipset Services Library. This file contains only one function that is DxeCsSvcFvRecoveryInfo(). The function DxeCsSvcFvRecoveryInfo() use chipset services to provide information of recovery FV. *************************************************************************** * Copyright (c) 2012, 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 #include #include // // Global Variables (This Source File Only) // extern H2O_CHIPSET_SERVICES_PROTOCOL *mChipsetSvc; /** Get information of recovery FV. @param[out] RecoveryRegion recovery region table @param[out] NumberOfRegion number of recovery region @param[out] ChipsetEmuPeiMaskList Specified PEIMs don't to dispatch in recovery mode @retval EFI_SUCCESS Function returns successfully @retval EFI_UNSUPPORTED If the function is not implemented. */ EFI_STATUS DxeCsSvcFvRecoveryInfo ( OUT PEI_FV_DEFINITION **RecoveryRegion, OUT UINTN *NumberOfRegion, OUT EFI_GUID **ChipsetEmuPeiMaskList ) { // // Verify that the protocol interface structure contains the function // pointer and whether that function pointer is non-NULL. If not, return // an error. // if (mChipsetSvc == NULL || mChipsetSvc->Size < (OFFSET_OF(H2O_CHIPSET_SERVICES_PROTOCOL, FvRecoveryInfo) + sizeof(VOID*)) || mChipsetSvc->FvRecoveryInfo == NULL) { DEBUG ((EFI_D_ERROR, "H2O DXE Chipset Services can not be found or member FvRecoveryInfo() isn't implement!\n")); return EFI_UNSUPPORTED; } return mChipsetSvc->FvRecoveryInfo (RecoveryRegion, NumberOfRegion, ChipsetEmuPeiMaskList); }