X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkCompatibilityPkg%2FFoundation%2FLibrary%2FPei%2FPeiLib%2FPeiLib.c;h=11ae5a17f0a0c20d262eadac7ee16b4a2a1aee46;hb=3e99020dbf0a159e34b84e7ae9125f2e368d5390;hp=269eb8a13dc75b9c618313df2993ee66a2abfa99;hpb=3149b3779405e215594a8d1c639d5c02d164a92a;p=mirror_edk2.git diff --git a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c index 269eb8a13d..11ae5a17f0 100644 --- a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.c @@ -1,7 +1,7 @@ /*++ -Copyright (c) 2004 - 2007, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -157,6 +157,7 @@ EFI_STATUS EFIAPI PeiLibPciCfgModify ( IN EFI_PEI_SERVICES **PeiServices, + IN PEI_PCI_CFG_PPI *PciCfg, IN PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN UINTN SetBits, @@ -187,6 +188,7 @@ Routine Description: it will be updated to the following code which call this library API: PeiLibPciCfgModify ( PeiServices, + PciCfg, Width, Address, SetBits, @@ -199,7 +201,9 @@ Arguments: PeiServices An indirect pointer to the PEI Services Table published by the PEI Foundation. - + PciCfg A pointer to the this pointer of EFI_PEI_PCI_CFG_PPI. + This parameter is unused as a place holder to make + the parameter list identical to PEI_PCI_CFG_PPI_RW. Width The width of the access. Enumerated in bytes. Type EFI_PEI_PCI_CFG_PPI_WIDTH is defined in Read(). @@ -231,12 +235,12 @@ Returns: NULL, (VOID **) &PciCfg2 ); - ASSERT_PEI_ERROR (PeiServices, Status); + ASSERT_PEI_ERROR ((CONST EFI_PEI_SERVICES **) PeiServices, Status); Status = PciCfg2->Modify ( - PeiServices, + (CONST EFI_PEI_SERVICES **) PeiServices, PciCfg2, - Width, + (EFI_PEI_PCI_CFG_PPI_WIDTH) Width, Address, &SetBits, &ClearBits @@ -379,8 +383,8 @@ EFI_STATUS EFIAPI PeiLibFfsFindNextFile ( IN EFI_FV_FILETYPE SearchType, - IN EFI_PEI_FV_HANDLE FwVolHeader, - IN OUT EFI_PEI_FILE_HANDLE *FileHeader + IN EFI_PEI_FV_HANDLE FvHandle, + IN OUT EFI_PEI_FILE_HANDLE *FileHandle ) /*++ @@ -391,9 +395,9 @@ Routine Description: Arguments: SearchType - Filter to find only file of this type. - FwVolHeader - Pointer to the current FV to search. + FvHandle - Pointer to the current FV to search. FileHandle - Pointer to the file matching SearchType in FwVolHeader. - - NULL if file not found + - NULL if file not found Returns: EFI_STATUS @@ -403,7 +407,7 @@ Returns: EFI_PEI_SERVICES **PeiServices; PeiServices = GetPeiServicesTablePointer(); - return (*PeiServices)->FfsFindNextFile (PeiServices, SearchType, &FwVolHeader, &FileHeader); + return (*PeiServices)->FfsFindNextFile (PeiServices, SearchType, FvHandle, FileHandle); } @@ -467,13 +471,13 @@ Returns: EFI_PEI_SERVICES **PeiServices; PeiServices = GetPeiServicesTablePointer(); - return (*PeiServices)->FfsFindSectionData (PeiServices, SectionType, &FfsFileHeader, SectionData); + return (*PeiServices)->FfsFindSectionData (PeiServices, SectionType, (EFI_PEI_FILE_HANDLE)FfsFileHeader, SectionData); } EFI_STATUS EFIAPI PeiLibFfsGetVolumeInfo ( - IN EFI_PEI_FV_HANDLE *VolumeHandle, + IN EFI_PEI_FV_HANDLE VolumeHandle, OUT EFI_FV_INFO *VolumeInfo ) /*++