/** @file\r
Supporting functions declaration for PCI devices management.\r
\r
-Copyright (c) 2006 - 2009, 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
-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 - 2019, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
);\r
\r
/**\r
- Destroy root bridge and remove it from deivce tree.\r
+ Destroy root bridge and remove it from device tree.\r
\r
@param RootBridge The bridge want to be removed.\r
\r
\r
@param Controller Root bridge handle.\r
\r
- @retval EFI_SUCCESS Destory all devcie nodes successfully.\r
+ @retval EFI_SUCCESS Destroy all device nodes successfully.\r
@retval EFI_NOT_FOUND Cannot find any PCI device under specified\r
root bridge.\r
\r
/**\r
Create root bridge device.\r
\r
- @param RootBridgeHandle Specified root bridge hanle.\r
+ @param RootBridgeHandle Specified root bridge handle.\r
\r
@return The crated root bridge device instance, NULL means no\r
root bridge device instance created.\r
\r
\r
/**\r
- Judege whether Pci device existed.\r
+ Judge whether Pci device existed.\r
\r
- @param Bridge Parent bridege instance.\r
+ @param Bridge Parent bridge instance.\r
@param PciIoDevice Device instance.\r
\r
@retval TRUE Pci device existed.\r
);\r
\r
/**\r
- Get the active VGA device on the same segment.\r
+ Get the active VGA device on the specified Host Bridge.\r
\r
- @param VgaDevice PCI IO instance for the VGA device.\r
+ @param HostBridgeHandle Host Bridge handle.\r
\r
- @return The active VGA device on the same segment.\r
+ @return The active VGA device on the specified Host Bridge.\r
\r
**/\r
PCI_IO_DEVICE *\r
-ActiveVGADeviceOnTheSameSegment (\r
- IN PCI_IO_DEVICE *VgaDevice\r
+LocateVgaDeviceOnHostBridge (\r
+ IN EFI_HANDLE HostBridgeHandle\r
);\r
\r
/**\r
- Get the active VGA device on the root bridge.\r
+ Locate the active VGA device under the bridge.\r
\r
- @param RootBridge PCI IO instance for the root bridge.\r
+ @param Bridge PCI IO instance for the bridge.\r
\r
@return The active VGA device.\r
\r
**/\r
PCI_IO_DEVICE *\r
-ActiveVGADeviceOnTheRootBridge (\r
- IN PCI_IO_DEVICE *RootBridge\r
+LocateVgaDevice (\r
+ IN PCI_IO_DEVICE *Bridge\r
);\r
\r
\r
\r
All direct or indirect allocated resource for this node will be freed.\r
\r
- @param PciIoDevice A pointer to the PCI_IO_DEVICE to be destoried.\r
+ @param PciIoDevice A pointer to the PCI_IO_DEVICE to be destroyed.\r
\r
**/\r
VOID\r