]> git.proxmox.com Git - mirror_edk2.git/commitdiff
FatPkg: Clean up source files
authorLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 13:06:14 +0000 (21:06 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Jun 2018 03:19:41 +0000 (11:19 +0800)
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>
13 files changed:
FatPkg/EnhancedFatDxe/FatExtra.uni
FatPkg/EnhancedFatDxe/Misc.c
FatPkg/EnhancedFatDxe/Open.c
FatPkg/EnhancedFatDxe/UnicodeCollation.c
FatPkg/FatPei/FatLiteAccess.c
FatPkg/FatPei/FatLiteApi.c
FatPkg/FatPei/FatLiteLib.c
FatPkg/FatPei/FatLitePeim.h
FatPkg/FatPei/FatPeiExtra.uni
FatPkg/FatPei/Part.c
FatPkg/FatPkg.dsc
FatPkg/FatPkg.uni
FatPkg/FatPkgExtra.uni

index 1c669298619df9ac5552dc0202e1cacf8cb38ce4..37e68b1cb308d0d21ce8e306c2b320e1744ad63a 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // Fat Localized Strings and Content\r
 //\r
-// Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 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
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "FAT File System DXE Driver"\r
 \r
 \r
index af66b1d0e31792be3cd6c7f9738fc3ebc744056b..244b9dd921afb21cb7e1291cd06e3523bc42d492 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Miscellaneous functions.\r
 \r
-Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\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
 distribution. The full text of the license may be found at\r
@@ -164,7 +164,7 @@ FatQueueTask (
       ) {\r
     Subtask = CR (Link, FAT_SUBTASK, Link, FAT_SUBTASK_SIGNATURE);\r
     if (Subtask->Write) {\r
-      \r
+\r
       Status = IFile->OFile->Volume->DiskIo2->WriteDiskEx (\r
                                                 IFile->OFile->Volume->DiskIo2,\r
                                                 IFile->OFile->Volume->MediaId,\r
index 7b273fe1b146a75a5006d8a94496fab3193111ad..a64f8ff1f3cdb2ccfaba85ca836d0ce356f723c1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines dealing with file open.\r
 \r
-Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\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
 distribution. The full text of the license may be found at\r
@@ -234,7 +234,7 @@ FatOpenEx (
   }\r
 \r
   //\r
-  // Check for valid Attributes for file creation case. \r
+  // Check for valid Attributes for file creation case.\r
   //\r
   if (((OpenMode & EFI_FILE_MODE_CREATE) != 0) && (Attributes & (EFI_FILE_READ_ONLY | (~EFI_FILE_VALID_ATTR))) != 0) {\r
     return EFI_INVALID_PARAMETER;\r
index b240a931ff4d1bc1a00269171302ef5ade5b4fea..0c178fad433f3b2dfbc86e3b1c358ea8c932faf8 100644 (file)
@@ -2,7 +2,7 @@
   Unicode Collation Support component that hides the trivial difference of Unicode Collation\r
   and Unicode collation 2 Protocol.\r
 \r
-  Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\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
 distribution. The full text of the license may be found at\r
@@ -83,7 +83,7 @@ InitializeUnicodeCollationSupportWorker (
 \r
     //\r
     // Find the best matching matching language from the supported languages\r
-    // of Unicode Collation (2) protocol. \r
+    // of Unicode Collation (2) protocol.\r
     //\r
     BestLanguage = GetBestLanguage (\r
                      Uci->SupportedLanguages,\r
index a92c5bff9983d55a9b048c5b225e04fca1bc523f..12a3be33c5a6be1520c4bafb8d8e5763c3157810 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FAT file system access routines for FAT recovery PEIM\r
 \r
-Copyright (c) 2006 - 2017, 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
@@ -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\r
   already set.\r
 \r
-  @param  PrivateData            Global memory map for accessing global \r
-                                 variables. \r
-  @param  Volume                 On input, the BlockDeviceNumber field of the \r
-                                 Volume  should be a valid value. On successful \r
-                                 output, all  fields except the VolumeNumber \r
-                                 field is initialized. \r
+  @param  PrivateData            Global memory map for accessing global\r
+                                 variables.\r
+  @param  Volume                 On input, the BlockDeviceNumber field of the\r
+                                 Volume  should be a valid value. On successful\r
+                                 output, all  fields except the VolumeNumber\r
+                                 field is initialized.\r
 \r
-  @retval EFI_SUCCESS            A FAT is found and the volume structure is \r
-                                 initialized. \r
-  @retval EFI_NOT_FOUND          There is no FAT on the corresponding device. \r
+  @retval EFI_SUCCESS            A FAT is found and the volume structure is\r
+                                 initialized.\r
+  @retval EFI_NOT_FOUND          There is no FAT on the corresponding device.\r
   @retval EFI_DEVICE_ERROR       There is something error while accessing device.\r
 \r
 **/\r
@@ -177,13 +177,13 @@ FatGetBpbInfo (
 /**\r
   Gets the next cluster in the cluster chain\r
 \r
-  @param  PrivateData            Global memory map for accessing global variables \r
-  @param  Volume                 The volume \r
-  @param  Cluster                The cluster \r
-  @param  NextCluster            The cluster number of the next cluster \r
+  @param  PrivateData            Global memory map for accessing global variables\r
+  @param  Volume                 The volume\r
+  @param  Cluster                The cluster\r
+  @param  NextCluster            The cluster number of the next cluster\r
 \r
-  @retval EFI_SUCCESS            The address is got \r
-  @retval EFI_INVALID_PARAMETER  ClusterNo exceeds the MaxCluster of the volume. \r
+  @retval EFI_SUCCESS            The address is got\r
+  @retval EFI_INVALID_PARAMETER  ClusterNo exceeds the MaxCluster of the volume.\r
   @retval EFI_DEVICE_ERROR       Read disk error\r
 \r
 **/\r
@@ -256,13 +256,13 @@ FatGetNextCluster (
 /**\r
   Set a file's CurrentPos and CurrentCluster, then compute StraightReadAmount.\r
 \r
-  @param  PrivateData            the global memory map \r
-  @param  File                   the file \r
-  @param  Pos                    the Position which is offset from the file's \r
-                                 CurrentPos \r
+  @param  PrivateData            the global memory map\r
+  @param  File                   the file\r
+  @param  Pos                    the Position which is offset from the file's\r
+                                 CurrentPos\r
 \r
-  @retval EFI_SUCCESS            Success. \r
-  @retval EFI_INVALID_PARAMETER  Pos is beyond file's size. \r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_INVALID_PARAMETER  Pos is beyond file's size.\r
   @retval EFI_DEVICE_ERROR       Something error while accessing media.\r
 \r
 **/\r
@@ -346,13 +346,13 @@ FatSetFilePos (
 /**\r
   Reads file data. Updates the file's CurrentPos.\r
 \r
-  @param  PrivateData            Global memory map for accessing global variables \r
-  @param  File                   The file. \r
-  @param  Size                   The amount of data to read. \r
-  @param  Buffer                 The buffer storing the data. \r
+  @param  PrivateData            Global memory map for accessing global variables\r
+  @param  File                   The file.\r
+  @param  Size                   The amount of data to read.\r
+  @param  Buffer                 The buffer storing the data.\r
 \r
-  @retval EFI_SUCCESS            The data is read. \r
-  @retval EFI_INVALID_PARAMETER  File is invalid. \r
+  @retval EFI_SUCCESS            The data is read.\r
+  @retval EFI_INVALID_PARAMETER  File is invalid.\r
   @retval EFI_DEVICE_ERROR       Something error while accessing media.\r
 \r
 **/\r
@@ -434,14 +434,14 @@ FatReadFile (
   The function updates the CurrentPos of the parent dir to after the item read.\r
   If no more items were found, the function returns EFI_NOT_FOUND.\r
 \r
-  @param  PrivateData            Global memory map for accessing global variables \r
-  @param  ParentDir              The parent directory. \r
-  @param  SubFile                The File structure containing the sub file that \r
-                                 is caught. \r
+  @param  PrivateData            Global memory map for accessing global variables\r
+  @param  ParentDir              The parent directory.\r
+  @param  SubFile                The File structure containing the sub file that\r
+                                 is caught.\r
 \r
-  @retval EFI_SUCCESS            The next sub file is obtained. \r
-  @retval EFI_INVALID_PARAMETER  The ParentDir is not a directory. \r
-  @retval EFI_NOT_FOUND          No more sub file exists. \r
+  @retval EFI_SUCCESS            The next sub file is obtained.\r
+  @retval EFI_INVALID_PARAMETER  The ParentDir is not a directory.\r
+  @retval EFI_NOT_FOUND          No more sub file exists.\r
   @retval EFI_DEVICE_ERROR       Something error while accessing media.\r
 \r
 **/\r
index b455390610bc97b407281b5d9d3c544cdf4ce973..b71eaaab2a60051632a6429c8d6a15f8ba07a71a 100644 (file)
@@ -21,12 +21,12 @@ PEI_FAT_PRIVATE_DATA  *mPrivateData = NULL;
   BlockIo installation nofication function. Find out all the current BlockIO\r
   PPIs in the system and add them into private data. Assume there is\r
 \r
-  @param  PeiServices             General purpose services available to every \r
-                                  PEIM. \r
-  @param  NotifyDescriptor        The typedef structure of the notification \r
-                                  descriptor. Not used in this function. \r
-  @param  Ppi                     The typedef structure of the PPI descriptor. \r
-                                  Not used in this function. \r
+  @param  PeiServices             General purpose services available to every\r
+                                  PEIM.\r
+  @param  NotifyDescriptor        The typedef structure of the notification\r
+                                  descriptor. Not used in this function.\r
+  @param  Ppi                     The typedef structure of the PPI descriptor.\r
+                                  Not used in this function.\r
 \r
   @retval EFI_SUCCESS             The function completed successfully.\r
 \r
@@ -43,8 +43,8 @@ BlockIoNotifyEntry (
 /**\r
   Discover all the block I/O devices to find the FAT volume.\r
 \r
-  @param  PrivateData             Global memory map for accessing global \r
-                                  variables. \r
+  @param  PrivateData             Global memory map for accessing global\r
+                                  variables.\r
   @param  BlockIo2                Boolean to show whether using BlockIo2 or BlockIo\r
 \r
   @retval EFI_SUCCESS             The function completed successfully.\r
@@ -203,12 +203,12 @@ UpdateBlocksAndVolumes (
   BlockIo installation notification function. Find out all the current BlockIO\r
   PPIs in the system and add them into private data. Assume there is\r
 \r
-  @param  PeiServices             General purpose services available to every \r
-                                  PEIM. \r
-  @param  NotifyDescriptor        The typedef structure of the notification \r
-                                  descriptor. Not used in this function. \r
-  @param  Ppi                     The typedef structure of the PPI descriptor. \r
-                                  Not used in this function. \r
+  @param  PeiServices             General purpose services available to every\r
+                                  PEIM.\r
+  @param  NotifyDescriptor        The typedef structure of the notification\r
+                                  descriptor. Not used in this function.\r
+  @param  Ppi                     The typedef structure of the PPI descriptor.\r
+                                  Not used in this function.\r
 \r
   @retval EFI_SUCCESS             The function completed successfully.\r
 \r
@@ -234,13 +234,13 @@ BlockIoNotifyEntry (
   Installs the Device Recovery Module PPI, Initialize BlockIo Ppi\r
   installation notification\r
 \r
-  @param  FileHandle              Handle of the file being invoked. Type \r
-                                  EFI_PEI_FILE_HANDLE is defined in  \r
-                                  FfsFindNextFile(). \r
-  @param  PeiServices             Describes the list of possible PEI Services. \r
+  @param  FileHandle              Handle of the file being invoked. Type\r
+                                  EFI_PEI_FILE_HANDLE is defined in\r
+                                  FfsFindNextFile().\r
+  @param  PeiServices             Describes the list of possible PEI Services.\r
 \r
-  @retval EFI_SUCCESS             The entry point was executed successfully. \r
-  @retval EFI_OUT_OF_RESOURCES    There is no enough memory to complete the \r
+  @retval EFI_SUCCESS             The entry point was executed successfully.\r
+  @retval EFI_OUT_OF_RESOURCES    There is no enough memory to complete the\r
                                   operations.\r
 \r
 **/\r
@@ -330,18 +330,18 @@ FatPeimEntry (
   Returns the number of DXE capsules residing on the device.\r
 \r
   This function searches for DXE capsules from the associated device and returns\r
-  the number and maximum size in bytes of the capsules discovered. Entry 1 is \r
-  assumed to be the highest load priority and entry N is assumed to be the lowest \r
+  the number and maximum size in bytes of the capsules discovered. Entry 1 is\r
+  assumed to be the highest load priority and entry N is assumed to be the lowest\r
   priority.\r
 \r
-  @param[in]  PeiServices              General-purpose services that are available \r
+  @param[in]  PeiServices              General-purpose services that are available\r
                                        to every PEIM\r
   @param[in]  This                     Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI\r
                                        instance.\r
-  @param[out] NumberRecoveryCapsules   Pointer to a caller-allocated UINTN. On \r
-                                       output, *NumberRecoveryCapsules contains \r
-                                       the number of recovery capsule images \r
-                                       available for retrieval from this PEIM \r
+  @param[out] NumberRecoveryCapsules   Pointer to a caller-allocated UINTN. On\r
+                                       output, *NumberRecoveryCapsules contains\r
+                                       the number of recovery capsule images\r
+                                       available for retrieval from this PEIM\r
                                        instance.\r
 \r
   @retval EFI_SUCCESS        One or more capsules were discovered.\r
@@ -394,18 +394,18 @@ GetNumberRecoveryCapsules (
   This function gets the size and type of the capsule specified by CapsuleInstance.\r
 \r
   @param[in]  PeiServices       General-purpose services that are available to every PEIM\r
-  @param[in]  This              Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI \r
+  @param[in]  This              Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI\r
                                 instance.\r
-  @param[in]  CapsuleInstance   Specifies for which capsule instance to retrieve \r
-                                the information.  This parameter must be between \r
-                                one and the value returned by GetNumberRecoveryCapsules() \r
+  @param[in]  CapsuleInstance   Specifies for which capsule instance to retrieve\r
+                                the information.  This parameter must be between\r
+                                one and the value returned by GetNumberRecoveryCapsules()\r
                                 in NumberRecoveryCapsules.\r
-  @param[out] Size              A pointer to a caller-allocated UINTN in which \r
-                                the size of the requested recovery module is \r
+  @param[out] Size              A pointer to a caller-allocated UINTN in which\r
+                                the size of the requested recovery module is\r
                                 returned.\r
-  @param[out] CapsuleType       A pointer to a caller-allocated EFI_GUID in which \r
-                                the type of the requested recovery capsule is \r
-                                returned.  The semantic meaning of the value \r
+  @param[out] CapsuleType       A pointer to a caller-allocated EFI_GUID in which\r
+                                the type of the requested recovery capsule is\r
+                                returned.  The semantic meaning of the value\r
                                 returned is defined by the implementation.\r
 \r
   @retval EFI_SUCCESS        One or more capsules were discovered.\r
@@ -530,12 +530,12 @@ GetRecoveryCapsuleInfo (
   This function, by whatever mechanism, retrieves a DXE capsule from some device\r
   and loads it into memory. Note that the published interface is device neutral.\r
 \r
-  @param[in]     PeiServices       General-purpose services that are available \r
+  @param[in]     PeiServices       General-purpose services that are available\r
                                    to every PEIM\r
   @param[in]     This              Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI\r
                                    instance.\r
   @param[in]     CapsuleInstance   Specifies which capsule instance to retrieve.\r
-  @param[out]    Buffer            Specifies a caller-allocated buffer in which \r
+  @param[out]    Buffer            Specifies a caller-allocated buffer in which\r
                                    the requested recovery capsule will be returned.\r
 \r
   @retval EFI_SUCCESS        The capsule was loaded correctly.\r
@@ -608,16 +608,16 @@ LoadRecoveryCapsule (
   This function finds the the recovery file named FileName on a specified FAT volume and returns\r
   its FileHandle pointer.\r
 \r
-  @param  PrivateData             Global memory map for accessing global \r
-                                  variables. \r
-  @param  VolumeIndex             The index of the volume. \r
-  @param  FileName                The recovery file name to find. \r
-  @param  Handle                  The output file handle. \r
+  @param  PrivateData             Global memory map for accessing global\r
+                                  variables.\r
+  @param  VolumeIndex             The index of the volume.\r
+  @param  FileName                The recovery file name to find.\r
+  @param  Handle                  The output file handle.\r
 \r
-  @retval EFI_DEVICE_ERROR        Some error occured when operating the FAT \r
-                                  volume. \r
-  @retval EFI_NOT_FOUND           The recovery file was not found. \r
-  @retval EFI_SUCCESS             The recovery file was successfully found on the \r
+  @retval EFI_DEVICE_ERROR        Some error occured when operating the FAT\r
+                                  volume.\r
+  @retval EFI_NOT_FOUND           The recovery file was not found.\r
+  @retval EFI_SUCCESS             The recovery file was successfully found on the\r
                                   FAT volume.\r
 \r
 **/\r
index 109789a54baa0e412e52913256dc8c92fb4c0d82..947fee42f1728f35b00a22ccd5da960b8bfe85f6 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -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,\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
@@ -47,15 +47,15 @@ ToUpper (
   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
@@ -125,11 +125,11 @@ FatReadBlock (
   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
@@ -179,9 +179,9 @@ FatGetCacheBlock (
   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
@@ -217,11 +217,11 @@ FatGetCacheBlock (
 /**\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
@@ -306,11 +306,11 @@ FatReadDisk (
   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
@@ -344,8 +344,8 @@ EngFatToStr (
 /**\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
index d343d88f7e60392c946ef8d4d196c42cfbdd309c..fbf887da5fa353c105ad84fff4df96845caf0a80 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Data structures for FAT recovery PEIM\r
 \r
-Copyright (c) 2006 - 2016, 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
@@ -193,16 +193,16 @@ typedef struct {
   This function finds the the recovery file named FileName on a specified FAT volume and returns\r
   its FileHandle pointer.\r
 \r
-  @param  PrivateData             Global memory map for accessing global \r
-                                  variables. \r
-  @param  VolumeIndex             The index of the volume. \r
-  @param  FileName                The recovery file name to find. \r
-  @param  Handle                  The output file handle. \r
+  @param  PrivateData             Global memory map for accessing global\r
+                                  variables.\r
+  @param  VolumeIndex             The index of the volume.\r
+  @param  FileName                The recovery file name to find.\r
+  @param  Handle                  The output file handle.\r
 \r
-  @retval EFI_DEVICE_ERROR        Some error occured when operating the FAT \r
-                                  volume. \r
-  @retval EFI_NOT_FOUND           The recovery file was not found. \r
-  @retval EFI_SUCCESS             The recovery file was successfully found on the \r
+  @retval EFI_DEVICE_ERROR        Some error occured when operating the FAT\r
+                                  volume.\r
+  @retval EFI_NOT_FOUND           The recovery file was not found.\r
+  @retval EFI_SUCCESS             The recovery file was successfully found on the\r
                                   FAT volume.\r
 \r
 **/\r
@@ -221,14 +221,14 @@ FindRecoveryFile (
   returns the number and maximum size in bytes of the capsules discovered.Entry 1 is assumed to be\r
   the highest load priority and entry N is assumed to be the lowest priority.\r
 \r
-  @param  PeiServices             General-purpose services that are available to \r
-                                  every PEIM. \r
-  @param  This                    Indicates the \r
-                                  EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance. \r
-  @param  NumberRecoveryCapsules  Pointer to a caller-allocated UINTN.On output, \r
-                                  *NumberRecoveryCapsules contains the number of \r
-                                  recovery capsule images available for retrieval \r
-                                  from this PEIM instance. \r
+  @param  PeiServices             General-purpose services that are available to\r
+                                  every PEIM.\r
+  @param  This                    Indicates the\r
+                                  EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
+  @param  NumberRecoveryCapsules  Pointer to a caller-allocated UINTN.On output,\r
+                                  *NumberRecoveryCapsules contains the number of\r
+                                  recovery capsule images available for retrieval\r
+                                  from this PEIM instance.\r
 \r
   @retval EFI_SUCCESS             The function completed successfully.\r
 \r
@@ -246,26 +246,26 @@ GetNumberRecoveryCapsules (
   Returns the size and type of the requested recovery capsule.\r
   This function returns the size and type of the capsule specified by CapsuleInstance.\r
 \r
-  @param  PeiServices             General-purpose services that are available to \r
-                                  every PEIM. \r
-  @param  This                    Indicates the \r
-                                  EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance. \r
-  @param  CapsuleInstance         Specifies for which capsule instance to \r
-                                  retrieve the information.T his parameter must \r
-                                  be between one and the value returned by \r
-                                  GetNumberRecoveryCapsules() in \r
-                                  NumberRecoveryCapsules. \r
-  @param  Size                    A pointer to a caller-allocated UINTN in which \r
-                                  the size of the requested recovery module is \r
-                                  returned. \r
-  @param  CapsuleType             A pointer to a caller-allocated EFI_GUID in \r
-                                  which the type of the requested recovery \r
-                                  capsule is returned.T he semantic meaning of \r
-                                  the value returned is defined by the \r
-                                  implementation. \r
-\r
-  @retval EFI_SUCCESS             The capsule type and size were retrieved. \r
-  @retval EFI_INVALID_PARAMETER   The input CapsuleInstance does not match any \r
+  @param  PeiServices             General-purpose services that are available to\r
+                                  every PEIM.\r
+  @param  This                    Indicates the\r
+                                  EFI_PEI_DEVICE_RECOVERY_MODULE_PPI instance.\r
+  @param  CapsuleInstance         Specifies for which capsule instance to\r
+                                  retrieve the information.T his parameter must\r
+                                  be between one and the value returned by\r
+                                  GetNumberRecoveryCapsules() in\r
+                                  NumberRecoveryCapsules.\r
+  @param  Size                    A pointer to a caller-allocated UINTN in which\r
+                                  the size of the requested recovery module is\r
+                                  returned.\r
+  @param  CapsuleType             A pointer to a caller-allocated EFI_GUID in\r
+                                  which the type of the requested recovery\r
+                                  capsule is returned.T he semantic meaning of\r
+                                  the value returned is defined by the\r
+                                  implementation.\r
+\r
+  @retval EFI_SUCCESS             The capsule type and size were retrieved.\r
+  @retval EFI_INVALID_PARAMETER   The input CapsuleInstance does not match any\r
                                   discovered recovery capsule.\r
 \r
 **/\r
@@ -286,12 +286,12 @@ GetRecoveryCapsuleInfo (
   This function, by whatever mechanism, retrieves a DXE capsule from some device\r
   and loads it into memory. Note that the published interface is device neutral.\r
 \r
-  @param[in]     PeiServices       General-purpose services that are available \r
+  @param[in]     PeiServices       General-purpose services that are available\r
                                    to every PEIM\r
   @param[in]     This              Indicates the EFI_PEI_DEVICE_RECOVERY_MODULE_PPI\r
                                    instance.\r
   @param[in]     CapsuleInstance   Specifies which capsule instance to retrieve.\r
-  @param[out]    Buffer            Specifies a caller-allocated buffer in which \r
+  @param[out]    Buffer            Specifies a caller-allocated buffer in which\r
                                    the requested recovery capsule will be returned.\r
 \r
   @retval EFI_SUCCESS        The capsule was loaded correctly.\r
@@ -316,11 +316,11 @@ LoadRecoveryCapsule (
   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
@@ -335,8 +335,8 @@ EngFatToStr (
 /**\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
@@ -352,15 +352,15 @@ EngStriColl (
   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
@@ -380,16 +380,16 @@ FatReadBlock (
   volume structure. Note there should be a valid Block device number\r
   already set.\r
 \r
-  @param  PrivateData            Global memory map for accessing global \r
-                                 variables. \r
-  @param  Volume                 On input, the BlockDeviceNumber field of the \r
-                                 Volume  should be a valid value. On successful \r
-                                 output, all  fields except the VolumeNumber \r
-                                 field is initialized. \r
+  @param  PrivateData            Global memory map for accessing global\r
+                                 variables.\r
+  @param  Volume                 On input, the BlockDeviceNumber field of the\r
+                                 Volume  should be a valid value. On successful\r
+                                 output, all  fields except the VolumeNumber\r
+                                 field is initialized.\r
 \r
-  @retval EFI_SUCCESS            A FAT is found and the volume structure is \r
-                                 initialized. \r
-  @retval EFI_NOT_FOUND          There is no FAT on the corresponding device. \r
+  @retval EFI_SUCCESS            A FAT is found and the volume structure is\r
+                                 initialized.\r
+  @retval EFI_NOT_FOUND          There is no FAT on the corresponding device.\r
   @retval EFI_DEVICE_ERROR       There is something error while accessing device.\r
 \r
 **/\r
@@ -403,13 +403,13 @@ FatGetBpbInfo (
 /**\r
   Gets the next cluster in the cluster chain.\r
 \r
-  @param  PrivateData            Global memory map for accessing global variables \r
-  @param  Volume                 The volume \r
-  @param  Cluster                The cluster \r
-  @param  NextCluster            The cluster number of the next cluster \r
+  @param  PrivateData            Global memory map for accessing global variables\r
+  @param  Volume                 The volume\r
+  @param  Cluster                The cluster\r
+  @param  NextCluster            The cluster number of the next cluster\r
 \r
-  @retval EFI_SUCCESS            The address is got \r
-  @retval EFI_INVALID_PARAMETER  ClusterNo exceeds the MaxCluster of the volume. \r
+  @retval EFI_SUCCESS            The address is got\r
+  @retval EFI_INVALID_PARAMETER  ClusterNo exceeds the MaxCluster of the volume.\r
   @retval EFI_DEVICE_ERROR       Read disk error\r
 \r
 **/\r
@@ -425,11 +425,11 @@ FatGetNextCluster (
 /**\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
@@ -448,13 +448,13 @@ FatReadDisk (
 /**\r
   Set a file's CurrentPos and CurrentCluster, then compute StraightReadAmount.\r
 \r
-  @param  PrivateData            the global memory map \r
-  @param  File                   the file \r
-  @param  Pos                    the Position which is offset from the file's \r
-                                 CurrentPos \r
+  @param  PrivateData            the global memory map\r
+  @param  File                   the file\r
+  @param  Pos                    the Position which is offset from the file's\r
+                                 CurrentPos\r
 \r
-  @retval EFI_SUCCESS            Success. \r
-  @retval EFI_INVALID_PARAMETER  Pos is beyond file's size. \r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_INVALID_PARAMETER  Pos is beyond file's size.\r
   @retval EFI_DEVICE_ERROR       Something error while accessing media.\r
 \r
 **/\r
@@ -469,13 +469,13 @@ FatSetFilePos (
 /**\r
   Reads file data. Updates the file's CurrentPos.\r
 \r
-  @param  PrivateData            Global memory map for accessing global variables \r
-  @param  File                   The file. \r
-  @param  Size                   The amount of data to read. \r
-  @param  Buffer                 The buffer storing the data. \r
+  @param  PrivateData            Global memory map for accessing global variables\r
+  @param  File                   The file.\r
+  @param  Size                   The amount of data to read.\r
+  @param  Buffer                 The buffer storing the data.\r
 \r
-  @retval EFI_SUCCESS            The data is read. \r
-  @retval EFI_INVALID_PARAMETER  File is invalid. \r
+  @retval EFI_SUCCESS            The data is read.\r
+  @retval EFI_INVALID_PARAMETER  File is invalid.\r
   @retval EFI_DEVICE_ERROR       Something error while accessing media.\r
 \r
 **/\r
@@ -494,14 +494,14 @@ FatReadFile (
   The function updates the CurrentPos of the parent dir to after the item read.\r
   If no more items were found, the function returns EFI_NOT_FOUND.\r
 \r
-  @param  PrivateData            Global memory map for accessing global variables \r
-  @param  ParentDir              The parent directory. \r
-  @param  SubFile                The File structure containing the sub file that \r
-                                 is caught. \r
+  @param  PrivateData            Global memory map for accessing global variables\r
+  @param  ParentDir              The parent directory.\r
+  @param  SubFile                The File structure containing the sub file that\r
+                                 is caught.\r
 \r
-  @retval EFI_SUCCESS            The next sub file is obtained. \r
-  @retval EFI_INVALID_PARAMETER  The ParentDir is not a directory. \r
-  @retval EFI_NOT_FOUND          No more sub file exists. \r
+  @retval EFI_SUCCESS            The next sub file is obtained.\r
+  @retval EFI_INVALID_PARAMETER  The ParentDir is not a directory.\r
+  @retval EFI_NOT_FOUND          No more sub file exists.\r
   @retval EFI_DEVICE_ERROR       Something error while accessing media.\r
 \r
 **/\r
index 83a02f6ed3761c942bef3a6100067136e9571ec8..24562b4c7c9b227a96b8a4e2dd3d71b058fcb4c6 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // FatPei Localized Strings and Content\r
 //\r
-// Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 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
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "FAT File System Lite PEI Module"\r
 \r
 \r
index 1c1b2896bf77c3b93d001192d70a4a62edd6f586..be185460f310914b35e4342bb672af0aed7d58ee 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  Routines supporting partition discovery and \r
+  Routines supporting partition discovery and\r
   logical device reading\r
 \r
-Copyright (c) 2006 - 2008, 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
@@ -22,11 +22,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   This function finds Eltorito partitions. Main algorithm\r
   is ported from DXE partition driver.\r
 \r
-  @param  PrivateData       The global memory map \r
-  @param  ParentBlockDevNo  The parent block device \r
+  @param  PrivateData       The global memory map\r
+  @param  ParentBlockDevNo  The parent block device\r
 \r
-  @retval TRUE              New partitions are detected and logical block devices \r
-                            are  added to block device array \r
+  @retval TRUE              New partitions are detected and logical block devices\r
+                            are  added to block device array\r
   @retval FALSE             No New partitions are added;\r
 \r
 **/\r
@@ -40,11 +40,11 @@ FatFindEltoritoPartitions (
   This function finds Mbr partitions. Main algorithm\r
   is ported from DXE partition driver.\r
 \r
-  @param  PrivateData       The global memory map \r
-  @param  ParentBlockDevNo  The parent block device \r
+  @param  PrivateData       The global memory map\r
+  @param  ParentBlockDevNo  The parent block device\r
 \r
-  @retval TRUE              New partitions are detected and logical block devices \r
-                            are  added to block device array \r
+  @retval TRUE              New partitions are detected and logical block devices\r
+                            are  added to block device array\r
   @retval FALSE             No New partitions are added;\r
 \r
 **/\r
@@ -88,11 +88,11 @@ FatFindPartitions (
   This function finds Eltorito partitions. Main algorithm\r
   is ported from DXE partition driver.\r
 \r
-  @param  PrivateData       The global memory map \r
-  @param  ParentBlockDevNo  The parent block device \r
+  @param  PrivateData       The global memory map\r
+  @param  ParentBlockDevNo  The parent block device\r
 \r
-  @retval TRUE              New partitions are detected and logical block devices \r
-                            are  added to block device array \r
+  @retval TRUE              New partitions are detected and logical block devices\r
+                            are  added to block device array\r
   @retval FALSE             No New partitions are added;\r
 \r
 **/\r
@@ -309,10 +309,10 @@ FatFindEltoritoPartitions (
 /**\r
   Test to see if the Mbr buffer is a valid MBR\r
 \r
-  @param  Mbr               Parent Handle \r
-  @param  LastLba           Last Lba address on the device. \r
+  @param  Mbr               Parent Handle\r
+  @param  LastLba           Last Lba address on the device.\r
 \r
-  @retval TRUE              Mbr is a Valid MBR \r
+  @retval TRUE              Mbr is a Valid MBR\r
   @retval FALSE             Mbr is not a Valid MBR\r
 \r
 **/\r
@@ -384,11 +384,11 @@ PartitionValidMbr (
   This function finds Mbr partitions. Main algorithm\r
   is ported from DXE partition driver.\r
 \r
-  @param  PrivateData       The global memory map \r
-  @param  ParentBlockDevNo  The parent block device \r
+  @param  PrivateData       The global memory map\r
+  @param  ParentBlockDevNo  The parent block device\r
 \r
-  @retval TRUE              New partitions are detected and logical block devices \r
-                            are  added to block device array \r
+  @retval TRUE              New partitions are detected and logical block devices\r
+                            are  added to block device array\r
   @retval FALSE             No New partitions are added;\r
 \r
 **/\r
index 841201c2459c9a1d6c782b2f71abbb18cb1f8744..e856a237f8d16bc70652ce66416298a23d5b29fe 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #  This Platform file is used to generate the Binary Fat Drivers\r
 #  for EDK II Prime release.\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 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
@@ -49,7 +49,7 @@
   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
   UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf  \r
+  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
 \r
 [LibraryClasses.common.PEIM]\r
index 262fe9a85155b7a2d14a1a2a23bc367617965233..2b04986290eb27bee5d04ff6b57acdd76ae81c46 100644 (file)
@@ -2,10 +2,10 @@
 // Module implementations for FAT file system, FAT 32 UEFI Driver and FAT PEI Module\r
 //\r
 // FAT Package\r
-// \r
+//\r
 // FAT 32 Driver\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 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
index 373ddb49a54a2c2a05720d07f224182f09ffd1ea..ab624e8a05380a121f54e79bc3a2ac99b72f711f 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // Fat Package Localized Strings and Content.\r
 //\r
-// Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 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
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_PACKAGE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_PACKAGE_NAME\r
+#language en-US\r
 "Fat package"\r
 \r
 \r