QEMU provides an fw_cfg file called "etc/extra-pci-roots", containing a little-endian UINT64 value that exposes the number of extra root buses. We can use this value to terminate the scan as soon as we find the last extra root bus. Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Gabriel Somlo <somlo@cmu.edu> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17963 6f19259b-4bc3-4df7-8a09-765794883524
67 lines
1.7 KiB
INI
67 lines
1.7 KiB
INI
## @file
|
|
# The basic interfaces implementation to a single segment PCI Host Bridge
|
|
# driver.
|
|
#
|
|
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# This program and the accompanying materials are licensed and made available
|
|
# under the terms and conditions of the BSD License which accompanies this
|
|
# distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR
|
|
# IMPLIED.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = PciHostBridge
|
|
FILE_GUID = 311161C5-BFD9-4504-8016-213F2DAEDAF3
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = InitializePciHostBridge
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
OvmfPkg/OvmfPkg.dec
|
|
|
|
[LibraryClasses]
|
|
UefiDriverEntryPoint
|
|
UefiBootServicesTableLib
|
|
DxeServicesTableLib
|
|
UefiLib
|
|
MemoryAllocationLib
|
|
BaseMemoryLib
|
|
BaseLib
|
|
DebugLib
|
|
DevicePathLib
|
|
IoLib
|
|
PciLib
|
|
QemuFwCfgLib
|
|
|
|
[Sources]
|
|
PciHostBridge.c
|
|
PciRootBridgeIo.c
|
|
PciHostBridge.h
|
|
IoFifo.h
|
|
|
|
[Sources.IA32]
|
|
Ia32/IoFifo.asm
|
|
Ia32/IoFifo.S
|
|
|
|
[Sources.X64]
|
|
X64/IoFifo.asm
|
|
X64/IoFifo.S
|
|
|
|
[Protocols]
|
|
gEfiPciHostBridgeResourceAllocationProtocolGuid ## PRODUCES
|
|
gEfiPciRootBridgeIoProtocolGuid ## PRODUCES
|
|
gEfiMetronomeArchProtocolGuid ## CONSUMES
|
|
gEfiDevicePathProtocolGuid ## PRODUCES
|
|
|
|
[depex]
|
|
gEfiMetronomeArchProtocolGuid
|