Add support for arbitrary sized MMCONF by introducing a new PCD. Add a return value to point out invalid PCI addresses. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Signed-off-by: Marcello Sylvester Bauer <marcello.bauer@9elements.com> Cc: Patrick Rudolph <patrick.rudolph@9elements.com> Cc: Christian Walter <christian.walter@9elements.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| # Instance of PCI Express Library using the 256 MB PCI Express MMIO window that
 | |
| # is safe for runtime use.
 | |
| #
 | |
| # PCI Express Library that uses the 256 MB PCI Express MMIO window to perform
 | |
| #  PCI Configuration cycles. Layers on top of an I/O Library instance.  A table of
 | |
| #  PCI devices that are registered for for runtime access is maintained so the
 | |
| #  proper virtual address is used to perform the PCI Express Configuration cycle.
 | |
| #
 | |
| # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = DxeRuntimePciExpressLib
 | |
|   MODULE_UNI_FILE                = DxeRuntimePciExpressLib.uni
 | |
|   FILE_GUID                      = 54DCBCE5-92AD-41f5-AAAF-1170F16DA6A8
 | |
|   MODULE_TYPE                    = DXE_RUNTIME_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   LIBRARY_CLASS                  = PciExpressLib|DXE_RUNTIME_DRIVER
 | |
|   CONSTRUCTOR                    = DxeRuntimePciExpressLibConstructor
 | |
|   DESTRUCTOR                     = DxeRuntimePciExpressLibDestructor
 | |
| 
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64 EBC
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   PciExpressLib.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseLib
 | |
|   IoLib
 | |
|   DebugLib
 | |
|   PcdLib
 | |
|   MemoryAllocationLib
 | |
|   UefiBootServicesTableLib
 | |
|   DxeServicesTableLib
 | |
|   UefiRuntimeLib
 | |
| 
 | |
| [Pcd]
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress  ## CONSUMES
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize  ## CONSUMES
 |