]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c
1. Added EdkPciIncompatibleDeviceSupportLib in EdkModulePkg, this library is used...
[mirror_edk2.git] / EdkModulePkg / Bus / Pci / PciBus / Dxe / pcibus.c
index eb6713f4dd1eb0645289954b957f3afd9cbc1d20..a874b8a85cec54c690a1c1644e20f5ef1cef0c29 100644 (file)
@@ -1,24 +1,24 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
-                                                                                          \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
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
+\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
 Module Name:\r
 \r
   PciBus.c\r
-  \r
+\r
 Abstract:\r
 \r
   PCI Bus Driver\r
 \r
 Revision History\r
\r
+\r
 --*/\r
 \r
 #include "pcibus.h"\r
@@ -36,7 +36,6 @@ 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
@@ -68,8 +67,8 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS \r
-  EFI_DEVICE_ERROR \r
+  EFI_SUCCESS\r
+  EFI_DEVICE_ERROR\r
 \r
 --*/\r
 // TODO:    ImageHandle - add argument and description to function comment\r
@@ -101,7 +100,7 @@ Routine Description:
   Check to see if pci bus driver supports the given controller\r
 \r
 Arguments:\r
-  \r
+\r
   IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
   IN EFI_HANDLE                     Controller,\r
   IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
@@ -195,13 +194,13 @@ Routine Description:
   Start to management the controller passed in\r
 \r
 Arguments:\r
-  \r
+\r
   IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
   IN EFI_HANDLE                   Controller,\r
   IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
 \r
 Returns:\r
\r
+\r
 \r
 --*/\r
 // TODO:    This - add argument and description to function comment\r
@@ -211,12 +210,6 @@ 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
@@ -240,12 +233,12 @@ 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
   //\r
-  \r
+\r
   StartPciDevices (Controller, RemainingDevicePath);\r
 \r
   return EFI_SUCCESS;\r
@@ -267,7 +260,7 @@ Routine Description:
   if all the the children get closed, close the protocol\r
 \r
 Arguments:\r
-  \r
+\r
   IN  EFI_DRIVER_BINDING_PROTOCOL   *This,\r
   IN  EFI_HANDLE                    Controller,\r
   IN  UINTN                         NumberOfChildren,\r
@@ -275,7 +268,7 @@ Arguments:
 \r
 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