TianoCore EDK2 master
Loading...
Searching...
No Matches
PciSegmentInfoLibAcpiBoardInfo.c File Reference

Go to the source code of this file.

Functions

VOID RetrieveMultiSegmentInfoFromHob (IN UNIVERSAL_PAYLOAD_PCI_ROOT_BRIDGES *PciRootBridgeInfo, IN UPL_PCI_SEGMENT_INFO_HOB *UplSegmentInfo, OUT UINTN *NumberOfRootBridges)
 
VOID RetrieveSegmentInfoFromHob (OUT UINTN *NumberOfRootBridges)
 
UNIVERSAL_PAYLOAD_PCI_ROOT_BRIDGESGet_RBInfo (VOID)
 
UPL_PCI_SEGMENT_INFO_HOBGet_UPLSegInfo (VOID)
 
PCI_SEGMENT_INFO *EFIAPI GetPciSegmentInfo (UINTN *Count)
 

Detailed Description

PCI Segment Information Library that returns one segment whose segment base address is retrieved from AcpiBoardInfo HOB.

Copyright (c) 2020, Intel Corporation. All rights reserved.
Copyright (c) 2024, Rivos Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PciSegmentInfoLibAcpiBoardInfo.c.

Function Documentation

◆ Get_RBInfo()

UNIVERSAL_PAYLOAD_PCI_ROOT_BRIDGES * Get_RBInfo ( VOID  )

Return info for all root bridges

Returns
All the root bridge info instances in an array.

Definition at line 113 of file PciSegmentInfoLibAcpiBoardInfo.c.

◆ Get_UPLSegInfo()

UPL_PCI_SEGMENT_INFO_HOB * Get_UPLSegInfo ( VOID  )

Return info for all root bridge segments

Returns
All the segment info instances in an array.

Definition at line 155 of file PciSegmentInfoLibAcpiBoardInfo.c.

◆ GetPciSegmentInfo()

PCI_SEGMENT_INFO *EFIAPI GetPciSegmentInfo ( UINTN Count)

Return all the root bridge instances in an array.

Parameters
CountReturn the count of root bridge instances.
Returns
All the root bridge instances in an array. The array should be passed into PciHostBridgeFreeRootBridges() when it's not used.

Definition at line 202 of file PciSegmentInfoLibAcpiBoardInfo.c.

◆ RetrieveMultiSegmentInfoFromHob()

VOID RetrieveMultiSegmentInfoFromHob ( IN UNIVERSAL_PAYLOAD_PCI_ROOT_BRIDGES PciRootBridgeInfo,
IN UPL_PCI_SEGMENT_INFO_HOB UplSegmentInfo,
OUT UINTN NumberOfRootBridges 
)

Find segment info from all root bridges

Parameters
[in]PciRootBridgeInfoPointer of Universal Payload PCI Root Bridge Info Hob
[in]UplSegmentInfoPointer of Universal UPL Segment Info
[out]NumberOfRootBridgesNumber of root bridges detected

Definition at line 38 of file PciSegmentInfoLibAcpiBoardInfo.c.

◆ RetrieveSegmentInfoFromHob()

VOID RetrieveSegmentInfoFromHob ( OUT UINTN NumberOfRootBridges)

Find segment info from all root bridges for legacy systems

Parameters
[in]PciRootBridgeInfoPointer of Universal Payload PCI Root Bridge Info Hob
[out]NumberOfRootBridgesNumber of root bridges detected

Definition at line 83 of file PciSegmentInfoLibAcpiBoardInfo.c.