IntelFrameworkModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Functions in this file will program the image into flash area.
|
||||
|
||||
Copyright (c) 2002 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -450,9 +450,9 @@ FaultTolerantUpdateOnWholeFv (
|
||||
Offset = 0;
|
||||
UpdateBuffer = ImageBuffer;
|
||||
CopyMem (
|
||||
(VOID *) &PrivateData.FileGuid,
|
||||
(VOID *) &ConfigData->FileGuid,
|
||||
sizeof (EFI_GUID)
|
||||
(VOID *) &PrivateData.FileGuid,
|
||||
(VOID *) &ConfigData->FileGuid,
|
||||
sizeof (EFI_GUID)
|
||||
);
|
||||
|
||||
while (TRUE) {
|
||||
@@ -1006,9 +1006,9 @@ FaultTolerantUpdateOnPartFv (
|
||||
PtrMap = BlockMap;
|
||||
Image = ImageBuffer;
|
||||
CopyMem (
|
||||
(VOID *) &PrivateData.FileGuid,
|
||||
(VOID *) &ConfigData->FileGuid,
|
||||
sizeof (EFI_GUID)
|
||||
(VOID *) &PrivateData.FileGuid,
|
||||
(VOID *) &ConfigData->FileGuid,
|
||||
sizeof (EFI_GUID)
|
||||
);
|
||||
|
||||
while (TotalSize > 0) {
|
||||
|
@@ -3,7 +3,7 @@
|
||||
configuration file and pass the information to the update driver
|
||||
so that the driver can perform updates accordingly.
|
||||
|
||||
Copyright (c) 2002 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -622,7 +622,7 @@ UpdateValueToString (
|
||||
}
|
||||
|
||||
/**
|
||||
Convert the input value to a ascii string,
|
||||
Convert the input value to a ascii string,
|
||||
and concatenates this string to the input string.
|
||||
|
||||
@param Str Pointer to a Null-terminated ASCII string.
|
||||
@@ -786,7 +786,7 @@ UpdateStringToGuid (
|
||||
|
||||
/**
|
||||
Pre process config data buffer into Section entry list and Comment entry list.
|
||||
|
||||
|
||||
@param DataBuffer Config raw file buffer.
|
||||
@param BufferSize Size of raw buffer.
|
||||
@param SectionHead Pointer to the section entry list.
|
||||
|
@@ -3,7 +3,7 @@
|
||||
for the image to be programmed, and the flash area that is going to be
|
||||
programed.
|
||||
|
||||
Copyright (c) 2002 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -22,7 +22,7 @@ EFI_HII_HANDLE gHiiHandle;
|
||||
|
||||
/**
|
||||
Update the whole FV, or certain files in the FV.
|
||||
|
||||
|
||||
@param ConfigData Pointer to the config data on updating file.
|
||||
@param ImageBuffer Image buffer to be updated.
|
||||
@param ImageSize Image size.
|
||||
@@ -89,7 +89,7 @@ PerformUpdateOnFirmwareVolume (
|
||||
//
|
||||
Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);
|
||||
if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {
|
||||
continue;
|
||||
continue;
|
||||
}
|
||||
|
||||
Status = FvbProtocol->GetPhysicalAddress (
|
||||
@@ -197,7 +197,7 @@ PerformUpdateOnFlashArea (
|
||||
Print (TmpStr, FlashAddress, ((UINT64)SizeLeft + FlashAddress));
|
||||
FreePool (TmpStr);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Locate all Fvb protocol
|
||||
//
|
||||
@@ -242,7 +242,7 @@ PerformUpdateOnFlashArea (
|
||||
//
|
||||
Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);
|
||||
if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {
|
||||
continue;
|
||||
continue;
|
||||
}
|
||||
|
||||
Status = FvbProtocol->GetPhysicalAddress (
|
||||
@@ -326,7 +326,7 @@ PerformUpdateOnFlashArea (
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Check if we are done with the update
|
||||
//
|
||||
@@ -540,7 +540,7 @@ ProcessUpdateImage (
|
||||
FvAlignment = 1 << ((FwVolHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);
|
||||
//
|
||||
// FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.
|
||||
//
|
||||
//
|
||||
if (FvAlignment < 8) {
|
||||
FvAlignment = 8;
|
||||
}
|
||||
@@ -583,7 +583,7 @@ ProcessUpdateImage (
|
||||
/**
|
||||
Find the image in the same FV and program it in a target Firmware Volume device.
|
||||
After update image, it will reset system and no return.
|
||||
|
||||
|
||||
@param ImageHandle A handle for the image that is initializing this driver
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
|
||||
@@ -602,7 +602,7 @@ InitializeUpdateDriver (
|
||||
EFI_LOADED_IMAGE_PROTOCOL *LoadedImageProtocol;
|
||||
EFI_FIRMWARE_VOLUME2_PROTOCOL *FwVolProtocol;
|
||||
EFI_FIRMWARE_VOLUME2_PROTOCOL *DataFwVolProtocol;
|
||||
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FwVolFilePathNode;
|
||||
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FwVolFilePathNode;
|
||||
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *AlignedDevPathNode;
|
||||
EFI_DEVICE_PATH_PROTOCOL *FilePathNode;
|
||||
EFI_SECTION_TYPE SectionType;
|
||||
@@ -815,7 +815,7 @@ InitializeUpdateDriver (
|
||||
UpdateConfigData
|
||||
);
|
||||
//
|
||||
// Shall updates be serialized so that if an update is not successfully completed,
|
||||
// Shall updates be serialized so that if an update is not successfully completed,
|
||||
// the remaining updates won't be performed.
|
||||
//
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
@@ -1,11 +1,11 @@
|
||||
## @file
|
||||
# Update Driver for Capulse update.
|
||||
#
|
||||
# This driver is intended to be put in a capsule (FV). If all goes well,
|
||||
# then it should be dispatched from the capsule FV, then find the image
|
||||
# This driver is intended to be put in a capsule (FV). If all goes well,
|
||||
# then it should be dispatched from the capsule FV, then find the image
|
||||
# in the same FV and program it in a target Firmware Volume device.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are
|
||||
# licensed and made available under the terms and conditions of the BSD License
|
||||
|
@@ -5,13 +5,13 @@
|
||||
// then it should be dispatched from the capsule FV, then find the image
|
||||
// in the same FV and program it in a target Firmware Volume device.
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials are
|
||||
// licensed and made available under the terms and conditions of the BSD License
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// UpdateDriverDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials are
|
||||
// licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Firmware Update DXE Driver"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user