TianoCore EDK2 master
|
#include <PiDxe.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/PciHostBridgeLib.h>
#include <Library/PciHostBridgeUtilityLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/FdtClient.h>
#include <Protocol/PciRootBridgeIo.h>
#include <Protocol/PciHostBridgeResourceAllocation.h>
Go to the source code of this file.
Data Structures | |
struct | DTB_PCI_HOST_RANGE_RECORD |
Macros | |
#define | DTB_PCI_HOST_RANGE_RELOCATABLE BIT31 |
#define | DTB_PCI_HOST_RANGE_PREFETCHABLE BIT30 |
#define | DTB_PCI_HOST_RANGE_ALIASED BIT29 |
#define | DTB_PCI_HOST_RANGE_MMIO32 BIT25 |
#define | DTB_PCI_HOST_RANGE_MMIO64 (BIT25 | BIT24) |
#define | DTB_PCI_HOST_RANGE_IO BIT24 |
#define | DTB_PCI_HOST_RANGE_TYPEMASK (BIT31 | BIT30 | BIT29 | BIT25 | BIT24) |
Functions | |
STATIC EFI_STATUS | MapGcdMmioSpace (IN UINT64 Base, IN UINT64 Size) |
STATIC EFI_STATUS | ProcessPciHost (OUT UINT64 *IoBase, OUT UINT64 *IoSize, OUT UINT64 *Mmio32Base, OUT UINT64 *Mmio32Size, OUT UINT64 *Mmio64Base, OUT UINT64 *Mmio64Size, OUT UINT32 *BusMin, OUT UINT32 *BusMax) |
PCI_ROOT_BRIDGE *EFIAPI | PciHostBridgeGetRootBridges (UINTN *Count) |
VOID EFIAPI | PciHostBridgeFreeRootBridges (PCI_ROOT_BRIDGE *Bridges, UINTN Count) |
VOID EFIAPI | PciHostBridgeResourceConflict (EFI_HANDLE HostBridgeHandle, VOID *Configuration) |
PCI Host Bridge Library instance for pci-ecam-generic DT nodes
Copyright (c) 2016, Linaro Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_ALIASED BIT29 |
Definition at line 39 of file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_IO BIT24 |
Definition at line 42 of file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_MMIO32 BIT25 |
Definition at line 40 of file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_MMIO64 (BIT25 | BIT24) |
Definition at line 41 of file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_PREFETCHABLE BIT30 |
Definition at line 38 of file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_RELOCATABLE BIT31 |
Definition at line 37 of file FdtPciHostBridgeLib.c.
#define DTB_PCI_HOST_RANGE_TYPEMASK (BIT31 | BIT30 | BIT29 | BIT25 | BIT24) |
Definition at line 43 of file FdtPciHostBridgeLib.c.
STATIC EFI_STATUS MapGcdMmioSpace | ( | IN UINT64 | Base, |
IN UINT64 | Size | ||
) |
Definition at line 47 of file FdtPciHostBridgeLib.c.
VOID EFIAPI PciHostBridgeFreeRootBridges | ( | PCI_ROOT_BRIDGE * | Bridges, |
UINTN | Count | ||
) |
Free the root bridge instances array returned from PciHostBridgeGetRootBridges().
Bridges | The root bridge instances array. |
Count | The count of the array. |
Definition at line 472 of file FdtPciHostBridgeLib.c.
PCI_ROOT_BRIDGE *EFIAPI PciHostBridgeGetRootBridges | ( | UINTN * | Count | ) |
Return all the root bridge instances in an array.
Count | Return the count of root bridge instances. |
Definition at line 355 of file FdtPciHostBridgeLib.c.
VOID EFIAPI PciHostBridgeResourceConflict | ( | EFI_HANDLE | HostBridgeHandle, |
VOID * | Configuration | ||
) |
Inform the platform that the resource conflict happens.
HostBridgeHandle | Handle of the Host Bridge. |
Configuration | Pointer to PCI I/O and PCI memory resource descriptors. The Configuration contains the resources for all the root bridges. The resource for each root bridge is terminated with END descriptor and an additional END is appended indicating the end of the entire resources. The resource descriptor field values follow the description in EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL .SubmitResources(). |
Definition at line 496 of file FdtPciHostBridgeLib.c.