]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/pcibus.c
Coding style modification.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / pcibus.c
index ebf817b96fd1f327c9064c3cccc8d200fcae298d..05699821911850f053129f371aff311b3226e2b9 100644 (file)
@@ -27,6 +27,7 @@ EFI_DRIVER_BINDING_PROTOCOL                   gPciBusDriverBinding = {
   NULL\r
 };\r
 \r
+EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL  *gEfiIncompatiblePciDeviceSupport = NULL;\r
 EFI_HANDLE                                    gPciHostBrigeHandles[PCI_MAX_HOST_BRIDGE_NUM];\r
 UINTN                                         gPciHostBridgeNumber;\r
 BOOLEAN                                       gFullEnumeration;\r
@@ -44,7 +45,7 @@ PciBusEntryPoint (
   IN EFI_HANDLE         ImageHandle,\r
   IN EFI_SYSTEM_TABLE   *SystemTable\r
   )\r
-/*++\r
+/**\r
 \r
 Routine Description:\r
 \r
@@ -61,7 +62,7 @@ Returns:
   EFI_SUCCESS\r
   EFI_DEVICE_ERROR\r
 \r
---*/\r
+**/\r
 // TODO:    ImageHandle - add argument and description to function comment\r
 // TODO:    SystemTable - add argument and description to function comment\r
 {\r
@@ -98,7 +99,7 @@ PciBusDriverBindingSupported (
   IN EFI_HANDLE                     Controller,\r
   IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
   )\r
-/*++\r
+/**\r
 \r
 Routine Description:\r
 \r
@@ -114,7 +115,7 @@ Returns:
 \r
   EFI_SUCCESS\r
 \r
---*/\r
+**/\r
 // TODO:    This - add argument and description to function comment\r
 // TODO:    Controller - add argument and description to function comment\r
 // TODO:    RemainingDevicePath - add argument and description to function comment\r
@@ -192,7 +193,7 @@ PciBusDriverBindingStart (
   IN EFI_HANDLE                   Controller,\r
   IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
   )\r
-/*++\r
+/**\r
 \r
 Routine Description:\r
 \r
@@ -207,7 +208,7 @@ Arguments:
 Returns:\r
 \r
 \r
---*/\r
+**/\r
 // TODO:    This - add argument and description to function comment\r
 // TODO:    Controller - add argument and description to function comment\r
 // TODO:    RemainingDevicePath - add argument and description to function comment\r
@@ -215,6 +216,12 @@ Returns:
 {\r
   EFI_STATUS  Status;\r
 \r
+  Status = gBS->LocateProtocol (\r
+                  &gEfiIncompatiblePciDeviceSupportProtocolGuid,\r
+                  NULL,\r
+                  (VOID **) &gEfiIncompatiblePciDeviceSupport\r
+                  );\r
+\r
   //\r
   // If PCI Platform protocol is available, get it now.\r
   // If the platform implements this, it must be installed before BDS phase\r
@@ -238,13 +245,11 @@ Returns:
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-\r
+  \r
   //\r
-  // Enable PCI device specified by remaining device path. BDS or other driver can call the\r
-  // start more than once.\r
+  // Start all the devices under the entire host bridge.\r
   //\r
-\r
-  StartPciDevices (Controller, RemainingDevicePath);\r
+  StartPciDevices (Controller);\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -257,7 +262,7 @@ PciBusDriverBindingStop (
   IN  UINTN                         NumberOfChildren,\r
   IN  EFI_HANDLE                    *ChildHandleBuffer\r
   )\r
-/*++\r
+/**\r
 \r
 Routine Description:\r
 \r
@@ -274,7 +279,7 @@ Arguments:
 Returns:\r
 \r
 \r
---*/\r
+**/\r
 // TODO:    This - add argument and description to function comment\r
 // TODO:    Controller - add argument and description to function comment\r
 // TODO:    NumberOfChildren - add argument and description to function comment\r