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>
		
			
				
	
	
		
			39 lines
		
	
	
		
			987 B
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			987 B
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| # Instance of PCI Express Library using the 256 MB PCI Express MMIO window.
 | |
| #
 | |
| # 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.
 | |
| #
 | |
| # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
 | |
| # Portions copyright (c) 2016, American Megatrends, Inc. All rights reserved.
 | |
| #
 | |
| # SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|  INF_VERSION = 0x00010005
 | |
|  BASE_NAME = SmmPciExpressLib
 | |
|  FILE_GUID = 00D24382-8231-4B18-A4F0-2D94D8FE2E81
 | |
|  MODULE_TYPE = DXE_SMM_DRIVER
 | |
|  VERSION_STRING = 1.0
 | |
|  LIBRARY_CLASS = PciExpressLib|DXE_SMM_DRIVER SMM_CORE
 | |
|  CONSTRUCTOR = SmmPciExpressLibConstructor
 | |
| 
 | |
| [Sources]
 | |
|  PciExpressLib.c
 | |
| 
 | |
| [Packages]
 | |
|  MdePkg/MdePkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|  BaseLib
 | |
|  PcdLib
 | |
|  DebugLib
 | |
|  IoLib
 | |
| 
 | |
| [Pcd]
 | |
|  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## CONSUMES
 | |
|  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize  ## CONSUMES
 |