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

Go to the source code of this file.

Functions

UINTN PciSegmentLibVirtualAddress (IN UINTN Address)
 
RETURN_STATUS EFIAPI PciSegmentRegisterForRuntimeAccess (IN UINTN Address)
 

Detailed Description

Instance of Base PCI Segment Library that support multi-segment PCI configuration access.

PCI Segment Library that consumes segment information provided by PciSegmentInfoLib to support multi-segment PCI configuration access through enhanced configuration access mechanism.

Copyright (c) 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BasePciSegmentLib.c.

Function Documentation

◆ PciSegmentLibVirtualAddress()

UINTN PciSegmentLibVirtualAddress ( IN UINTN  Address)

Return the virtual address for the physical address.

Parameters
AddressThe physical address.
Return values
Thevirtual address.

Definition at line 22 of file BasePciSegmentLib.c.

◆ PciSegmentRegisterForRuntimeAccess()

RETURN_STATUS EFIAPI PciSegmentRegisterForRuntimeAccess ( IN UINTN  Address)

Register a PCI device so PCI configuration registers may be accessed after SetVirtualAddressMap().

If any reserved bits in Address are set, then ASSERT().

Parameters
AddressThe address that encodes the PCI Bus, Device, Function and Register.
Return values
RETURN_SUCCESSThe PCI device was registered for runtime access.
RETURN_UNSUPPORTEDAn attempt was made to call this function after ExitBootServices().
RETURN_UNSUPPORTEDThe resources required to access the PCI device at runtime could not be mapped.
RETURN_OUT_OF_RESOURCESThere are not enough resources available to complete the registration.

Definition at line 49 of file BasePciSegmentLib.c.