X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FPciBusDxe%2FPciEnumeratorSupport.h;h=b51a8705bb3b4d3bbae1e22e3493882419a2c4c6;hp=fa3a3992fdb3674cd8336f7414e522581af743f2;hb=fcdfcdbfc2e5dc6a96ce550a1f46edb4007f35a9;hpb=cd5ebaa06dca3e6ef3c464081e6defe00d358c69 diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h index fa3a3992fd..b51a8705bb 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h @@ -1,7 +1,7 @@ /** @file - PCI emumeration support functions declaration for PCI Bus module. + PCI enumeration support functions declaration for PCI Bus module. -Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -44,7 +44,7 @@ PciDevicePresent ( root bridge will then be created. @param Bridge Parent bridge instance. - @param StartBusNumber Bus number of begining. + @param StartBusNumber Bus number of beginning. @retval EFI_SUCCESS PCI device is found. @retval other Some error occurred when reading PCI bridge information. @@ -57,7 +57,7 @@ PciPciDeviceInfoCollector ( ); /** - Seach required device and create PCI device instance. + Search required device and create PCI device instance. @param Bridge Parent bridge instance. @param Pci Input PCI device information block. @@ -144,12 +144,12 @@ GatherP2CInfo ( ); /** - Create device path for pci deivce. + Create device path for pci device. @param ParentDevicePath Parent bridge's path. @param PciIoDevice Pci device instance. - @return device path protocol instance for specific pci device. + @return Device path protocol instance for specific pci device. **/ EFI_DEVICE_PATH_PROTOCOL * @@ -204,7 +204,7 @@ BarExisted ( @param PciIoDevice Pci device instance. @param Command Input command register value, and returned supported register value. - @param BridgeControl Inout bridge control value for PPB or P2C, and + @param BridgeControl Input bridge control value for PPB or P2C, and returned supported bridge control value. @param OldCommand Returned and stored old command register offset. @param OldBridgeControl Returned and stored old Bridge control value for PPB or P2C. @@ -361,10 +361,10 @@ InitializeP2C ( ); /** - Create and initiliaze general PCI I/O device instance for + Create and initialize general PCI I/O device instance for PCI device/bridge device/hotplug bridge device. - @param PciRootBridgeIo Pointer to instance of EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL. + @param Bridge Parent bridge instance. @param Pci Input Pci information block. @param Bus Device Bus NO. @param Device Device device NO. @@ -375,7 +375,7 @@ InitializeP2C ( **/ PCI_IO_DEVICE * CreatePciIoDevice ( - IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo, + IN PCI_IO_DEVICE *Bridge, IN PCI_TYPE00 *Pci, IN UINT8 Bus, IN UINT8 Device, @@ -460,4 +460,17 @@ ResetAllPpbBusNumber ( IN UINT8 StartBusNumber ); +/** + Dump the PPB padding resource information. + + @param PciIoDevice PCI IO instance. + @param ResourceType The desired resource type to dump. + PciBarTypeUnknown means to dump all types of resources. +**/ +VOID +DumpPpbPaddingResource ( + IN PCI_IO_DEVICE *PciIoDevice, + IN PCI_BAR_TYPE ResourceType + ); + #endif