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>
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
#  Instance of PCI Express Library using the variable size PCI Express MMIO window.
 | 
						|
#
 | 
						|
#  PCI Express Library that uses the variable size PCI Express MMIO window to perform
 | 
						|
#  PCI Configuration cycles. Layers on top of an I/O Library instance.
 | 
						|
#
 | 
						|
#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
 | 
						|
#
 | 
						|
#  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
#
 | 
						|
#
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010005
 | 
						|
  BASE_NAME                      = BasePciExpressLib
 | 
						|
  MODULE_UNI_FILE                = BasePciExpressLib.uni
 | 
						|
  FILE_GUID                      = 287e50f4-a188-4699-b907-3e4080ca5688
 | 
						|
  MODULE_TYPE                    = BASE
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  LIBRARY_CLASS                  = PciExpressLib
 | 
						|
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64 EBC
 | 
						|
#
 | 
						|
 | 
						|
[Sources]
 | 
						|
  PciExpressLib.c
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  BaseLib
 | 
						|
  PcdLib
 | 
						|
  DebugLib
 | 
						|
  IoLib
 | 
						|
 | 
						|
[Pcd]
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress  ## CONSUMES
 | 
						|
  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize  ## CONSUMES
 |