]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / PcatSingleSegmentPciCfg2Pei / PciCfg2.c
index 32dc96e24916c17645b30f742f278b01cd989b53..4b9efe298b78be1edbb3fa480ccc6a90b6cc18ec 100644 (file)
@@ -1,10 +1,10 @@
 /** @file\r
-  This driver installs Single Segment Pci Configuration 2 PPI \r
-  to provide read, write and modify access to Pci configuration space in PEI phase. \r
+  This driver installs Single Segment Pci Configuration 2 PPI\r
+  to provide read, write and modify access to Pci configuration space in PEI phase.\r
   To follow PI specification, these services also support access to the unaligned Pci address.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
@@ -56,7 +56,7 @@ PciCfgAddressConvert (
 \r
   @retval EFI_SUCCESS           The function completed successfully.\r
   @retval EFI_INVALID_PARAMETER The invalid access width.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -157,7 +157,7 @@ PciCfg2Write (
       // Unaligned Pci address access, break up the request into byte by byte.\r
       //\r
       PciWrite8 (PciLibAddress, *((UINT8 *) Buffer));\r
-      PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1)); \r
+      PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1));\r
     }\r
   } else if (Width == EfiPeiPciCfgWidthUint32) {\r
     if ((PciLibAddress & 0x03) == 0) {\r
@@ -176,9 +176,9 @@ PciCfg2Write (
       // Unaligned Pci address access, break up the request into byte by byte.\r
       //\r
       PciWrite8 (PciLibAddress, *((UINT8 *) Buffer));\r
-      PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1)); \r
-      PciWrite8 (PciLibAddress + 2, *((UINT8 *) Buffer + 2)); \r
-      PciWrite8 (PciLibAddress + 3, *((UINT8 *) Buffer + 3)); \r
+      PciWrite8 (PciLibAddress + 1, *((UINT8 *) Buffer + 1));\r
+      PciWrite8 (PciLibAddress + 2, *((UINT8 *) Buffer + 2));\r
+      PciWrite8 (PciLibAddress + 3, *((UINT8 *) Buffer + 3));\r
     }\r
   } else {\r
     return EFI_INVALID_PARAMETER;\r
@@ -292,9 +292,9 @@ EFI_PEI_PPI_DESCRIPTOR gPciCfg2PpiList = {
 };\r
 \r
 /**\r
-  Module's entry function. \r
+  Module's entry function.\r
   This routine will install EFI_PEI_PCI_CFG2_PPI.\r
-  \r
+\r
   @param  FileHandle  Handle of the file being invoked.\r
   @param  PeiServices Describes the list of possible PEI Services.\r
 \r