for the image to be programmed, and the flash area that is going to be\r
programed.\r
\r
- Copyright (c) 2002 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
\r
/**\r
Update the whole FV, or certain files in the FV.\r
- \r
+\r
@param ConfigData Pointer to the config data on updating file.\r
@param ImageBuffer Image buffer to be updated.\r
@param ImageSize Image size.\r
//\r
Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);\r
if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {\r
- continue; \r
+ continue;\r
}\r
\r
Status = FvbProtocol->GetPhysicalAddress (\r
Print (TmpStr, FlashAddress, ((UINT64)SizeLeft + FlashAddress));\r
FreePool (TmpStr);\r
}\r
- \r
+\r
//\r
// Locate all Fvb protocol\r
//\r
//\r
Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);\r
if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {\r
- continue; \r
+ continue;\r
}\r
\r
Status = FvbProtocol->GetPhysicalAddress (\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
- \r
+\r
//\r
// Check if we are done with the update\r
//\r
FvAlignment = 1 << ((FwVolHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);\r
//\r
// FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.\r
- // \r
+ //\r
if (FvAlignment < 8) {\r
FvAlignment = 8;\r
}\r
/**\r
Find the image in the same FV and program it in a target Firmware Volume device.\r
After update image, it will reset system and no return.\r
- \r
+\r
@param ImageHandle A handle for the image that is initializing this driver\r
@param SystemTable A pointer to the EFI system table\r
\r
EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocol;\r
EFI_FIRMWARE_VOLUME2_PROTOCOL *FwVolProtocol;\r
EFI_FIRMWARE_VOLUME2_PROTOCOL *DataFwVolProtocol;\r
- MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FwVolFilePathNode; \r
+ MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FwVolFilePathNode;\r
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *AlignedDevPathNode;\r
EFI_DEVICE_PATH_PROTOCOL *FilePathNode;\r
EFI_SECTION_TYPE SectionType;\r
UpdateConfigData\r
);\r
//\r
- // Shall updates be serialized so that if an update is not successfully completed, \r
+ // Shall updates be serialized so that if an update is not successfully completed,\r
// the remaining updates won't be performed.\r
//\r
if (EFI_ERROR (Status)) {\r