/** @file\r
General purpose supporting routines for FAT recovery PEIM\r
\r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
If the input Letter is not a lower-cased letter,\r
the original value is returned.\r
\r
- @param Letter The input unicode character. \r
+ @param Letter The input unicode character.\r
\r
@return The upper cased letter.\r
\r
Reads a block of data from the block device by calling\r
underlying Block I/O service.\r
\r
- @param PrivateData Global memory map for accessing global variables \r
- @param BlockDeviceNo The index for the block device number. \r
- @param Lba The logic block address to read data from. \r
- @param BufferSize The size of data in byte to read. \r
- @param Buffer The buffer of the \r
+ @param PrivateData Global memory map for accessing global variables\r
+ @param BlockDeviceNo The index for the block device number.\r
+ @param Lba The logic block address to read data from.\r
+ @param BufferSize The size of data in byte to read.\r
+ @param Buffer The buffer of the\r
\r
- @retval EFI_DEVICE_ERROR The specified block device number exceeds the maximum \r
- device number. \r
- @retval EFI_DEVICE_ERROR The maximum address has exceeded the maximum address \r
+ @retval EFI_DEVICE_ERROR The specified block device number exceeds the maximum\r
+ device number.\r
+ @retval EFI_DEVICE_ERROR The maximum address has exceeded the maximum address\r
of the block device.\r
\r
**/\r
Find a cache block designated to specific Block device and Lba.\r
If not found, invalidate an oldest one and use it. (LRU cache)\r
\r
- @param PrivateData the global memory map. \r
- @param BlockDeviceNo the Block device. \r
- @param Lba the Logical Block Address \r
- @param CachePtr Ptr to the starting address of the memory holding the \r
- data; \r
+ @param PrivateData the global memory map.\r
+ @param BlockDeviceNo the Block device.\r
+ @param Lba the Logical Block Address\r
+ @param CachePtr Ptr to the starting address of the memory holding the\r
+ data;\r
\r
@retval EFI_SUCCESS The function completed successfully.\r
@retval EFI_DEVICE_ERROR Something error while accessing media.\r
if (Index == PEI_FAT_CACHE_SIZE) {\r
Index = (Seed++) % PEI_FAT_CACHE_SIZE;\r
}\r
- \r
+\r
//\r
- // Current device ID should be less than maximum device ID. \r
+ // Current device ID should be less than maximum device ID.\r
//\r
if (BlockDeviceNo >= PEI_FAT_MAX_BLOCK_DEVICE) {\r
return EFI_DEVICE_ERROR;\r
/**\r
Disk reading.\r
\r
- @param PrivateData the global memory map; \r
- @param BlockDeviceNo the block device to read; \r
- @param StartingAddress the starting address. \r
- @param Size the amount of data to read. \r
- @param Buffer the buffer holding the data \r
+ @param PrivateData the global memory map;\r
+ @param BlockDeviceNo the block device to read;\r
+ @param StartingAddress the starting address.\r
+ @param Size the amount of data to read.\r
+ @param Buffer the buffer holding the data\r
\r
@retval EFI_SUCCESS The function completed successfully.\r
@retval EFI_DEVICE_ERROR Something error.\r
to a Null-terminated Unicode string.\r
Here does not expand DBCS FAT chars.\r
\r
- @param FatSize The size of the string Fat in bytes. \r
- @param Fat A pointer to a Null-terminated string that contains \r
- an 8.3 file name using an OEM character set. \r
- @param Str A pointer to a Null-terminated Unicode string. The \r
- string must be allocated in advance to hold FatSize \r
+ @param FatSize The size of the string Fat in bytes.\r
+ @param Fat A pointer to a Null-terminated string that contains\r
+ an 8.3 file name using an OEM character set.\r
+ @param Str A pointer to a Null-terminated Unicode string. The\r
+ string must be allocated in advance to hold FatSize\r
Unicode characters\r
\r
**/\r
/**\r
Performs a case-insensitive comparison of two Null-terminated Unicode strings.\r
\r
- @param PrivateData Global memory map for accessing global variables \r
- @param Str1 First string to perform case insensitive comparison. \r
+ @param PrivateData Global memory map for accessing global variables\r
+ @param Str1 First string to perform case insensitive comparison.\r
@param Str2 Second string to perform case insensitive comparison.\r
\r
**/\r