X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=IntelFrameworkModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciDeviceSupport.h;h=af162dc198c3423323545af182abb70c03a0b4ae;hb=c72216a6274deaaee46ebf58e3ae84f119a94b7f;hp=059077a89abf0b86b9fbbbe7ab43ff36a49f2c07;hpb=ed66e1bc0d2be0a185fc47adab4930c3b7e2767f;p=mirror_edk2.git diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h index 059077a89a..af162dc198 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h @@ -1,4 +1,4 @@ -/**@file +/** @file Copyright (c) 2006, Intel Corporation All rights reserved. This program and the accompanying materials @@ -11,11 +11,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ -#ifndef _EFI_PCI_DEVICE_SUPPORT_H -#define _EFI_PCI_DEVICE_SUPPORT_H +#ifndef _EFI_PCI_DEVICE_SUPPORT_H_ +#define _EFI_PCI_DEVICE_SUPPORT_H_ /** - Initialize the gPciDevicePool + Initialize the gPciDevicePool. **/ EFI_STATUS InitializePciDevicePool ( @@ -183,29 +183,36 @@ CreateRootBridge ( ); /** - Get root bridge device instance by specific handle + Get root bridge device instance by specific handle. - @param RootBridgeHandle Given root bridge handle + @param RootBridgeHandle Given root bridge handle. - @return root bridge device instance + @return root bridge device instance. **/ PCI_IO_DEVICE * GetRootBridgeByHandle ( EFI_HANDLE RootBridgeHandle ); +/** + Check root bridge device is existed or not. + + @param RootBridgeHandle Given root bridge handle. + + @return root bridge device is existed or not. +**/ BOOLEAN RootBridgeExisted ( IN EFI_HANDLE RootBridgeHandle ); /** - Judege whether Pci device existed + Judege whether Pci device existed. - @param Bridge Parent bridege instance - @param PciIoDevice Device instance + @param Bridge Parent bridege instance. + @param PciIoDevice Device instance. - @return whether Pci device existed + @return whether Pci device existed. **/ BOOLEAN PciDeviceExisted ( @@ -214,11 +221,11 @@ PciDeviceExisted ( ); /** - Active VGA device + Active VGA device. - @param VgaDevice device instance for VGA + @param VgaDevice device instance for VGA. - @return device instance + @return device instance. **/ PCI_IO_DEVICE * ActiveVGADeviceOnTheSameSegment ( @@ -226,11 +233,11 @@ ActiveVGADeviceOnTheSameSegment ( ); /** - Active VGA device on root bridge + Active VGA device on root bridge. - @param RootBridge Root bridge device instance + @param RootBridge Root bridge device instance. - @return VGA device instance + @return VGA device instance. **/ PCI_IO_DEVICE * ActiveVGADeviceOnTheRootBridge ( @@ -238,13 +245,13 @@ ActiveVGADeviceOnTheRootBridge ( ); /** - Get HPC PCI address according to its device path - @param PciRootBridgeIo Root bridege Io instance - @param HpcDevicePath Given searching device path - @param PciAddress Buffer holding searched result + Get HPC PCI address according to its device path. + @param PciRootBridgeIo Root bridege Io instance. + @param HpcDevicePath Given searching device path. + @param PciAddress Buffer holding searched result. @retval EFI_NOT_FOUND Can not find the specific device path. - @retval EFI_SUCCESS Success to get the device path + @retval EFI_SUCCESS Success to get the device path. **/ EFI_STATUS GetHpcPciAddress ( @@ -254,10 +261,10 @@ GetHpcPciAddress ( ); /** - Get HPC PCI address according to its device path - @param RootBridge Root bridege Io instance - @param RemainingDevicePath Given searching device path - @param PciAddress Buffer holding searched result + Get HPC PCI address according to its device path. + @param RootBridge Root bridege Io instance. + @param RemainingDevicePath Given searching device path. + @param PciAddress Buffer holding searched result. @retval EFI_NOT_FOUND Can not find the specific device path. **/