|
TianoCore EDK2 master
|
#include "PciBus.h"Go to the source code of this file.
Variables | |
| GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 * | mBarTypeStr [] |
Internal library implementation for PCI Bus module.
Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PciLib.c.
| BOOLEAN AdjustPciDeviceBarSize | ( | IN PCI_IO_DEVICE * | RootBridgeDev | ) |
| VOID DumpBridgeResource | ( | IN PCI_RESOURCE_NODE * | BridgeResource | ) |
| VOID DumpResourceMap | ( | IN PCI_IO_DEVICE * | Bridge, |
| IN PCI_RESOURCE_NODE ** | Resources, | ||
| IN UINTN | ResourceCount | ||
| ) |
| UINTN FindResourceNode | ( | IN PCI_IO_DEVICE * | Device, |
| IN PCI_RESOURCE_NODE * | BridgeResource, | ||
| OUT PCI_RESOURCE_NODE **DeviceResources | OPTIONAL | ||
| ) |
Find the corresponding resource node for the Device in child list of BridgeResource.
| [in] | Device | Pointer to PCI_IO_DEVICE. |
| [in] | BridgeResource | Pointer to PCI_RESOURCE_NODE. |
| [out] | DeviceResources | Pointer to a buffer to receive resources for the Device. |
| VOID GetBackPcCardBar | ( | IN PCI_IO_DEVICE * | PciIoDevice | ) |
| EFI_STATUS PciAllocateBusNumber | ( | IN PCI_IO_DEVICE * | Bridge, |
| IN UINT8 | StartBusNumber, | ||
| IN UINT8 | NumberOfBuses, | ||
| OUT UINT8 * | NextBusNumber | ||
| ) |
Allocate NumberOfBuses buses and return the next available PCI bus number.
| Bridge | Bridge device instance. |
| StartBusNumber | Current available PCI bus number. |
| NumberOfBuses | Number of buses enumerated below the StartBusNumber. |
| NextBusNumber | Next available PCI bus number. |
| EFI_SUCCESS | Available bus number resource is enough. Next available PCI bus number is returned in NextBusNumber. |
| EFI_OUT_OF_RESOURCES | Available bus number resource is not enough for allocation. |
| UINT16 PciGetMaxBusNumber | ( | IN PCI_IO_DEVICE * | Bridge | ) |
| EFI_STATUS PciHostBridgeEnumerator | ( | IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL * | PciResAlloc | ) |
This function is used to enumerate the entire host bridge in a given platform.
| PciResAlloc | A pointer to the PCI Host Resource Allocation protocol. |
| EFI_SUCCESS | Successfully enumerated the host bridge. |
| EFI_OUT_OF_RESOURCES | No enough memory available. |
| other | Some error occurred when enumerating the host bridge. |
| EFI_STATUS PciHostBridgeP2CProcess | ( | IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL * | PciResAlloc | ) |
Process Option Rom on the specified host bridge.
| PciResAlloc | Pointer to instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL. |
| EFI_SUCCESS | Success process. |
| EFI_NOT_FOUND | Can not find the root bridge instance. |
| other | Some error occurred when processing Option Rom on the host bridge. |
| EFI_STATUS PciHostBridgeResourceAllocator | ( | IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL * | PciResAlloc | ) |
Submits the I/O and memory resource requirements for the specified PCI Host Bridge.
| PciResAlloc | Point to protocol instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL. |
| EFI_SUCCESS | Successfully finished resource allocation. |
| EFI_NOT_FOUND | Cannot get root bridge instance. |
| EFI_OUT_OF_RESOURCES | Platform failed to program the resources if no hot plug supported. |
| other | Some error occurred when allocating resources for the PCI Host Bridge. |
| EFI_STATUS PciProgramResizableBar | ( | IN PCI_IO_DEVICE * | PciIoDevice, |
| IN PCI_RESIZABLE_BAR_OPERATION | ResizableBarOp | ||
| ) |
This function is used to program the Resizable BAR Register.
| PciIoDevice | A pointer to the PCI_IO_DEVICE. |
| ResizableBarOp | PciResizableBarMax: Set BAR to max size PciResizableBarMin: set BAR to min size. |
| EFI_SUCCESS | Successfully enumerated the host bridge. |
| other | Some error occurred when enumerating the host bridge. |
| EFI_STATUS PciRootBridgeP2CProcess | ( | IN PCI_IO_DEVICE * | Bridge | ) |
| EFI_STATUS PciScanBus | ( | IN PCI_IO_DEVICE * | Bridge, |
| IN UINT8 | StartBusNumber, | ||
| OUT UINT8 * | SubBusNumber, | ||
| OUT UINT8 * | PaddedBusRange | ||
| ) |
Scan pci bus and assign bus number to the given PCI bus system.
| Bridge | Bridge device instance. |
| StartBusNumber | start point. |
| SubBusNumber | Point to sub bus number. |
| PaddedBusRange | Customized bus number. |
| EFI_SUCCESS | Successfully scanned and assigned bus number. |
| other | Some error occurred when scanning pci bus. |
| VOID RemoveRejectedPciDevices | ( | IN EFI_HANDLE | RootBridgeHandle, |
| IN PCI_IO_DEVICE * | Bridge | ||
| ) |
| GLOBAL_REMOVE_IF_UNREFERENCED CHAR16* mBarTypeStr[] |