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:
Liming Gao
2018-06-27 21:06:35 +08:00
parent e38f26a2f7
commit 0a6f48249a
246 changed files with 4071 additions and 4071 deletions

View File

@@ -1,7 +1,7 @@
/** @file
Implements functions to pad firmware file.
Copyright (c) 2006 - 2011, 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
@@ -219,7 +219,7 @@ FvCreatePadFileInFreeSpace (
/**
Fill pad file header within firmware cache.
@param PadFileHeader The start of the Pad File Buffer.
@param PadFileLength The length of the pad file including the header.
@@ -264,7 +264,7 @@ FvFillPadFile (
/**
Create entire FFS file.
@param FileHeader Starting Address of a Buffer that hold the FFS File image.
@param FfsFileBuffer The source buffer that contains the File Data.
@param BufferSize The length of FfsFileBuffer.
@@ -662,7 +662,7 @@ FreeFfsBuffer (
@param ActualFileSize The array of actual file size.
@param PadSize The array of leading pad file size for each FFS File
@param FfsBuffer The array of Ffs Buffer pointer.
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
used to get name, attributes, type, etc.
@retval EFI_SUCCESS Add the input multiple files into PAD file area.
@@ -868,7 +868,7 @@ FvCreateMultipleFilesInsidePadFile (
@param ActualFileSize The array of actual file size.
@param PadSize The array of leading pad file size for each FFS File
@param FfsBuffer The array of Ffs Buffer pointer.
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
used to get name, attributes, type, etc.
@retval EFI_SUCCESS Add the input multiple files into PAD file area.
@@ -993,7 +993,7 @@ FvCreateMultipleFilesInsideFreeSpace (
@param FvDevice Firmware Volume Device.
@param NumOfFiles Total File number to be written.
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
used to get name, attributes, type, etc
@param FileOperation The array of operation for each file.

View File

@@ -4,7 +4,7 @@
Layers on top of Firmware Block protocol to produce a file abstraction
of FV based files.
Copyright (c) 2006 - 2017, 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
@@ -789,7 +789,7 @@ FwVolDriverInit (
} else {
FreePool (FvDevice);
}
DEBUG ((EFI_D_INFO, "Reinstall FV protocol as writable - %r\n", Status));
ASSERT_EFI_ERROR (Status);
} else {
@@ -807,7 +807,7 @@ FwVolDriverInit (
} else {
FreePool (FvDevice);
}
DEBUG ((EFI_D_INFO, "Install FV protocol as writable - %r\n", Status));
ASSERT_EFI_ERROR (Status);
}
@@ -822,7 +822,7 @@ Done:
if (InstallFlag) {
return EFI_SUCCESS;
}
//
// No FV protocol install/reinstall successfully.
// EFI_NOT_FOUND should return to ensure this image will be unloaded.

View File

@@ -2,7 +2,7 @@
Implements get/set firmware volume attributes.
Copyright (c) 2006 - 2010, 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
@@ -65,7 +65,7 @@ FvGetVolumeAttributes (
unsuccessful return, FvAttributes is not
modified and the firmware volume
settings are not changed.
@retval EFI_SUCCESS The requested firmware volume attributes
were set and the resulting
EFI_FV_ATTRIBUTES is returned in

View File

@@ -1,7 +1,7 @@
/** @file
Common defines and definitions for a FwVolDxe driver.
Copyright (c) 2006 - 2017, 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
@@ -129,7 +129,7 @@ FvGetVolumeAttributes (
unsuccessful return, FvAttributes is not
modified and the firmware volume
settings are not changed.
@retval EFI_SUCCESS The requested firmware volume attributes
were set and the resulting
EFI_FV_ATTRIBUTES is returned in
@@ -598,7 +598,7 @@ FvCreateNewFileInsidePadFile (
@param FvDevice Firmware Volume Device.
@param NumOfFiles Total File number to be written.
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
@param FileData The array of EFI_FV_WRITE_FILE_DATA structure,
used to get name, attributes, type, etc
@param FileOperation The array of operation for each file.

View File

@@ -4,13 +4,13 @@
// This driver produces Firmware Volume2 protocol with full services
// (read/write, get/set) based on Firmware Volume Block protocol.
//
// 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.
//

View File

@@ -1,7 +1,7 @@
// /** @file
// FwVolDxe 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
"Flash Storage DXE Driver v2"

View File

@@ -1,7 +1,7 @@
/** @file
Implements write firmware file.
Copyright (c) 2006 - 2017, 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
@@ -710,7 +710,7 @@ FvcWrite (
UINTN RemainingLength;
UINTN WriteLength;
UINT8 *TmpBuffer;
LOffset = 0;
RemainingLength = CalculateRemainingLength (FvDevice, Offset, &Lba, &LOffset);
if ((UINTN) (*NumBytes) > RemainingLength) {
@@ -1463,8 +1463,8 @@ FvWriteFile (
if (FileData[Index1].Type == EFI_FV_FILETYPE_FFS_PAD) {
//
// According to PI spec, on EFI_FV_FILETYPE_FFS_PAD:
// "Standard firmware file system services will not return the handle of any pad files,
// According to PI spec, on EFI_FV_FILETYPE_FFS_PAD:
// "Standard firmware file system services will not return the handle of any pad files,
// nor will they permit explicit creation of such files."
//
return EFI_INVALID_PARAMETER;

View File

@@ -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) {

View File

@@ -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.

View File

@@ -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)) {

View File

@@ -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

View File

@@ -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.
//

View File

@@ -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"