35 if (VariableFlashInfo ==
NULL) {
36 return EFI_INVALID_PARAMETER;
40 if (GuidHob ==
NULL) {
44 *VariableFlashInfo = GET_GUID_HOB_DATA (GuidHob);
51 DEBUG ((DEBUG_ERROR,
"ERROR: Found two variable flash information HOBs\n"));
80 if ((BaseAddress ==
NULL) || (Length ==
NULL)) {
81 return EFI_INVALID_PARAMETER;
85 if (!EFI_ERROR (Status)) {
90 PcdGet64 (PcdFlashNvStorageVariableBase64) :
91 PcdGet32 (PcdFlashNvStorageVariableBase)
93 *Length = (UINT64)
PcdGet32 (PcdFlashNvStorageVariableSize);
121 if ((BaseAddress ==
NULL) || (Length ==
NULL)) {
122 return EFI_INVALID_PARAMETER;
126 if (!EFI_ERROR (Status)) {
131 PcdGet64 (PcdFlashNvStorageFtwSpareBase64) :
132 PcdGet32 (PcdFlashNvStorageFtwSpareBase)
134 *Length = (UINT64)
PcdGet32 (PcdFlashNvStorageFtwSpareSize);
162 if ((BaseAddress ==
NULL) || (Length ==
NULL)) {
163 return EFI_INVALID_PARAMETER;
167 if (!EFI_ERROR (Status)) {
172 PcdGet64 (PcdFlashNvStorageFtwWorkingBase64) :
173 PcdGet32 (PcdFlashNvStorageFtwWorkingBase)
175 *Length = (UINT64)
PcdGet32 (PcdFlashNvStorageFtwWorkingSize);
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
VOID *EFIAPI GetNextGuidHob(IN CONST EFI_GUID *Guid, IN CONST VOID *HobStart)
STATIC EFI_STATUS GetVariableFlashInfoFromHob(OUT VARIABLE_FLASH_INFO **VariableFlashInfo)
EFI_STATUS EFIAPI GetVariableFlashFtwWorkingInfo(OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINT64 *Length)
EFI_STATUS EFIAPI GetVariableFlashFtwSpareInfo(OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINT64 *Length)
EFI_STATUS EFIAPI GetVariableFlashNvStorageInfo(OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINT64 *Length)
#define DEBUG(Expression)
#define DEBUG_CODE(Expression)
#define PcdGet64(TokenName)
#define PcdGet32(TokenName)
UINT64 EFI_PHYSICAL_ADDRESS
EFI_PHYSICAL_ADDRESS FtwWorkingBaseAddress
EFI_PHYSICAL_ADDRESS NvVariableBaseAddress
EFI_PHYSICAL_ADDRESS FtwSpareBaseAddress