/** @file\r
Supporting functions declaration for PCI devices management.\r
\r
-Copyright (c) 2006 - 2009, 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 - 2009, 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
**/\r
\r
\r
/**\r
Destroy root bridge and remove it from deivce tree.\r
- \r
+\r
@param RootBridge The bridge want to be removed.\r
- \r
+\r
**/\r
VOID\r
DestroyRootBridge (\r
);\r
\r
/**\r
- This function registers the PCI IO device. \r
+ This function registers the PCI IO device.\r
\r
- It creates a handle for this PCI IO device (if the handle does not exist), attaches \r
- appropriate protocols onto the handle, does necessary initialization, and sets up \r
+ It creates a handle for this PCI IO device (if the handle does not exist), attaches\r
+ appropriate protocols onto the handle, does necessary initialization, and sets up\r
parent/child relationship with its bus controller.\r
\r
@param Controller An EFI handle for the PCI bus controller.\r
@param Handle A pointer to hold the returned EFI handle for the PCI IO device.\r
\r
@retval EFI_SUCCESS The PCI device is successfully registered.\r
- @retval Others An error occurred when registering the PCI device.\r
+ @retval other An error occurred when registering the PCI device.\r
\r
**/\r
EFI_STATUS\r
@param Handle PCI device handle.\r
\r
@retval EFI_SUCCESS The PCI device is successfully de-registered.\r
- @retval Others An error occurred when de-registering the PCI device.\r
+ @retval other An error occurred when de-registering the PCI device.\r
\r
**/\r
EFI_STATUS\r
/**\r
Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge\r
\r
- @param Controller An efi handle.\r
+ @param Controller The root bridge handle.\r
@param RootBridge A pointer to the PCI_IO_DEVICE.\r
@param RemainingDevicePath A pointer to the EFI_DEVICE_PATH_PROTOCOL.\r
@param NumberOfChildren Children number.\r
\r
@retval EFI_NOT_READY Device is not allocated.\r
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.\r
- @retval EFI_NOT_FOUND Can not find the specific device\r
- @retval EFI_SUCCESS Success to start Pci device on bridge\r
+ @retval EFI_NOT_FOUND Can not find the specific device.\r
+ @retval EFI_SUCCESS Success to start Pci device on bridge.\r
\r
**/\r
EFI_STATUS\r
);\r
\r
/**\r
- Start to manage all the PCI devices it found previously under \r
+ Start to manage all the PCI devices it found previously under\r
the entire host bridge.\r
\r
- @param Controller - root bridge handle.\r
+ @param Controller The root bridge handle.\r
+\r
+ @retval EFI_NOT_READY Device is not allocated.\r
+ @retval EFI_SUCCESS Success to start Pci device on host bridge.\r
\r
**/\r
EFI_STATUS\r
\r
/**\r
Judege whether Pci device existed.\r
- \r
+\r
@param Bridge Parent bridege instance.\r
@param PciIoDevice Device instance.\r
- \r
+\r
@retval TRUE Pci device existed.\r
@retval FALSE Pci device did not exist.\r
\r
\r
/**\r
Get the active VGA device on the same segment.\r
- \r
+\r
@param VgaDevice PCI IO instance for the VGA device.\r
- \r
+\r
@return The active VGA device on the same segment.\r
\r
**/\r
\r
/**\r
Get the active VGA device on the root bridge.\r
- \r
+\r
@param RootBridge PCI IO instance for the root bridge.\r
- \r
+\r
@return The active VGA device.\r
\r
**/\r
@param RootBridge Root bridege Io instance.\r
@param RemainingDevicePath Given searching device path.\r
@param PciAddress Buffer holding searched result.\r
- \r
+\r
@retval EFI_SUCCESS PCI address was stored in PciAddress.\r
@retval EFI_NOT_FOUND Can not find the specific device path.\r
- \r
+\r
**/\r
EFI_STATUS\r
GetHpcPciAddressFromRootBridge (\r