/*++\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
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
\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
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
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
{\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
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
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
\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