Factor out debug port detection in PlatformDebugLibIoPort. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Message-Id: <20200423095358.2518197-4-anthony.perard@citrix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  Instance of Debug Library for the QEMU debug console port.
 | |
| #  It uses Print Library to produce formatted output strings.
 | |
| #
 | |
| #  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| #  Copyright (c) 2012, Red Hat, Inc.<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = PlatformDebugLibIoPort
 | |
|   FILE_GUID                      = DF934DA3-CD31-49FE-AF50-B3C87C79325F
 | |
|   MODULE_TYPE                    = BASE
 | |
|   VERSION_STRING                 = 1.0
 | |
|   LIBRARY_CLASS                  = DebugLib|PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER SMM_CORE DXE_SMM_DRIVER UEFI_DRIVER UEFI_APPLICATION
 | |
|   CONSTRUCTOR                    = PlatformDebugLibIoPortConstructor
 | |
| 
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64 EBC
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   DebugIoPortQemu.c
 | |
|   DebugLib.c
 | |
|   DebugLibDetect.c
 | |
|   DebugLibDetect.h
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   OvmfPkg/OvmfPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseMemoryLib
 | |
|   IoLib
 | |
|   PcdLib
 | |
|   PrintLib
 | |
|   BaseLib
 | |
|   DebugPrintErrorLevelLib
 | |
| 
 | |
| [Pcd]
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort                ## CONSUMES
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue        ## CONSUMES
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask            ## CONSUMES
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel    ## CONSUMES
 | |
| 
 |