/** @file\r
PCI bus enumeration logic function declaration for PCI bus module.\r
\r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2019, 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
This routine is used to enumerate entire pci bus system\r
in a given platform.\r
\r
- @param Controller Parent controller handle.\r
+ @param Controller Parent controller handle.\r
+ @param HostBridgeHandle Host bridge handle.\r
\r
@retval EFI_SUCCESS PCI enumeration finished successfully.\r
@retval other Some error occurred when enumerating the pci bus system.\r
**/\r
EFI_STATUS\r
PciEnumerator (\r
- IN EFI_HANDLE Controller\r
+ IN EFI_HANDLE Controller,\r
+ IN EFI_HANDLE HostBridgeHandle\r
);\r
\r
/**\r
@return Max size of option rom needed.\r
\r
**/\r
-UINT64\r
+UINT32\r
GetMaxOptionRomSize (\r
IN PCI_IO_DEVICE *Bridge\r
);\r
@param Mem64ResStatus Status of 64-bit memory resource node.\r
@param PMem64ResStatus Status of 64-bit Prefetchable memory resource node.\r
\r
- @retval EFI_SUCCESS Successfully adjusted resoruce on host bridge.\r
+ @retval EFI_SUCCESS Successfully adjusted resource on host bridge.\r
@retval EFI_ABORTED Host bridge hasn't this resource type or no resource be adjusted.\r
\r
**/\r
);\r
\r
/**\r
- Summary requests for all resource type, and contruct ACPI resource\r
+ Summary requests for all resource type, and construct ACPI resource\r
requestor instance.\r
\r
@param Bridge detecting bridge\r
@param Config Output buffer holding new constructed APCI resource requestor\r
\r
@retval EFI_SUCCESS Successfully constructed ACPI resource.\r
- @retval EFI_OUT_OF_RESOURCES No memory availabe.\r
+ @retval EFI_OUT_OF_RESOURCES No memory available.\r
\r
**/\r
EFI_STATUS\r
@retval EFI_INVALID_PARAMETER Phase is not a valid phase that is defined in\r
EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE.\r
@retval EFI_DEVICE_ERROR Programming failed due to a hardware error. The PCI enumerator should\r
- not enumerate this device, including its child devices if it is a PCI-to-PCI\r
- bridge.\r
+ not enumerate this device, including its child devices if it is a PCI-to-PCI\r
+ bridge.\r
\r
**/\r
EFI_STATUS\r