OvmfPkg/PlatformDebugLibIoPort: factor out debug port detection
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>
This commit is contained in:
committed by
mergify[bot]
parent
61ac4fc70d
commit
52f012129a
@@ -359,19 +359,3 @@ DebugPrintLevelEnabled (
|
||||
{
|
||||
return (BOOLEAN) ((ErrorLevel & PcdGet32(PcdFixedDebugPrintErrorLevel)) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
Return the result of detecting the debug I/O port device.
|
||||
|
||||
@retval TRUE if the debug I/O port device was detected.
|
||||
@retval FALSE otherwise
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
PlatformDebugLibIoPortDetect (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
return IoRead8 (PcdGet16 (PcdDebugIoPort)) == BOCHS_DEBUG_PORT_MAGIC;
|
||||
}
|
||||
|
Reference in New Issue
Block a user