At this point, the IncompatiblePciDeviceSupportDxe driver is included in the following platforms in edk2: OvmfPkg/AmdSev/AmdSevX64.dsc OvmfPkg/OvmfPkgIa32.dsc OvmfPkg/OvmfPkgIa32X64.dsc OvmfPkg/OvmfPkgX64.dsc All those platforms inherit FALSE for "PcdPciDisableBusEnumeration" from "MdeModulePkg.dec". This makes the PcdGetBool() call in the entry point of the driver superfluous; remove it. Clean up now unused dependencies in the INF file as well. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210526201446.12554-28-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| # A simple DXE_DRIVER that causes the PCI Bus UEFI_DRIVER to allocate 64-bit
 | |
| # MMIO BARs above 4 GB, regardless of option ROM availability (as long as a CSM
 | |
| # is not present), conserving 32-bit MMIO aperture for 32-bit BARs.
 | |
| #
 | |
| # Copyright (C) 2016, Red Hat, Inc.
 | |
| #
 | |
| # SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = IncompatiblePciDeviceSupportDxe
 | |
|   FILE_GUID                      = F6697AC4-A776-4EE1-B643-1FEFF2B615BB
 | |
|   MODULE_TYPE                    = DXE_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   ENTRY_POINT                    = DriverInitialize
 | |
| 
 | |
| [Sources]
 | |
|   IncompatiblePciDeviceSupport.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   OvmfPkg/OvmfPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   DebugLib
 | |
|   MemoryAllocationLib
 | |
|   PcdLib
 | |
|   UefiBootServicesTableLib
 | |
|   UefiDriverEntryPoint
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiIncompatiblePciDeviceSupportProtocolGuid ## SOMETIMES_PRODUCES
 | |
|   gEfiLegacyBiosProtocolGuid                   ## NOTIFY
 | |
| 
 | |
| [Pcd]
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size                ## CONSUMES
 | |
| 
 | |
| [Depex]
 | |
|   TRUE
 |