30 if (ApiIdx == NotifyPhaseApiIndex) {
34 if ((FspData ==
NULL) || ((UINT32)(
UINTN)FspData == MAX_UINT32)) {
35 Status = EFI_UNSUPPORTED;
37 if (FspData->Signature != FSP_GLOBAL_DATA_SIGNATURE) {
38 Status = EFI_UNSUPPORTED;
41 }
else if (ApiIdx == FspMemoryInitApiIndex) {
45 if ((UINT32)(
UINTN)FspData != MAX_UINT32) {
46 Status = EFI_UNSUPPORTED;
47 }
else if (ApiParam ==
NULL) {
50 Status = EFI_INVALID_PARAMETER;
52 }
else if (ApiIdx == TempRamExitApiIndex) {
56 if ((FspData ==
NULL) || ((UINT32)(
UINTN)FspData == MAX_UINT32)) {
57 Status = EFI_UNSUPPORTED;
59 if (FspData->Signature != FSP_GLOBAL_DATA_SIGNATURE) {
60 Status = EFI_UNSUPPORTED;
63 }
else if ((ApiIdx == FspSiliconInitApiIndex) || (ApiIdx == FspMultiPhaseSiInitApiIndex)) {
67 if ((FspData ==
NULL) || ((UINT32)(
UINTN)FspData == MAX_UINT32)) {
68 Status = EFI_UNSUPPORTED;
70 if (FspData->Signature != FSP_GLOBAL_DATA_SIGNATURE) {
71 Status = EFI_UNSUPPORTED;
72 }
else if (ApiIdx == FspSiliconInitApiIndex) {
73 if (ApiParam ==
NULL) {
76 Status = EFI_INVALID_PARAMETER;
82 FspData->NumberOfPhases = 0;
85 }
else if (ApiIdx == FspMultiPhaseMemInitApiIndex) {
86 if ((FspData ==
NULL) || ((UINT32)(
UINTN)FspData == MAX_UINT32)) {
87 Status = EFI_UNSUPPORTED;
89 }
else if (ApiIdx == FspSmmInitApiIndex) {
93 if ((FspData ==
NULL) || ((UINT32)(
UINTN)FspData == MAX_UINT32)) {
94 Status = EFI_UNSUPPORTED;
96 if (FspData->Signature != FSP_GLOBAL_DATA_SIGNATURE) {
97 Status = EFI_UNSUPPORTED;
98 }
else if (ApiParam ==
NULL) {
101 Status = EFI_INVALID_PARAMETER;
105 Status = EFI_UNSUPPORTED;
108 if (!EFI_ERROR (Status)) {
109 if ((ApiIdx != FspMemoryInitApiIndex)) {
FSP_GLOBAL_DATA *EFIAPI GetFspGlobalDataPointer(VOID)
VOID EFIAPI SetFspApiCallingIndex(UINT8 Index)
EFI_STATUS EFIAPI FspApiCallingCheck(IN UINT8 ApiIdx, IN VOID *ApiParam)