FatPkg: 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> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
parent
2c0dfe63fc
commit
e38f26a2f7
@ -1,7 +1,7 @@
|
|||||||
// /** @file
|
// /** @file
|
||||||
// Fat Localized Strings and Content
|
// Fat Localized Strings and Content
|
||||||
//
|
//
|
||||||
// Copyright (c) 2013, 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
|
// This program and the accompanying materials are licensed and made available
|
||||||
// under the terms and conditions of the BSD License which accompanies this
|
// under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -13,8 +13,8 @@
|
|||||||
//
|
//
|
||||||
// **/
|
// **/
|
||||||
|
|
||||||
#string STR_PROPERTIES_MODULE_NAME
|
#string STR_PROPERTIES_MODULE_NAME
|
||||||
#language en-US
|
#language en-US
|
||||||
"FAT File System DXE Driver"
|
"FAT File System DXE Driver"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Miscellaneous functions.
|
Miscellaneous functions.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
@ -164,7 +164,7 @@ FatQueueTask (
|
|||||||
) {
|
) {
|
||||||
Subtask = CR (Link, FAT_SUBTASK, Link, FAT_SUBTASK_SIGNATURE);
|
Subtask = CR (Link, FAT_SUBTASK, Link, FAT_SUBTASK_SIGNATURE);
|
||||||
if (Subtask->Write) {
|
if (Subtask->Write) {
|
||||||
|
|
||||||
Status = IFile->OFile->Volume->DiskIo2->WriteDiskEx (
|
Status = IFile->OFile->Volume->DiskIo2->WriteDiskEx (
|
||||||
IFile->OFile->Volume->DiskIo2,
|
IFile->OFile->Volume->DiskIo2,
|
||||||
IFile->OFile->Volume->MediaId,
|
IFile->OFile->Volume->MediaId,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Routines dealing with file open.
|
Routines dealing with file open.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
@ -234,7 +234,7 @@ FatOpenEx (
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check for valid Attributes for file creation case.
|
// Check for valid Attributes for file creation case.
|
||||||
//
|
//
|
||||||
if (((OpenMode & EFI_FILE_MODE_CREATE) != 0) && (Attributes & (EFI_FILE_READ_ONLY | (~EFI_FILE_VALID_ATTR))) != 0) {
|
if (((OpenMode & EFI_FILE_MODE_CREATE) != 0) && (Attributes & (EFI_FILE_READ_ONLY | (~EFI_FILE_VALID_ATTR))) != 0) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Unicode Collation Support component that hides the trivial difference of Unicode Collation
|
Unicode Collation Support component that hides the trivial difference of Unicode Collation
|
||||||
and Unicode collation 2 Protocol.
|
and Unicode collation 2 Protocol.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
@ -83,7 +83,7 @@ InitializeUnicodeCollationSupportWorker (
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Find the best matching matching language from the supported languages
|
// Find the best matching matching language from the supported languages
|
||||||
// of Unicode Collation (2) protocol.
|
// of Unicode Collation (2) protocol.
|
||||||
//
|
//
|
||||||
BestLanguage = GetBestLanguage (
|
BestLanguage = GetBestLanguage (
|
||||||
Uci->SupportedLanguages,
|
Uci->SupportedLanguages,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
FAT file system access routines for FAT recovery PEIM
|
FAT file system access routines for FAT recovery PEIM
|
||||||
|
|
||||||
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
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -22,16 +22,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
volume structure. Note there should be a valid Block device number
|
volume structure. Note there should be a valid Block device number
|
||||||
already set.
|
already set.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global
|
@param PrivateData Global memory map for accessing global
|
||||||
variables.
|
variables.
|
||||||
@param Volume On input, the BlockDeviceNumber field of the
|
@param Volume On input, the BlockDeviceNumber field of the
|
||||||
Volume should be a valid value. On successful
|
Volume should be a valid value. On successful
|
||||||
output, all fields except the VolumeNumber
|
output, all fields except the VolumeNumber
|
||||||
field is initialized.
|
field is initialized.
|
||||||
|
|
||||||
@retval EFI_SUCCESS A FAT is found and the volume structure is
|
@retval EFI_SUCCESS A FAT is found and the volume structure is
|
||||||
initialized.
|
initialized.
|
||||||
@retval EFI_NOT_FOUND There is no FAT on the corresponding device.
|
@retval EFI_NOT_FOUND There is no FAT on the corresponding device.
|
||||||
@retval EFI_DEVICE_ERROR There is something error while accessing device.
|
@retval EFI_DEVICE_ERROR There is something error while accessing device.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -177,13 +177,13 @@ FatGetBpbInfo (
|
|||||||
/**
|
/**
|
||||||
Gets the next cluster in the cluster chain
|
Gets the next cluster in the cluster chain
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param Volume The volume
|
@param Volume The volume
|
||||||
@param Cluster The cluster
|
@param Cluster The cluster
|
||||||
@param NextCluster The cluster number of the next cluster
|
@param NextCluster The cluster number of the next cluster
|
||||||
|
|
||||||
@retval EFI_SUCCESS The address is got
|
@retval EFI_SUCCESS The address is got
|
||||||
@retval EFI_INVALID_PARAMETER ClusterNo exceeds the MaxCluster of the volume.
|
@retval EFI_INVALID_PARAMETER ClusterNo exceeds the MaxCluster of the volume.
|
||||||
@retval EFI_DEVICE_ERROR Read disk error
|
@retval EFI_DEVICE_ERROR Read disk error
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -256,13 +256,13 @@ FatGetNextCluster (
|
|||||||
/**
|
/**
|
||||||
Set a file's CurrentPos and CurrentCluster, then compute StraightReadAmount.
|
Set a file's CurrentPos and CurrentCluster, then compute StraightReadAmount.
|
||||||
|
|
||||||
@param PrivateData the global memory map
|
@param PrivateData the global memory map
|
||||||
@param File the file
|
@param File the file
|
||||||
@param Pos the Position which is offset from the file's
|
@param Pos the Position which is offset from the file's
|
||||||
CurrentPos
|
CurrentPos
|
||||||
|
|
||||||
@retval EFI_SUCCESS Success.
|
@retval EFI_SUCCESS Success.
|
||||||
@retval EFI_INVALID_PARAMETER Pos is beyond file's size.
|
@retval EFI_INVALID_PARAMETER Pos is beyond file's size.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -346,13 +346,13 @@ FatSetFilePos (
|
|||||||
/**
|
/**
|
||||||
Reads file data. Updates the file's CurrentPos.
|
Reads file data. Updates the file's CurrentPos.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param File The file.
|
@param File The file.
|
||||||
@param Size The amount of data to read.
|
@param Size The amount of data to read.
|
||||||
@param Buffer The buffer storing the data.
|
@param Buffer The buffer storing the data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The data is read.
|
@retval EFI_SUCCESS The data is read.
|
||||||
@retval EFI_INVALID_PARAMETER File is invalid.
|
@retval EFI_INVALID_PARAMETER File is invalid.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -434,14 +434,14 @@ FatReadFile (
|
|||||||
The function updates the CurrentPos of the parent dir to after the item read.
|
The function updates the CurrentPos of the parent dir to after the item read.
|
||||||
If no more items were found, the function returns EFI_NOT_FOUND.
|
If no more items were found, the function returns EFI_NOT_FOUND.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param ParentDir The parent directory.
|
@param ParentDir The parent directory.
|
||||||
@param SubFile The File structure containing the sub file that
|
@param SubFile The File structure containing the sub file that
|
||||||
is caught.
|
is caught.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The next sub file is obtained.
|
@retval EFI_SUCCESS The next sub file is obtained.
|
||||||
@retval EFI_INVALID_PARAMETER The ParentDir is not a directory.
|
@retval EFI_INVALID_PARAMETER The ParentDir is not a directory.
|
||||||
@retval EFI_NOT_FOUND No more sub file exists.
|
@retval EFI_NOT_FOUND No more sub file exists.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -21,12 +21,12 @@ PEI_FAT_PRIVATE_DATA *mPrivateData = NULL;
|
|||||||
BlockIo installation nofication function. Find out all the current BlockIO
|
BlockIo installation nofication function. Find out all the current BlockIO
|
||||||
PPIs in the system and add them into private data. Assume there is
|
PPIs in the system and add them into private data. Assume there is
|
||||||
|
|
||||||
@param PeiServices General purpose services available to every
|
@param PeiServices General purpose services available to every
|
||||||
PEIM.
|
PEIM.
|
||||||
@param NotifyDescriptor The typedef structure of the notification
|
@param NotifyDescriptor The typedef structure of the notification
|
||||||
descriptor. Not used in this function.
|
descriptor. Not used in this function.
|
||||||
@param Ppi The typedef structure of the PPI descriptor.
|
@param Ppi The typedef structure of the PPI descriptor.
|
||||||
Not used in this function.
|
Not used in this function.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ BlockIoNotifyEntry (
|
|||||||
/**
|
/**
|
||||||
Discover all the block I/O devices to find the FAT volume.
|
Discover all the block I/O devices to find the FAT volume.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global
|
@param PrivateData Global memory map for accessing global
|
||||||
variables.
|
variables.
|
||||||
@param BlockIo2 Boolean to show whether using BlockIo2 or BlockIo
|
@param BlockIo2 Boolean to show whether using BlockIo2 or BlockIo
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
@ -203,12 +203,12 @@ UpdateBlocksAndVolumes (
|
|||||||
BlockIo installation notification function. Find out all the current BlockIO
|
BlockIo installation notification function. Find out all the current BlockIO
|
||||||
PPIs in the system and add them into private data. Assume there is
|
PPIs in the system and add them into private data. Assume there is
|
||||||
|
|
||||||
@param PeiServices General purpose services available to every
|
@param PeiServices General purpose services available to every
|
||||||
PEIM.
|
PEIM.
|
||||||
@param NotifyDescriptor The typedef structure of the notification
|
@param NotifyDescriptor The typedef structure of the notification
|
||||||
descriptor. Not used in this function.
|
descriptor. Not used in this function.
|
||||||
@param Ppi The typedef structure of the PPI descriptor.
|
@param Ppi The typedef structure of the PPI descriptor.
|
||||||
Not used in this function.
|
Not used in this function.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
|
|
||||||
@ -234,13 +234,13 @@ BlockIoNotifyEntry (
|
|||||||
Installs the Device Recovery Module PPI, Initialize BlockIo Ppi
|
Installs the Device Recovery Module PPI, Initialize BlockIo Ppi
|
||||||
installation notification
|
installation notification
|
||||||
|
|
||||||
@param FileHandle Handle of the file being invoked. Type
|
@param FileHandle Handle of the file being invoked. Type
|
||||||
EFI_PEI_FILE_HANDLE is defined in
|
EFI_PEI_FILE_HANDLE is defined in
|
||||||
FfsFindNextFile().
|
FfsFindNextFile().
|
||||||
@param PeiServices Describes the list of possible PEI Services.
|
@param PeiServices Describes the list of possible PEI Services.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The entry point was executed successfully.
|
@retval EFI_SUCCESS The entry point was executed successfully.
|
||||||
@retval EFI_OUT_OF_RESOURCES There is no enough memory to complete the
|
@retval EFI_OUT_OF_RESOURCES There is no enough memory to complete the
|
||||||
operations.
|
operations.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -330,18 +330,18 @@ FatPeimEntry (
|
|||||||
Returns the number of DXE capsules residing on the device.
|
Returns the number of DXE capsules residing on the device.
|
||||||
|
|
||||||
This function searches for DXE capsules from the associated device and returns
|
This function searches for DXE capsules from the associated device and returns
|
||||||
the number and maximum size in bytes of the capsules discovered. Entry 1 is
|
the number and maximum size in bytes of the capsules discovered. Entry 1 is
|
||||||
assumed to be the highest load priority and entry N is assumed to be the lowest
|
assumed to be the highest load priority and entry N is assumed to be the lowest
|
||||||
priority.
|
priority.
|
||||||
|
|
||||||
@param[in] PeiServices General-purpose services that are available
|
@param[in] PeiServices General-purpose services that are available
|
||||||
to every PEIM
|
to every PEIM
|
||||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||||
instance.
|
instance.
|
||||||
@param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On
|
@param[out] NumberRecoveryCapsules Pointer to a caller-allocated UINTN. On
|
||||||
output, *NumberRecoveryCapsules contains
|
output, *NumberRecoveryCapsules contains
|
||||||
the number of recovery capsule images
|
the number of recovery capsule images
|
||||||
available for retrieval from this PEIM
|
available for retrieval from this PEIM
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
@retval EFI_SUCCESS One or more capsules were discovered.
|
@retval EFI_SUCCESS One or more capsules were discovered.
|
||||||
@ -394,18 +394,18 @@ GetNumberRecoveryCapsules (
|
|||||||
This function gets the size and type of the capsule specified by CapsuleInstance.
|
This function gets the size and type of the capsule specified by CapsuleInstance.
|
||||||
|
|
||||||
@param[in] PeiServices General-purpose services that are available to every PEIM
|
@param[in] PeiServices General-purpose services that are available to every PEIM
|
||||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||||
instance.
|
instance.
|
||||||
@param[in] CapsuleInstance Specifies for which capsule instance to retrieve
|
@param[in] CapsuleInstance Specifies for which capsule instance to retrieve
|
||||||
the information. This parameter must be between
|
the information. This parameter must be between
|
||||||
one and the value returned by GetNumberRecoveryCapsules()
|
one and the value returned by GetNumberRecoveryCapsules()
|
||||||
in NumberRecoveryCapsules.
|
in NumberRecoveryCapsules.
|
||||||
@param[out] Size A pointer to a caller-allocated UINTN in which
|
@param[out] Size A pointer to a caller-allocated UINTN in which
|
||||||
the size of the requested recovery module is
|
the size of the requested recovery module is
|
||||||
returned.
|
returned.
|
||||||
@param[out] CapsuleType A pointer to a caller-allocated EFI_GUID in which
|
@param[out] CapsuleType A pointer to a caller-allocated EFI_GUID in which
|
||||||
the type of the requested recovery capsule is
|
the type of the requested recovery capsule is
|
||||||
returned. The semantic meaning of the value
|
returned. The semantic meaning of the value
|
||||||
returned is defined by the implementation.
|
returned is defined by the implementation.
|
||||||
|
|
||||||
@retval EFI_SUCCESS One or more capsules were discovered.
|
@retval EFI_SUCCESS One or more capsules were discovered.
|
||||||
@ -530,12 +530,12 @@ GetRecoveryCapsuleInfo (
|
|||||||
This function, by whatever mechanism, retrieves a DXE capsule from some device
|
This function, by whatever mechanism, retrieves a DXE capsule from some device
|
||||||
and loads it into memory. Note that the published interface is device neutral.
|
and loads it into memory. Note that the published interface is device neutral.
|
||||||
|
|
||||||
@param[in] PeiServices General-purpose services that are available
|
@param[in] PeiServices General-purpose services that are available
|
||||||
to every PEIM
|
to every PEIM
|
||||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||||
instance.
|
instance.
|
||||||
@param[in] CapsuleInstance Specifies which capsule instance to retrieve.
|
@param[in] CapsuleInstance Specifies which capsule instance to retrieve.
|
||||||
@param[out] Buffer Specifies a caller-allocated buffer in which
|
@param[out] Buffer Specifies a caller-allocated buffer in which
|
||||||
the requested recovery capsule will be returned.
|
the requested recovery capsule will be returned.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The capsule was loaded correctly.
|
@retval EFI_SUCCESS The capsule was loaded correctly.
|
||||||
@ -608,16 +608,16 @@ LoadRecoveryCapsule (
|
|||||||
This function finds the the recovery file named FileName on a specified FAT volume and returns
|
This function finds the the recovery file named FileName on a specified FAT volume and returns
|
||||||
its FileHandle pointer.
|
its FileHandle pointer.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global
|
@param PrivateData Global memory map for accessing global
|
||||||
variables.
|
variables.
|
||||||
@param VolumeIndex The index of the volume.
|
@param VolumeIndex The index of the volume.
|
||||||
@param FileName The recovery file name to find.
|
@param FileName The recovery file name to find.
|
||||||
@param Handle The output file handle.
|
@param Handle The output file handle.
|
||||||
|
|
||||||
@retval EFI_DEVICE_ERROR Some error occured when operating the FAT
|
@retval EFI_DEVICE_ERROR Some error occured when operating the FAT
|
||||||
volume.
|
volume.
|
||||||
@retval EFI_NOT_FOUND The recovery file was not found.
|
@retval EFI_NOT_FOUND The recovery file was not found.
|
||||||
@retval EFI_SUCCESS The recovery file was successfully found on the
|
@retval EFI_SUCCESS The recovery file was successfully found on the
|
||||||
FAT volume.
|
FAT volume.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
General purpose supporting routines for FAT recovery PEIM
|
General purpose supporting routines for FAT recovery PEIM
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, 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
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -25,7 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
If the input Letter is not a lower-cased letter,
|
If the input Letter is not a lower-cased letter,
|
||||||
the original value is returned.
|
the original value is returned.
|
||||||
|
|
||||||
@param Letter The input unicode character.
|
@param Letter The input unicode character.
|
||||||
|
|
||||||
@return The upper cased letter.
|
@return The upper cased letter.
|
||||||
|
|
||||||
@ -47,15 +47,15 @@ ToUpper (
|
|||||||
Reads a block of data from the block device by calling
|
Reads a block of data from the block device by calling
|
||||||
underlying Block I/O service.
|
underlying Block I/O service.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param BlockDeviceNo The index for the block device number.
|
@param BlockDeviceNo The index for the block device number.
|
||||||
@param Lba The logic block address to read data from.
|
@param Lba The logic block address to read data from.
|
||||||
@param BufferSize The size of data in byte to read.
|
@param BufferSize The size of data in byte to read.
|
||||||
@param Buffer The buffer of the
|
@param Buffer The buffer of the
|
||||||
|
|
||||||
@retval EFI_DEVICE_ERROR The specified block device number exceeds the maximum
|
@retval EFI_DEVICE_ERROR The specified block device number exceeds the maximum
|
||||||
device number.
|
device number.
|
||||||
@retval EFI_DEVICE_ERROR The maximum address has exceeded the maximum address
|
@retval EFI_DEVICE_ERROR The maximum address has exceeded the maximum address
|
||||||
of the block device.
|
of the block device.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -125,11 +125,11 @@ FatReadBlock (
|
|||||||
Find a cache block designated to specific Block device and Lba.
|
Find a cache block designated to specific Block device and Lba.
|
||||||
If not found, invalidate an oldest one and use it. (LRU cache)
|
If not found, invalidate an oldest one and use it. (LRU cache)
|
||||||
|
|
||||||
@param PrivateData the global memory map.
|
@param PrivateData the global memory map.
|
||||||
@param BlockDeviceNo the Block device.
|
@param BlockDeviceNo the Block device.
|
||||||
@param Lba the Logical Block Address
|
@param Lba the Logical Block Address
|
||||||
@param CachePtr Ptr to the starting address of the memory holding the
|
@param CachePtr Ptr to the starting address of the memory holding the
|
||||||
data;
|
data;
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
@ -179,9 +179,9 @@ FatGetCacheBlock (
|
|||||||
if (Index == PEI_FAT_CACHE_SIZE) {
|
if (Index == PEI_FAT_CACHE_SIZE) {
|
||||||
Index = (Seed++) % PEI_FAT_CACHE_SIZE;
|
Index = (Seed++) % PEI_FAT_CACHE_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Current device ID should be less than maximum device ID.
|
// Current device ID should be less than maximum device ID.
|
||||||
//
|
//
|
||||||
if (BlockDeviceNo >= PEI_FAT_MAX_BLOCK_DEVICE) {
|
if (BlockDeviceNo >= PEI_FAT_MAX_BLOCK_DEVICE) {
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
@ -217,11 +217,11 @@ FatGetCacheBlock (
|
|||||||
/**
|
/**
|
||||||
Disk reading.
|
Disk reading.
|
||||||
|
|
||||||
@param PrivateData the global memory map;
|
@param PrivateData the global memory map;
|
||||||
@param BlockDeviceNo the block device to read;
|
@param BlockDeviceNo the block device to read;
|
||||||
@param StartingAddress the starting address.
|
@param StartingAddress the starting address.
|
||||||
@param Size the amount of data to read.
|
@param Size the amount of data to read.
|
||||||
@param Buffer the buffer holding the data
|
@param Buffer the buffer holding the data
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
@retval EFI_DEVICE_ERROR Something error.
|
@retval EFI_DEVICE_ERROR Something error.
|
||||||
@ -306,11 +306,11 @@ FatReadDisk (
|
|||||||
to a Null-terminated Unicode string.
|
to a Null-terminated Unicode string.
|
||||||
Here does not expand DBCS FAT chars.
|
Here does not expand DBCS FAT chars.
|
||||||
|
|
||||||
@param FatSize The size of the string Fat in bytes.
|
@param FatSize The size of the string Fat in bytes.
|
||||||
@param Fat A pointer to a Null-terminated string that contains
|
@param Fat A pointer to a Null-terminated string that contains
|
||||||
an 8.3 file name using an OEM character set.
|
an 8.3 file name using an OEM character set.
|
||||||
@param Str A pointer to a Null-terminated Unicode string. The
|
@param Str A pointer to a Null-terminated Unicode string. The
|
||||||
string must be allocated in advance to hold FatSize
|
string must be allocated in advance to hold FatSize
|
||||||
Unicode characters
|
Unicode characters
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -344,8 +344,8 @@ EngFatToStr (
|
|||||||
/**
|
/**
|
||||||
Performs a case-insensitive comparison of two Null-terminated Unicode strings.
|
Performs a case-insensitive comparison of two Null-terminated Unicode strings.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param Str1 First string to perform case insensitive comparison.
|
@param Str1 First string to perform case insensitive comparison.
|
||||||
@param Str2 Second string to perform case insensitive comparison.
|
@param Str2 Second string to perform case insensitive comparison.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Data structures for FAT recovery PEIM
|
Data structures for FAT recovery PEIM
|
||||||
|
|
||||||
Copyright (c) 2006 - 2016, 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
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -193,16 +193,16 @@ typedef struct {
|
|||||||
This function finds the the recovery file named FileName on a specified FAT volume and returns
|
This function finds the the recovery file named FileName on a specified FAT volume and returns
|
||||||
its FileHandle pointer.
|
its FileHandle pointer.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global
|
@param PrivateData Global memory map for accessing global
|
||||||
variables.
|
variables.
|
||||||
@param VolumeIndex The index of the volume.
|
@param VolumeIndex The index of the volume.
|
||||||
@param FileName The recovery file name to find.
|
@param FileName The recovery file name to find.
|
||||||
@param Handle The output file handle.
|
@param Handle The output file handle.
|
||||||
|
|
||||||
@retval EFI_DEVICE_ERROR Some error occured when operating the FAT
|
@retval EFI_DEVICE_ERROR Some error occured when operating the FAT
|
||||||
volume.
|
volume.
|
||||||
@retval EFI_NOT_FOUND The recovery file was not found.
|
@retval EFI_NOT_FOUND The recovery file was not found.
|
||||||
@retval EFI_SUCCESS The recovery file was successfully found on the
|
@retval EFI_SUCCESS The recovery file was successfully found on the
|
||||||
FAT volume.
|
FAT volume.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -221,14 +221,14 @@ FindRecoveryFile (
|
|||||||
returns the number and maximum size in bytes of the capsules discovered.Entry 1 is assumed to be
|
returns the number and maximum size in bytes of the capsules discovered.Entry 1 is assumed to be
|
||||||
the highest load priority and entry N is assumed to be the lowest priority.
|
the highest load priority and entry N is assumed to be the lowest priority.
|
||||||
|
|
||||||
@param PeiServices General-purpose services that are available to
|
@param PeiServices General-purpose services that are available to
|
||||||
every PEIM.
|
every PEIM.
|
||||||
@param This Indicates the
|
@param This Indicates the
|
||||||
EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.
|
EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.
|
||||||
@param NumberRecoveryCapsules Pointer to a caller-allocated UINTN.On output,
|
@param NumberRecoveryCapsules Pointer to a caller-allocated UINTN.On output,
|
||||||
*NumberRecoveryCapsules contains the number of
|
*NumberRecoveryCapsules contains the number of
|
||||||
recovery capsule images available for retrieval
|
recovery capsule images available for retrieval
|
||||||
from this PEIM instance.
|
from this PEIM instance.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
|
|
||||||
@ -246,26 +246,26 @@ GetNumberRecoveryCapsules (
|
|||||||
Returns the size and type of the requested recovery capsule.
|
Returns the size and type of the requested recovery capsule.
|
||||||
This function returns the size and type of the capsule specified by CapsuleInstance.
|
This function returns the size and type of the capsule specified by CapsuleInstance.
|
||||||
|
|
||||||
@param PeiServices General-purpose services that are available to
|
@param PeiServices General-purpose services that are available to
|
||||||
every PEIM.
|
every PEIM.
|
||||||
@param This Indicates the
|
@param This Indicates the
|
||||||
EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.
|
EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.
|
||||||
@param CapsuleInstance Specifies for which capsule instance to
|
@param CapsuleInstance Specifies for which capsule instance to
|
||||||
retrieve the information.T his parameter must
|
retrieve the information.T his parameter must
|
||||||
be between one and the value returned by
|
be between one and the value returned by
|
||||||
GetNumberRecoveryCapsules() in
|
GetNumberRecoveryCapsules() in
|
||||||
NumberRecoveryCapsules.
|
NumberRecoveryCapsules.
|
||||||
@param Size A pointer to a caller-allocated UINTN in which
|
@param Size A pointer to a caller-allocated UINTN in which
|
||||||
the size of the requested recovery module is
|
the size of the requested recovery module is
|
||||||
returned.
|
returned.
|
||||||
@param CapsuleType A pointer to a caller-allocated EFI_GUID in
|
@param CapsuleType A pointer to a caller-allocated EFI_GUID in
|
||||||
which the type of the requested recovery
|
which the type of the requested recovery
|
||||||
capsule is returned.T he semantic meaning of
|
capsule is returned.T he semantic meaning of
|
||||||
the value returned is defined by the
|
the value returned is defined by the
|
||||||
implementation.
|
implementation.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The capsule type and size were retrieved.
|
@retval EFI_SUCCESS The capsule type and size were retrieved.
|
||||||
@retval EFI_INVALID_PARAMETER The input CapsuleInstance does not match any
|
@retval EFI_INVALID_PARAMETER The input CapsuleInstance does not match any
|
||||||
discovered recovery capsule.
|
discovered recovery capsule.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -286,12 +286,12 @@ GetRecoveryCapsuleInfo (
|
|||||||
This function, by whatever mechanism, retrieves a DXE capsule from some device
|
This function, by whatever mechanism, retrieves a DXE capsule from some device
|
||||||
and loads it into memory. Note that the published interface is device neutral.
|
and loads it into memory. Note that the published interface is device neutral.
|
||||||
|
|
||||||
@param[in] PeiServices General-purpose services that are available
|
@param[in] PeiServices General-purpose services that are available
|
||||||
to every PEIM
|
to every PEIM
|
||||||
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
@param[in] This Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI
|
||||||
instance.
|
instance.
|
||||||
@param[in] CapsuleInstance Specifies which capsule instance to retrieve.
|
@param[in] CapsuleInstance Specifies which capsule instance to retrieve.
|
||||||
@param[out] Buffer Specifies a caller-allocated buffer in which
|
@param[out] Buffer Specifies a caller-allocated buffer in which
|
||||||
the requested recovery capsule will be returned.
|
the requested recovery capsule will be returned.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The capsule was loaded correctly.
|
@retval EFI_SUCCESS The capsule was loaded correctly.
|
||||||
@ -316,11 +316,11 @@ LoadRecoveryCapsule (
|
|||||||
to a Null-terminated Unicode string.
|
to a Null-terminated Unicode string.
|
||||||
Here does not expand DBCS FAT chars.
|
Here does not expand DBCS FAT chars.
|
||||||
|
|
||||||
@param FatSize The size of the string Fat in bytes.
|
@param FatSize The size of the string Fat in bytes.
|
||||||
@param Fat A pointer to a Null-terminated string that contains
|
@param Fat A pointer to a Null-terminated string that contains
|
||||||
an 8.3 file name using an OEM character set.
|
an 8.3 file name using an OEM character set.
|
||||||
@param Str A pointer to a Null-terminated Unicode string. The
|
@param Str A pointer to a Null-terminated Unicode string. The
|
||||||
string must be allocated in advance to hold FatSize
|
string must be allocated in advance to hold FatSize
|
||||||
Unicode characters
|
Unicode characters
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -335,8 +335,8 @@ EngFatToStr (
|
|||||||
/**
|
/**
|
||||||
Performs a case-insensitive comparison of two Null-terminated Unicode strings.
|
Performs a case-insensitive comparison of two Null-terminated Unicode strings.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param Str1 First string to perform case insensitive comparison.
|
@param Str1 First string to perform case insensitive comparison.
|
||||||
@param Str2 Second string to perform case insensitive comparison.
|
@param Str2 Second string to perform case insensitive comparison.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -352,15 +352,15 @@ EngStriColl (
|
|||||||
Reads a block of data from the block device by calling
|
Reads a block of data from the block device by calling
|
||||||
underlying Block I/O service.
|
underlying Block I/O service.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param BlockDeviceNo The index for the block device number.
|
@param BlockDeviceNo The index for the block device number.
|
||||||
@param Lba The logic block address to read data from.
|
@param Lba The logic block address to read data from.
|
||||||
@param BufferSize The size of data in byte to read.
|
@param BufferSize The size of data in byte to read.
|
||||||
@param Buffer The buffer of the
|
@param Buffer The buffer of the
|
||||||
|
|
||||||
@retval EFI_DEVICE_ERROR The specified block device number exceeds the maximum
|
@retval EFI_DEVICE_ERROR The specified block device number exceeds the maximum
|
||||||
device number.
|
device number.
|
||||||
@retval EFI_DEVICE_ERROR The maximum address has exceeded the maximum address
|
@retval EFI_DEVICE_ERROR The maximum address has exceeded the maximum address
|
||||||
of the block device.
|
of the block device.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -380,16 +380,16 @@ FatReadBlock (
|
|||||||
volume structure. Note there should be a valid Block device number
|
volume structure. Note there should be a valid Block device number
|
||||||
already set.
|
already set.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global
|
@param PrivateData Global memory map for accessing global
|
||||||
variables.
|
variables.
|
||||||
@param Volume On input, the BlockDeviceNumber field of the
|
@param Volume On input, the BlockDeviceNumber field of the
|
||||||
Volume should be a valid value. On successful
|
Volume should be a valid value. On successful
|
||||||
output, all fields except the VolumeNumber
|
output, all fields except the VolumeNumber
|
||||||
field is initialized.
|
field is initialized.
|
||||||
|
|
||||||
@retval EFI_SUCCESS A FAT is found and the volume structure is
|
@retval EFI_SUCCESS A FAT is found and the volume structure is
|
||||||
initialized.
|
initialized.
|
||||||
@retval EFI_NOT_FOUND There is no FAT on the corresponding device.
|
@retval EFI_NOT_FOUND There is no FAT on the corresponding device.
|
||||||
@retval EFI_DEVICE_ERROR There is something error while accessing device.
|
@retval EFI_DEVICE_ERROR There is something error while accessing device.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -403,13 +403,13 @@ FatGetBpbInfo (
|
|||||||
/**
|
/**
|
||||||
Gets the next cluster in the cluster chain.
|
Gets the next cluster in the cluster chain.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param Volume The volume
|
@param Volume The volume
|
||||||
@param Cluster The cluster
|
@param Cluster The cluster
|
||||||
@param NextCluster The cluster number of the next cluster
|
@param NextCluster The cluster number of the next cluster
|
||||||
|
|
||||||
@retval EFI_SUCCESS The address is got
|
@retval EFI_SUCCESS The address is got
|
||||||
@retval EFI_INVALID_PARAMETER ClusterNo exceeds the MaxCluster of the volume.
|
@retval EFI_INVALID_PARAMETER ClusterNo exceeds the MaxCluster of the volume.
|
||||||
@retval EFI_DEVICE_ERROR Read disk error
|
@retval EFI_DEVICE_ERROR Read disk error
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -425,11 +425,11 @@ FatGetNextCluster (
|
|||||||
/**
|
/**
|
||||||
Disk reading.
|
Disk reading.
|
||||||
|
|
||||||
@param PrivateData the global memory map;
|
@param PrivateData the global memory map;
|
||||||
@param BlockDeviceNo the block device to read;
|
@param BlockDeviceNo the block device to read;
|
||||||
@param StartingAddress the starting address.
|
@param StartingAddress the starting address.
|
||||||
@param Size the amount of data to read.
|
@param Size the amount of data to read.
|
||||||
@param Buffer the buffer holding the data
|
@param Buffer the buffer holding the data
|
||||||
|
|
||||||
@retval EFI_SUCCESS The function completed successfully.
|
@retval EFI_SUCCESS The function completed successfully.
|
||||||
@retval EFI_DEVICE_ERROR Something error.
|
@retval EFI_DEVICE_ERROR Something error.
|
||||||
@ -448,13 +448,13 @@ FatReadDisk (
|
|||||||
/**
|
/**
|
||||||
Set a file's CurrentPos and CurrentCluster, then compute StraightReadAmount.
|
Set a file's CurrentPos and CurrentCluster, then compute StraightReadAmount.
|
||||||
|
|
||||||
@param PrivateData the global memory map
|
@param PrivateData the global memory map
|
||||||
@param File the file
|
@param File the file
|
||||||
@param Pos the Position which is offset from the file's
|
@param Pos the Position which is offset from the file's
|
||||||
CurrentPos
|
CurrentPos
|
||||||
|
|
||||||
@retval EFI_SUCCESS Success.
|
@retval EFI_SUCCESS Success.
|
||||||
@retval EFI_INVALID_PARAMETER Pos is beyond file's size.
|
@retval EFI_INVALID_PARAMETER Pos is beyond file's size.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -469,13 +469,13 @@ FatSetFilePos (
|
|||||||
/**
|
/**
|
||||||
Reads file data. Updates the file's CurrentPos.
|
Reads file data. Updates the file's CurrentPos.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param File The file.
|
@param File The file.
|
||||||
@param Size The amount of data to read.
|
@param Size The amount of data to read.
|
||||||
@param Buffer The buffer storing the data.
|
@param Buffer The buffer storing the data.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The data is read.
|
@retval EFI_SUCCESS The data is read.
|
||||||
@retval EFI_INVALID_PARAMETER File is invalid.
|
@retval EFI_INVALID_PARAMETER File is invalid.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -494,14 +494,14 @@ FatReadFile (
|
|||||||
The function updates the CurrentPos of the parent dir to after the item read.
|
The function updates the CurrentPos of the parent dir to after the item read.
|
||||||
If no more items were found, the function returns EFI_NOT_FOUND.
|
If no more items were found, the function returns EFI_NOT_FOUND.
|
||||||
|
|
||||||
@param PrivateData Global memory map for accessing global variables
|
@param PrivateData Global memory map for accessing global variables
|
||||||
@param ParentDir The parent directory.
|
@param ParentDir The parent directory.
|
||||||
@param SubFile The File structure containing the sub file that
|
@param SubFile The File structure containing the sub file that
|
||||||
is caught.
|
is caught.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The next sub file is obtained.
|
@retval EFI_SUCCESS The next sub file is obtained.
|
||||||
@retval EFI_INVALID_PARAMETER The ParentDir is not a directory.
|
@retval EFI_INVALID_PARAMETER The ParentDir is not a directory.
|
||||||
@retval EFI_NOT_FOUND No more sub file exists.
|
@retval EFI_NOT_FOUND No more sub file exists.
|
||||||
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
@retval EFI_DEVICE_ERROR Something error while accessing media.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// /** @file
|
// /** @file
|
||||||
// FatPei Localized Strings and Content
|
// FatPei Localized Strings and Content
|
||||||
//
|
//
|
||||||
// Copyright (c) 2013, 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
|
// This program and the accompanying materials are licensed and made available
|
||||||
// under the terms and conditions of the BSD License which accompanies this
|
// under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -13,8 +13,8 @@
|
|||||||
//
|
//
|
||||||
// **/
|
// **/
|
||||||
|
|
||||||
#string STR_PROPERTIES_MODULE_NAME
|
#string STR_PROPERTIES_MODULE_NAME
|
||||||
#language en-US
|
#language en-US
|
||||||
"FAT File System Lite PEI Module"
|
"FAT File System Lite PEI Module"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Routines supporting partition discovery and
|
Routines supporting partition discovery and
|
||||||
logical device reading
|
logical device reading
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, 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
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -22,11 +22,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
This function finds Eltorito partitions. Main algorithm
|
This function finds Eltorito partitions. Main algorithm
|
||||||
is ported from DXE partition driver.
|
is ported from DXE partition driver.
|
||||||
|
|
||||||
@param PrivateData The global memory map
|
@param PrivateData The global memory map
|
||||||
@param ParentBlockDevNo The parent block device
|
@param ParentBlockDevNo The parent block device
|
||||||
|
|
||||||
@retval TRUE New partitions are detected and logical block devices
|
@retval TRUE New partitions are detected and logical block devices
|
||||||
are added to block device array
|
are added to block device array
|
||||||
@retval FALSE No New partitions are added;
|
@retval FALSE No New partitions are added;
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -40,11 +40,11 @@ FatFindEltoritoPartitions (
|
|||||||
This function finds Mbr partitions. Main algorithm
|
This function finds Mbr partitions. Main algorithm
|
||||||
is ported from DXE partition driver.
|
is ported from DXE partition driver.
|
||||||
|
|
||||||
@param PrivateData The global memory map
|
@param PrivateData The global memory map
|
||||||
@param ParentBlockDevNo The parent block device
|
@param ParentBlockDevNo The parent block device
|
||||||
|
|
||||||
@retval TRUE New partitions are detected and logical block devices
|
@retval TRUE New partitions are detected and logical block devices
|
||||||
are added to block device array
|
are added to block device array
|
||||||
@retval FALSE No New partitions are added;
|
@retval FALSE No New partitions are added;
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -88,11 +88,11 @@ FatFindPartitions (
|
|||||||
This function finds Eltorito partitions. Main algorithm
|
This function finds Eltorito partitions. Main algorithm
|
||||||
is ported from DXE partition driver.
|
is ported from DXE partition driver.
|
||||||
|
|
||||||
@param PrivateData The global memory map
|
@param PrivateData The global memory map
|
||||||
@param ParentBlockDevNo The parent block device
|
@param ParentBlockDevNo The parent block device
|
||||||
|
|
||||||
@retval TRUE New partitions are detected and logical block devices
|
@retval TRUE New partitions are detected and logical block devices
|
||||||
are added to block device array
|
are added to block device array
|
||||||
@retval FALSE No New partitions are added;
|
@retval FALSE No New partitions are added;
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -309,10 +309,10 @@ FatFindEltoritoPartitions (
|
|||||||
/**
|
/**
|
||||||
Test to see if the Mbr buffer is a valid MBR
|
Test to see if the Mbr buffer is a valid MBR
|
||||||
|
|
||||||
@param Mbr Parent Handle
|
@param Mbr Parent Handle
|
||||||
@param LastLba Last Lba address on the device.
|
@param LastLba Last Lba address on the device.
|
||||||
|
|
||||||
@retval TRUE Mbr is a Valid MBR
|
@retval TRUE Mbr is a Valid MBR
|
||||||
@retval FALSE Mbr is not a Valid MBR
|
@retval FALSE Mbr is not a Valid MBR
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -384,11 +384,11 @@ PartitionValidMbr (
|
|||||||
This function finds Mbr partitions. Main algorithm
|
This function finds Mbr partitions. Main algorithm
|
||||||
is ported from DXE partition driver.
|
is ported from DXE partition driver.
|
||||||
|
|
||||||
@param PrivateData The global memory map
|
@param PrivateData The global memory map
|
||||||
@param ParentBlockDevNo The parent block device
|
@param ParentBlockDevNo The parent block device
|
||||||
|
|
||||||
@retval TRUE New partitions are detected and logical block devices
|
@retval TRUE New partitions are detected and logical block devices
|
||||||
are added to block device array
|
are added to block device array
|
||||||
@retval FALSE No New partitions are added;
|
@retval FALSE No New partitions are added;
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This Platform file is used to generate the Binary Fat Drivers
|
# This Platform file is used to generate the Binary Fat Drivers
|
||||||
# for EDK II Prime release.
|
# for EDK II Prime release.
|
||||||
# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials are licensed and made available
|
# This program and the accompanying materials are licensed and made available
|
||||||
# under the terms and conditions of the BSD License which accompanies this
|
# under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -49,7 +49,7 @@
|
|||||||
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
||||||
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
||||||
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
||||||
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
||||||
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
||||||
|
|
||||||
[LibraryClasses.common.PEIM]
|
[LibraryClasses.common.PEIM]
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
// Module implementations for FAT file system, FAT 32 UEFI Driver and FAT PEI Module
|
// Module implementations for FAT file system, FAT 32 UEFI Driver and FAT PEI Module
|
||||||
//
|
//
|
||||||
// FAT Package
|
// FAT Package
|
||||||
//
|
//
|
||||||
// FAT 32 Driver
|
// FAT 32 Driver
|
||||||
//
|
//
|
||||||
// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
|
// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
//
|
//
|
||||||
// This program and the accompanying materials are licensed and made available
|
// This program and the accompanying materials are licensed and made available
|
||||||
// under the terms and conditions of the BSD License which accompanies this
|
// under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// /** @file
|
// /** @file
|
||||||
// Fat Package Localized Strings and Content.
|
// Fat Package Localized Strings and Content.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2013, 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
|
// This program and the accompanying materials are licensed and made available
|
||||||
// under the terms and conditions of the BSD License which accompanies this
|
// under the terms and conditions of the BSD License which accompanies this
|
||||||
@ -13,8 +13,8 @@
|
|||||||
//
|
//
|
||||||
// **/
|
// **/
|
||||||
|
|
||||||
#string STR_PROPERTIES_PACKAGE_NAME
|
#string STR_PROPERTIES_PACKAGE_NAME
|
||||||
#language en-US
|
#language en-US
|
||||||
"Fat package"
|
"Fat package"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user