+++ /dev/null
-/** @file\r
- In EndOfPei notify, it will call FspNotifyPhase API.\r
-\r
- Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-\r
-#include "FspInitPei.h"\r
-\r
-/**\r
- This function handles S3 resume task at the end of PEI\r
-\r
- @param[in] PeiServices Pointer to PEI Services Table.\r
- @param[in] NotifyDesc Pointer to the descriptor for the Notification event that\r
- caused this function to execute.\r
- @param[in] Ppi Pointer to the PPI data associated with this function.\r
-\r
- @retval EFI_STATUS Always return EFI_SUCCESS\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-S3EndOfPeiNotify (\r
- IN EFI_PEI_SERVICES **PeiServices,\r
- IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc,\r
- IN VOID *Ppi\r
- );\r
-\r
-EFI_PEI_NOTIFY_DESCRIPTOR mS3EndOfPeiNotifyDesc = {\r
- (EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
- &gEfiEndOfPeiSignalPpiGuid,\r
- S3EndOfPeiNotify\r
-};\r
-\r
-/**\r
- This function handles S3 resume task at the end of PEI\r
-\r
- @param[in] PeiServices Pointer to PEI Services Table.\r
- @param[in] NotifyDesc Pointer to the descriptor for the Notification event that\r
- caused this function to execute.\r
- @param[in] Ppi Pointer to the PPI data associated with this function.\r
-\r
- @retval EFI_STATUS Always return EFI_SUCCESS\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-S3EndOfPeiNotify (\r
- IN EFI_PEI_SERVICES **PeiServices,\r
- IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc,\r
- IN VOID *Ppi\r
- )\r
-{\r
- NOTIFY_PHASE_PARAMS NotifyPhaseParams;\r
- EFI_STATUS Status;\r
- FSP_INFO_HEADER *FspHeader;\r
-\r
- FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase));\r
- if (FspHeader == NULL) {\r
- return EFI_DEVICE_ERROR;\r
- }\r
- \r
- DEBUG ((DEBUG_INFO, "S3EndOfPeiNotify enter\n"));\r
- \r
- NotifyPhaseParams.Phase = EnumInitPhaseAfterPciEnumeration;\r
- Status = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams);\r
- DEBUG((DEBUG_INFO, "FSP S3NotifyPhase AfterPciEnumeration status: 0x%x\n", Status));\r
-\r
- NotifyPhaseParams.Phase = EnumInitPhaseReadyToBoot;\r
- Status = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams);\r
- DEBUG((DEBUG_INFO, "FSP S3NotifyPhase ReadyToBoot status: 0x%x\n", Status));\r
-\r
- return EFI_SUCCESS;\r
-}\r