IntelFrameworkModulePkg: Fix typo.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shumin Qiu <shumin.qiu@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17044 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
UEFI and Tiano Custom Decompress Library
|
UEFI and Tiano Custom Decompress Library
|
||||||
It will do Tiano or UEFI decompress with different verison parameter.
|
It will do Tiano or UEFI decompress with different verison parameter.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -59,7 +59,7 @@ FillBuf (
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Caculate additional bit count read to update mBitCount
|
// Calculate additional bit count read to update mBitCount
|
||||||
//
|
//
|
||||||
Sd->mBitCount = (UINT16) (Sd->mBitCount - NumOfBits);
|
Sd->mBitCount = (UINT16) (Sd->mBitCount - NumOfBits);
|
||||||
|
|
||||||
@ -784,7 +784,7 @@ UefiTianoDecompress (
|
|||||||
Sd->mSrcBase = (UINT8 *)Src;
|
Sd->mSrcBase = (UINT8 *)Src;
|
||||||
Sd->mDstBase = Dst;
|
Sd->mDstBase = Dst;
|
||||||
//
|
//
|
||||||
// CompSize and OrigSize are caculated in bytes
|
// CompSize and OrigSize are calculated in bytes
|
||||||
//
|
//
|
||||||
Sd->mCompSize = CompSize;
|
Sd->mCompSize = CompSize;
|
||||||
Sd->mOrigSize = OrigSize;
|
Sd->mOrigSize = OrigSize;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Common defines and definitions for a FwVolDxe driver.
|
Common defines and definitions for a FwVolDxe driver.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
@ -52,7 +52,7 @@
|
|||||||
#define MAX_FILES 32
|
#define MAX_FILES 32
|
||||||
|
|
||||||
//
|
//
|
||||||
// Used to caculate from address -> Lba
|
// Used to calculate from address -> Lba
|
||||||
//
|
//
|
||||||
typedef struct {
|
typedef struct {
|
||||||
LIST_ENTRY Link;
|
LIST_ENTRY Link;
|
||||||
@ -616,9 +616,9 @@ FvCreateMultipleFiles (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Caculate the checksum for the FFS header.
|
Calculate the checksum for the FFS header.
|
||||||
|
|
||||||
@param FfsHeader FFS File Header which needs to caculate the checksum
|
@param FfsHeader FFS File Header which needs to calculate the checksum
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
@ -627,9 +627,9 @@ SetHeaderChecksum (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Caculate the checksum for the FFS File.
|
Calculate the checksum for the FFS File.
|
||||||
|
|
||||||
@param FfsHeader FFS File Header which needs to caculate the checksum
|
@param FfsHeader FFS File Header which needs to calculate the checksum
|
||||||
@param ActualFileSize The whole Ffs File Length.
|
@param ActualFileSize The whole Ffs File Length.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Implements write firmware file.
|
Implements write firmware file.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
@ -17,9 +17,9 @@
|
|||||||
#include "FwVolDriver.h"
|
#include "FwVolDriver.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Caculate the checksum for the FFS header.
|
Calculate the checksum for the FFS header.
|
||||||
|
|
||||||
@param FfsHeader FFS File Header which needs to caculate the checksum
|
@param FfsHeader FFS File Header which needs to calculate the checksum
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
@ -60,9 +60,9 @@ SetHeaderChecksum (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Caculate the checksum for the FFS File.
|
Calculate the checksum for the FFS File.
|
||||||
|
|
||||||
@param FfsHeader FFS File Header which needs to caculate the checksum
|
@param FfsHeader FFS File Header which needs to calculate the checksum
|
||||||
@param ActualFileSize The whole Ffs File Length.
|
@param ActualFileSize The whole Ffs File Length.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -130,7 +130,7 @@ GetRequiredAlignment (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Caculate the leading Pad file size to meet the alignment requirement.
|
Calculate the leading Pad file size to meet the alignment requirement.
|
||||||
|
|
||||||
@param FvDevice Cached Firmware Volume.
|
@param FvDevice Cached Firmware Volume.
|
||||||
@param StartAddress The starting address to write the FFS File.
|
@param StartAddress The starting address to write the FFS File.
|
||||||
@ -141,7 +141,7 @@ GetRequiredAlignment (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
CaculatePadFileSize (
|
CalculatePadFileSize (
|
||||||
IN FV_DEVICE *FvDevice,
|
IN FV_DEVICE *FvDevice,
|
||||||
IN EFI_PHYSICAL_ADDRESS StartAddress,
|
IN EFI_PHYSICAL_ADDRESS StartAddress,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
@ -330,7 +330,7 @@ FvLocateFreeSpaceEntry (
|
|||||||
// required the file size
|
// required the file size
|
||||||
//
|
//
|
||||||
while ((LIST_ENTRY *) FreeSpaceListEntry != &FvDevice->FreeSpaceHeader) {
|
while ((LIST_ENTRY *) FreeSpaceListEntry != &FvDevice->FreeSpaceHeader) {
|
||||||
PadFileSize = CaculatePadFileSize (
|
PadFileSize = CalculatePadFileSize (
|
||||||
FvDevice,
|
FvDevice,
|
||||||
(EFI_PHYSICAL_ADDRESS) (UINTN) FreeSpaceListEntry->StartingAddress,
|
(EFI_PHYSICAL_ADDRESS) (UINTN) FreeSpaceListEntry->StartingAddress,
|
||||||
Size,
|
Size,
|
||||||
@ -400,7 +400,7 @@ FvLocatePadFile (
|
|||||||
PadAreaLength = FFS_FILE_SIZE (FileHeader) - HeaderSize;
|
PadAreaLength = FFS_FILE_SIZE (FileHeader) - HeaderSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
PadFileSize = CaculatePadFileSize (
|
PadFileSize = CalculatePadFileSize (
|
||||||
FvDevice,
|
FvDevice,
|
||||||
(EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize,
|
(EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize,
|
||||||
Size,
|
Size,
|
||||||
@ -477,7 +477,7 @@ FvSearchSuitablePadFile (
|
|||||||
TotalSize = 0;
|
TotalSize = 0;
|
||||||
|
|
||||||
for (Index = 0; Index < NumOfFiles; Index++) {
|
for (Index = 0; Index < NumOfFiles; Index++) {
|
||||||
PadSize[Index] = CaculatePadFileSize (
|
PadSize[Index] = CalculatePadFileSize (
|
||||||
FvDevice,
|
FvDevice,
|
||||||
(EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize + TotalSize,
|
(EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize + TotalSize,
|
||||||
BufferSize[Index],
|
BufferSize[Index],
|
||||||
@ -546,14 +546,14 @@ FvSearchSuitableFreeSpace (
|
|||||||
StartAddr = FreeSpaceListEntry->StartingAddress;
|
StartAddr = FreeSpaceListEntry->StartingAddress;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Caculate the totalsize we need
|
// Calculate the totalsize we need
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < NumOfFiles; Index++) {
|
for (Index = 0; Index < NumOfFiles; Index++) {
|
||||||
//
|
//
|
||||||
// Perhaps we don't need an EFI_FFS_FILE_HEADER, the first file
|
// Perhaps we don't need an EFI_FFS_FILE_HEADER, the first file
|
||||||
// have had its leading pad file.
|
// have had its leading pad file.
|
||||||
//
|
//
|
||||||
PadSize[Index] = CaculatePadFileSize (
|
PadSize[Index] = CalculatePadFileSize (
|
||||||
FvDevice,
|
FvDevice,
|
||||||
(EFI_PHYSICAL_ADDRESS) (UINTN) StartAddr + TotalSize,
|
(EFI_PHYSICAL_ADDRESS) (UINTN) StartAddr + TotalSize,
|
||||||
BufferSize[Index],
|
BufferSize[Index],
|
||||||
@ -956,7 +956,7 @@ FvCreateNewFile (
|
|||||||
FreeSpaceEntry->Length -= (BufferSize - HeaderSize);
|
FreeSpaceEntry->Length -= (BufferSize - HeaderSize);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Caculate File Checksum
|
// Calculate File Checksum
|
||||||
//
|
//
|
||||||
SetFileChecksum (FileHeader, ActualFileSize);
|
SetFileChecksum (FileHeader, ActualFileSize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user