TianoCore EDK2 master
|
#include <IndustryStandard/Pci.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PciHostBridgeLib.h>
#include <Library/PciHostBridgeUtilityLib.h>
#include <Library/PciLib.h>
#include <Protocol/PciRootBridgeIo.h>
#include "PciHostBridge.h"
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_BRIDGE * | ScanForRootBridges (UINTN *NumberOfRootBridges) |
Variables | |
STATIC PCI_ROOT_BRIDGE_APERTURE | mNonExistAperture = { MAX_UINT64, 0 } |
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.
#define PCI_COMMAND_DECODE |
Definition at line 51 of file ScanForRootBridges.c.
STATIC VOID PcatPciRootBridgeBarExisted | ( | IN UINTN | Address, |
OUT UINT32 * | OriginalValue, | ||
OUT UINT32 * | Value | ||
) |
Definition at line 25 of file ScanForRootBridges.c.
Definition at line 55 of file ScanForRootBridges.c.
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.
PCI_ROOT_BRIDGE * ScanForRootBridges | ( | UINTN * | NumberOfRootBridges | ) |
Definition at line 188 of file ScanForRootBridges.c.
STATIC PCI_ROOT_BRIDGE_APERTURE mNonExistAperture = { MAX_UINT64, 0 } |
Definition at line 185 of file ScanForRootBridges.c.