TianoCore EDK2 master
Loading...
Searching...
No Matches
FspWrapperApiTest.c
Go to the documentation of this file.
1
9#include <PiPei.h>
11#include <Library/DebugLib.h>
12#include <Library/HobLib.h>
13#include <Guid/GuidHobFspEas.h>
14
24EFIAPI
26 IN VOID *FspmUpdDataPtr,
27 IN VOID **HobListPtr
28 )
29{
32
33 Hob.Raw = (UINT8 *)(*(HobListPtr));
34 while (TRUE) {
35 if (END_OF_HOB_LIST (Hob) == TRUE) {
36 DEBUG ((DEBUG_INFO, "gFspBootLoaderTolumHobGuid not Found\n"));
37 break;
38 }
39
40 if ((CompareGuid (&Hob.ResourceDescriptor->Owner, &gFspBootLoaderTolumHobGuid))) {
41 DEBUG ((DEBUG_INFO, "gFspBootLoaderTolumHobGuid Found\n"));
42 DEBUG ((DEBUG_INFO, "Fill Boot Loader reserved memory range with 0x5A for testing purpose\n"));
43 SetMem ((VOID *)(UINTN)Hob.ResourceDescriptor->PhysicalStart, (UINTN)Hob.ResourceDescriptor->ResourceLength, 0x5A);
44 break;
45 }
46
47 Hob.Raw = GET_NEXT_HOB (Hob);
48 }
49
51
52 return RETURN_SUCCESS;
53}
54
63EFIAPI
65 IN VOID *TempRamExitParam
66 )
67{
68 return RETURN_SUCCESS;
69}
70
79EFIAPI
81 IN VOID *FspsUpdDataPtr
82 )
83{
84 return RETURN_SUCCESS;
85}
UINT64 UINTN
VOID *EFIAPI SetMem(OUT VOID *Buffer, IN UINTN Length, IN UINT8 Value)
Definition: SetMemWrapper.c:38
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
Definition: MemLibGuid.c:73
EFI_STATUS EFIAPI TestFspSiliconInitApiOutput(IN VOID *FspsUpdDataPtr)
EFI_STATUS EFIAPI TestFspMemoryInitApiOutput(IN VOID *FspmUpdDataPtr, IN VOID **HobListPtr)
EFI_STATUS EFIAPI TestFspTempRamExitApiOutput(IN VOID *TempRamExitParam)
#define RETURN_SUCCESS
Definition: Base.h:1066
#define TRUE
Definition: Base.h:301
#define IN
Definition: Base.h:279
#define DEBUG_CODE_BEGIN()
Definition: DebugLib.h:564
#define DEBUG(Expression)
Definition: DebugLib.h:434
#define DEBUG_CODE_END()
Definition: DebugLib.h:578
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_PHYSICAL_ADDRESS PhysicalStart
Definition: PiHob.h:328