--- /dev/null
+/** @file\r
+ Provide FSP wrapper API test related function.\r
+\r
+ Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php.\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include <PiPei.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/HobLib.h>\r
+#include <Guid/GuidHobFspEas.h>\r
+\r
+/**\r
+ Test the output of FSP API - FspMemoryInit.\r
+\r
+ @param[in] FspmUpdDataPtr Address pointer to the FSP_MEMORY_INIT_PARAMS structure.\r
+ @param[in] HobListPtr Address of the HobList pointer.\r
+\r
+ @return test result on output of FspMemoryInit API.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+TestFspMemoryInitApiOutput (\r
+ IN VOID *FspmUpdDataPtr,\r
+ IN VOID **HobListPtr\r
+ )\r
+{\r
+ DEBUG_CODE_BEGIN ();\r
+ EFI_PEI_HOB_POINTERS Hob;\r
+\r
+ Hob.Raw = (UINT8 *)(*(HobListPtr));\r
+ while (TRUE) {\r
+ if (END_OF_HOB_LIST(Hob) == TRUE) {\r
+ DEBUG((DEBUG_INFO, "gFspBootLoaderTolumHobGuid not Found\n"));\r
+ break;\r
+ }\r
+ if ((CompareGuid (&Hob.ResourceDescriptor->Owner, &gFspBootLoaderTolumHobGuid))) {\r
+ DEBUG ((DEBUG_INFO, "gFspBootLoaderTolumHobGuid Found\n"));\r
+ DEBUG ((DEBUG_INFO, "Fill Boot Loader reserved memory range with 0x5A for testing purpose\n"));\r
+ SetMem ((VOID *)(UINTN)Hob.ResourceDescriptor->PhysicalStart, (UINTN)Hob.ResourceDescriptor->ResourceLength, 0x5A);\r
+ break;\r
+ }\r
+ Hob.Raw = GET_NEXT_HOB (Hob);\r
+ }\r
+ DEBUG_CODE_END ();\r
+\r
+ return RETURN_SUCCESS;\r
+}\r
+\r
+/**\r
+ Test the output of FSP API - TempRamExit.\r
+\r
+ @param[in] TempRamExitParam Address pointer to the TempRamExit parameters structure.\r
+\r
+ @return test result on output of TempRamExit API.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+TestFspTempRamExitApiOutput (\r
+ IN VOID *TempRamExitParam\r
+ )\r
+{\r
+ return RETURN_SUCCESS;\r
+}\r
+\r
+/**\r
+ Test the output of FSP API - FspSiliconInit.\r
+\r
+ @param[in] FspsUpdDataPtr Address pointer to the Silicon Init parameters structure.\r
+\r
+ @return test result on output of FspSiliconInit API.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+TestFspSiliconInitApiOutput (\r
+ IN VOID *FspsUpdDataPtr\r
+ )\r
+{\r
+ return RETURN_SUCCESS;\r
+}\r