PCI Root Bridges. So it means platform needs install PCI Root Bridge IO protocol for each\r
PCI Root Bus and install PCI Host Bridge Resource Allocation Protocol.\r
\r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\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
};\r
\r
EFI_HANDLE gPciHostBrigeHandles[PCI_MAX_HOST_BRIDGE_NUM];\r
-EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gEfiIncompatiblePciDeviceSupport = NULL;\r
+EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gIncompatiblePciDeviceSupport = NULL;\r
UINTN gPciHostBridgeNumber = 0;\r
BOOLEAN gFullEnumeration = TRUE;\r
UINT64 gAllOne = 0xFFFFFFFFFFFFFFFFULL;\r
\r
@param This Protocol instance pointer.\r
@param Controller Handle of device to test.\r
- @param RemainingDevicePath Optional parameter use to pick a specific child.\r
+ @param RemainingDevicePath Optional parameter use to pick a specific child\r
device to start.\r
\r
@retval EFI_SUCCESS This driver supports this device.\r
\r
@param This Protocol instance pointer.\r
@param Controller Handle of device to bind driver to.\r
- @param RemainingDevicePath Optional parameter use to pick a specific child.\r
+ @param RemainingDevicePath Optional parameter use to pick a specific child\r
device to start.\r
\r
@retval EFI_SUCCESS This driver is added to ControllerHandle.\r
}\r
}\r
\r
- Status = gBS->LocateProtocol (\r
- &gEfiIncompatiblePciDeviceSupportProtocolGuid,\r
- NULL,\r
- (VOID **) &gEfiIncompatiblePciDeviceSupport\r
- );\r
+ gBS->LocateProtocol (\r
+ &gEfiIncompatiblePciDeviceSupportProtocolGuid,\r
+ NULL,\r
+ (VOID **) &gIncompatiblePciDeviceSupport\r
+ );\r
\r
//\r
// If PCI Platform protocol is available, get it now.\r
);\r
} \r
\r
- gFullEnumeration = (BOOLEAN) ((SearchHostBridgeHandle (Controller) ? FALSE : TRUE));\r
+ if (PcdGetBool (PcdPciDisableBusEnumeration)) {\r
+ gFullEnumeration = FALSE;\r
+ } else {\r
+ gFullEnumeration = (BOOLEAN) ((SearchHostBridgeHandle (Controller) ? FALSE : TRUE));\r
+ }\r
\r
//\r
// Open Device Path Protocol for PCI root bridge\r
}\r
\r
/**\r
- Stop this driver on ControllerHandle. Support stoping any child handles\r
+ Stop this driver on ControllerHandle. Support stopping any child handles\r
created by this driver.\r
\r
@param This Protocol instance pointer.\r