/** @file\r
FAT recovery PEIM entry point, Ppi Functions and FAT Api functions.\r
\r
-Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2019, 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
-distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
PEI_FAT_PRIVATE_DATA *mPrivateData = NULL;\r
\r
/**\r
- BlockIo installation nofication function. Find out all the current BlockIO\r
+ 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
\r
Status = PeiServicesAllocatePages (\r
EfiBootServicesCode,\r
- (sizeof (PEI_FAT_PRIVATE_DATA) - 1) / PEI_FAT_MEMMORY_PAGE_SIZE + 1,\r
+ (sizeof (PEI_FAT_PRIVATE_DATA) - 1) / PEI_FAT_MEMORY_PAGE_SIZE + 1,\r
&Address\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
\r
- if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {\r
- CapsuleInstance = CapsuleInstance + 1;\r
- }\r
-\r
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {\r
return EFI_NOT_FOUND;\r
}\r
return Status;\r
}\r
\r
- if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {\r
- CapsuleInstance = CapsuleInstance + 1;\r
- }\r
-\r
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {\r
return EFI_NOT_FOUND;\r
}\r
\r
/**\r
Finds the recovery file on a FAT volume.\r
- This function finds the the recovery file named FileName on a specified FAT volume and returns\r
+ This function finds 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
@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
+ @retval EFI_DEVICE_ERROR Some error occurred 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