]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/PciSegmentLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / UefiPciSegmentLibPciRootBridgeIo / PciSegmentLib.c
index 7e57ec21f9695c305541a23e78e9d42733eb51b6..4661ed93868e6cc3a069af60799ac825718a1112 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   PCI Segment Library implementation using PCI Root Bridge I/O Protocol.\r
 \r
-  Copyright (c) 2007 - 2017, 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\r
   licensed and made available under the terms and conditions of\r
   the BSD License which accompanies this distribution.  The full\r
   text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php.\r
-  \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
 \r
@@ -23,14 +23,14 @@ UINTN                  mNumberOfPciRootBridges = 0;
 \r
 /**\r
   The constructor function caches data of PCI Root Bridge I/O Protocol instances.\r
-  \r
+\r
   The constructor function locates PCI Root Bridge I/O protocol instances,\r
   and caches the protocol instances, together with their segment numbers and bus ranges.\r
-  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
@@ -45,7 +45,7 @@ PciSegmentLibConstructor (
   UINTN                                Index;\r
   UINTN                                HandleCount;\r
   EFI_HANDLE                           *HandleBuffer;\r
-  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL      *PciRootBridgeIo; \r
+  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL      *PciRootBridgeIo;\r
   EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR    *Descriptors;\r
 \r
   HandleCount     = 0;\r
@@ -103,13 +103,13 @@ PciSegmentLibConstructor (
 \r
 /**\r
   The destructor function frees memory allocated by constructor.\r
-  \r
+\r
   The destructor function frees memory for data of protocol instances allocated by constructor.\r
-  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
@@ -159,7 +159,7 @@ PciSegmentLibSearchForRootBridge (
       if (BusNumber >= mPciRootBridgeData[Index].MinBusNumber && BusNumber <= mPciRootBridgeData[Index].MaxBusNumber) {\r
         return mPciRootBridgeData[Index].PciRootBridgeIo;\r
       }\r
-    }    \r
+    }\r
   }\r
   return NULL;\r
 }\r
@@ -185,7 +185,7 @@ DxePciSegmentLibPciRootBridgeIoReadWorker (
   )\r
 {\r
   UINT32                               Data;\r
-  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL      *PciRootBridgeIo; \r
+  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL      *PciRootBridgeIo;\r
 \r
   PciRootBridgeIo = PciSegmentLibSearchForRootBridge (Address);\r
   ASSERT (PciRootBridgeIo != NULL);\r
@@ -224,7 +224,7 @@ DxePciSegmentLibPciRootBridgeIoWriteWorker (
   IN  UINT32                                 Data\r
   )\r
 {\r
-  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL      *PciRootBridgeIo; \r
+  EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL      *PciRootBridgeIo;\r
 \r
   PciRootBridgeIo = PciSegmentLibSearchForRootBridge (Address);\r
   ASSERT (PciRootBridgeIo != NULL);\r
@@ -241,16 +241,16 @@ DxePciSegmentLibPciRootBridgeIoWriteWorker (
 }\r
 \r
 /**\r
-  Register a PCI device so PCI configuration registers may be accessed after \r
+  Register a PCI device so PCI configuration registers may be accessed after\r
   SetVirtualAddressMap().\r
-  \r
+\r
   If any reserved bits in Address are set, then ASSERT().\r
 \r
   @param  Address Address that encodes the PCI Bus, Device, Function and\r
                   Register.\r
-  \r
+\r
   @retval RETURN_SUCCESS           The PCI device was registered for runtime access.\r
-  @retval RETURN_UNSUPPORTED       An attempt was made to call this function \r
+  @retval RETURN_UNSUPPORTED       An attempt was made to call this function\r
                                    after ExitBootServices().\r
   @retval RETURN_UNSUPPORTED       The resources required to access the PCI device\r
                                    at runtime could not be mapped.\r