]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: PciHostBridgeLibNull: rewrap source to 79 characters
authorLaszlo Ersek <lersek@redhat.com>
Mon, 25 Jan 2016 19:47:35 +0000 (20:47 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 29 Feb 2016 12:08:58 +0000 (13:08 +0100)
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.c
MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf

index 41861b0c535ae43c97f0c5459e59260ccff4a585..fe0632dd35522d8013217ddbc0680258a472a283 100644 (file)
@@ -2,21 +2,22 @@
   Null instance of PCI Host Bridge Library with empty functions.\r
 \r
   Copyright (c) 2016, 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
+\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
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
+  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 #include <PiDxe.h>\r
 #include <Library/PciHostBridgeLib.h>\r
 #include <Library/DebugLib.h>\r
 \r
-GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 *mPciHostBridgeLibAcpiAddressSpaceTypeStr[] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
+CHAR16 *mPciHostBridgeLibAcpiAddressSpaceTypeStr[] = {\r
   L"Mem", L"I/O", L"Bus"\r
 };\r
 \r
@@ -40,7 +41,8 @@ PciHostBridgeGetRootBridges (
 }\r
 \r
 /**\r
-  Free the root bridge instances array returned from PciHostBridgeGetRootBridges().\r
+  Free the root bridge instances array returned from\r
+  PciHostBridgeGetRootBridges().\r
 \r
   @param  The root bridge instances array.\r
   @param  The count of the array.\r
@@ -59,13 +61,15 @@ PciHostBridgeFreeRootBridges (
   Inform the platform that the resource conflict happens.\r
 \r
   @param HostBridgeHandle Handle of the Host Bridge.\r
-  @param Configuration    Pointer to PCI I/O and PCI memory resource descriptors.\r
-                          The Configuration contains the resources for all the\r
-                          root bridges. The resource for each root bridge is\r
-                          terminated with END descriptor and an additional END\r
-                          is appended indicating the end of the entire resources.\r
-                          The resource descriptor field values follow the description\r
-                          in EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.SubmitResources().\r
+  @param Configuration    Pointer to PCI I/O and PCI memory resource\r
+                          descriptors. The Configuration contains the resources\r
+                          for all the root bridges. The resource for each root\r
+                          bridge is terminated with END descriptor and an\r
+                          additional END is appended indicating the end of the\r
+                          entire resources. The resource descriptor field\r
+                          values follow the description in\r
+                          EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+                          .SubmitResources().\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -84,14 +88,20 @@ PciHostBridgeResourceConflict (
     DEBUG ((EFI_D_ERROR, "RootBridge[%d]:\n", RootBridgeIndex++));\r
     for (; Descriptor->Desc == ACPI_ADDRESS_SPACE_DESCRIPTOR; Descriptor++) {\r
       ASSERT (Descriptor->ResType <\r
-              sizeof (mPciHostBridgeLibAcpiAddressSpaceTypeStr) / sizeof (mPciHostBridgeLibAcpiAddressSpaceTypeStr[0])\r
+              (sizeof (mPciHostBridgeLibAcpiAddressSpaceTypeStr) /\r
+               sizeof (mPciHostBridgeLibAcpiAddressSpaceTypeStr[0])\r
+               )\r
               );\r
       DEBUG ((EFI_D_ERROR, " %s: Length/Alignment = 0x%lx / 0x%lx\n",\r
-              mPciHostBridgeLibAcpiAddressSpaceTypeStr[Descriptor->ResType], Descriptor->AddrLen, Descriptor->AddrRangeMax));\r
+              mPciHostBridgeLibAcpiAddressSpaceTypeStr[Descriptor->ResType],\r
+              Descriptor->AddrLen, Descriptor->AddrRangeMax\r
+              ));\r
       if (Descriptor->ResType == ACPI_ADDRESS_SPACE_TYPE_MEM) {\r
         DEBUG ((EFI_D_ERROR, "     Granularity/SpecificFlag = %ld / %02x%s\n",\r
                 Descriptor->AddrSpaceGranularity, Descriptor->SpecificFlag,\r
-                ((Descriptor->SpecificFlag & EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE) != 0) ? L" (Prefetchable)" : L""\r
+                ((Descriptor->SpecificFlag &\r
+                  EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE\r
+                  ) != 0) ? L" (Prefetchable)" : L""\r
                 ));\r
       }\r
     }\r
@@ -99,6 +109,8 @@ PciHostBridgeResourceConflict (
     // Skip the END descriptor for root bridge\r
     //\r
     ASSERT (Descriptor->Desc == ACPI_END_TAG_DESCRIPTOR);\r
-    Descriptor = (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *) ((EFI_ACPI_END_TAG_DESCRIPTOR *) Descriptor + 1);\r
+    Descriptor = (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)(\r
+                   (EFI_ACPI_END_TAG_DESCRIPTOR *)Descriptor + 1\r
+                   );\r
   }\r
 }\r
index 6b302118449367155f5712322727f7d1b284f4cd..8df14924add31b7c0705277f47ccd751d5f76e70 100644 (file)
@@ -3,12 +3,13 @@
 #\r
 #  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
 #\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
+#  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
 #  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
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r
+#  IMPLIED.\r
 #\r
 #\r
 ##\r
@@ -23,7 +24,8 @@
   LIBRARY_CLASS                  = PciHostBridgeLib\r
 \r
 #\r
-# The following information is for reference only and not required by the build tools.\r
+# The following information is for reference only and not required by the build\r
+# tools.\r
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r