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

Go to the source code of this file.

Macros

#define PCI_COMMAND_DECODE
 

Functions

STATIC VOID PcatPciRootBridgeBarExisted (IN UINTN Address, OUT UINT32 *OriginalValue, OUT UINT32 *Value)
 
STATIC VOID PcatPciRootBridgeDecodingDisable (IN UINTN Address)
 
STATIC VOID PcatPciRootBridgeParseBars (IN UINT16 Command, IN UINTN Bus, IN UINTN Device, IN UINTN Function, IN UINTN BarOffsetBase, IN UINTN BarOffsetEnd, IN PCI_ROOT_BRIDGE_APERTURE *Io, IN PCI_ROOT_BRIDGE_APERTURE *Mem, IN PCI_ROOT_BRIDGE_APERTURE *MemAbove4G)
 
PCI_ROOT_BRIDGEScanForRootBridges (UINTN *NumberOfRootBridges)
 

Variables

STATIC PCI_ROOT_BRIDGE_APERTURE mNonExistAperture = { MAX_UINT64, 0 }
 

Detailed Description

Scan the entire PCI bus for root bridges to support OVMF on Bhyve and Xen.

Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.

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

Definition in file ScanForRootBridges.c.

Macro Definition Documentation

◆ PCI_COMMAND_DECODE

#define PCI_COMMAND_DECODE
Value:
#define EFI_PCI_COMMAND_MEMORY_SPACE
0x0002
Definition: Pci22.h:592
#define EFI_PCI_COMMAND_IO_SPACE
0x0001
Definition: Pci22.h:591

Definition at line 51 of file ScanForRootBridges.c.

Function Documentation

◆ PcatPciRootBridgeBarExisted()

STATIC VOID PcatPciRootBridgeBarExisted ( IN UINTN  Address,
OUT UINT32 *  OriginalValue,
OUT UINT32 *  Value 
)

Definition at line 25 of file ScanForRootBridges.c.

◆ PcatPciRootBridgeDecodingDisable()

STATIC VOID PcatPciRootBridgeDecodingDisable ( IN UINTN  Address)

Definition at line 55 of file ScanForRootBridges.c.

◆ PcatPciRootBridgeParseBars()

STATIC VOID PcatPciRootBridgeParseBars ( IN UINT16  Command,
IN UINTN  Bus,
IN UINTN  Device,
IN UINTN  Function,
IN UINTN  BarOffsetBase,
IN UINTN  BarOffsetEnd,
IN PCI_ROOT_BRIDGE_APERTURE Io,
IN PCI_ROOT_BRIDGE_APERTURE Mem,
IN PCI_ROOT_BRIDGE_APERTURE MemAbove4G 
)

Definition at line 69 of file ScanForRootBridges.c.

◆ ScanForRootBridges()

PCI_ROOT_BRIDGE * ScanForRootBridges ( UINTN NumberOfRootBridges)

Definition at line 188 of file ScanForRootBridges.c.

Variable Documentation

◆ mNonExistAperture

STATIC PCI_ROOT_BRIDGE_APERTURE mNonExistAperture = { MAX_UINT64, 0 }

Definition at line 185 of file ScanForRootBridges.c.