1## @file
2# A simple DXE_DRIVER that causes the PCI Bus UEFI_DRIVER to allocate 64-bit
3# MMIO BARs above 4 GB, regardless of option ROM availability (as long as a CSM
4# is not present), conserving 32-bit MMIO aperture for 32-bit BARs.
5#
6# Copyright (C) 2016, Red Hat, Inc.
7#
8# This program and the accompanying materials are licensed and made available
9# under the terms and conditions of the BSD License which accompanies this
10# distribution. The full text of the license may be found at
11# http://opensource.org/licenses/bsd-license.php
12#
13# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
14# WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15##
16
17[Defines]
18  INF_VERSION                    = 0x00010005
19  BASE_NAME                      = IncompatiblePciDeviceSupportDxe
20  FILE_GUID                      = F6697AC4-A776-4EE1-B643-1FEFF2B615BB
21  MODULE_TYPE                    = DXE_DRIVER
22  VERSION_STRING                 = 1.0
23  ENTRY_POINT                    = DriverInitialize
24
25[Sources]
26  IncompatiblePciDeviceSupport.c
27
28[Packages]
29  IntelFrameworkPkg/IntelFrameworkPkg.dec
30  MdeModulePkg/MdeModulePkg.dec
31  MdePkg/MdePkg.dec
32  OvmfPkg/OvmfPkg.dec
33
34[LibraryClasses]
35  DebugLib
36  MemoryAllocationLib
37  PcdLib
38  UefiBootServicesTableLib
39  UefiDriverEntryPoint
40
41[Protocols]
42  gEfiIncompatiblePciDeviceSupportProtocolGuid ## SOMETIMES_PRODUCES
43  gEfiLegacyBiosProtocolGuid                   ## NOTIFY
44
45[Pcd]
46  gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration ## CONSUMES
47  gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size                ## CONSUMES
48
49[Depex]
50  TRUE
51