X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FPcatSingleSegmentPciCfg2Pei%2FPciCfg2.c;h=4b9efe298b78be1edbb3fa480ccc6a90b6cc18ec;hb=07eba7069d4c23e9b15caa1e729682a88ddf4ada;hp=32dc96e24916c17645b30f742f278b01cd989b53;hpb=77dfa7c7fc4f5be4ab6eb45e05d77060c7c309ec;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c index 32dc96e249..4b9efe298b 100644 --- a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c +++ b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c @@ -1,10 +1,10 @@ /** @file - This driver installs Single Segment Pci Configuration 2 PPI - to provide read, write and modify access to Pci configuration space in PEI phase. + This driver installs Single Segment Pci Configuration 2 PPI + to provide read, write and modify access to Pci configuration space in PEI phase. To follow PI specification, these services also support access to the unaligned Pci address. - Copyright (c) 2006 - 2010, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2018, 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 @@ -56,7 +56,7 @@ PciCfgAddressConvert ( @retval EFI_SUCCESS The function completed successfully. @retval EFI_INVALID_PARAMETER The invalid access width. - + **/ EFI_STATUS EFIAPI @@ -157,7 +157,7 @@ PciCfg2Write ( // Unaligned Pci address access, break up the request into byte by byte. // PciWrite8 (PciLibAddress, *((UINT8 *) Buffer)); - PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1)); + PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1)); } } else if (Width == EfiPeiPciCfgWidthUint32) { if ((PciLibAddress & 0x03) == 0) { @@ -176,9 +176,9 @@ PciCfg2Write ( // Unaligned Pci address access, break up the request into byte by byte. // PciWrite8 (PciLibAddress, *((UINT8 *) Buffer)); - PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1)); - PciWrite8 (PciLibAddress + 2, *((UINT8 *) Buffer + 2)); - PciWrite8 (PciLibAddress + 3, *((UINT8 *) Buffer + 3)); + PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1)); + PciWrite8 (PciLibAddress + 2, *((UINT8 *) Buffer + 2)); + PciWrite8 (PciLibAddress + 3, *((UINT8 *) Buffer + 3)); } } else { return EFI_INVALID_PARAMETER; @@ -292,9 +292,9 @@ EFI_PEI_PPI_DESCRIPTOR gPciCfg2PpiList = { }; /** - Module's entry function. + Module's entry function. This routine will install EFI_PEI_PCI_CFG2_PPI. - + @param FileHandle Handle of the file being invoked. @param PeiServices Describes the list of possible PEI Services.