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>
46 lines
1006 B
C
46 lines
1006 B
C
/** @file
|
|
Base Debug library instance for hypervisor debug port.
|
|
It uses PrintLib to send debug messages to a fixed I/O port.
|
|
|
|
Copyright (c) 2017, Red Hat, Inc.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef __DEBUG_IO_PORT_DETECT_H__
|
|
#define __DEBUG_IO_PORT_DETECT_H__
|
|
|
|
#include <Base.h>
|
|
|
|
/**
|
|
Helper function to return whether the virtual machine has a debug I/O port.
|
|
PlatformDebugLibIoPortFound can call this function directly or cache the
|
|
result.
|
|
|
|
@retval TRUE if the debug I/O port device was detected.
|
|
@retval FALSE otherwise
|
|
|
|
**/
|
|
BOOLEAN
|
|
EFIAPI
|
|
PlatformDebugLibIoPortDetect (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Return whether the virtual machine has a debug I/O port. DebugLib.c
|
|
calls this function instead of PlatformDebugLibIoPortDetect, to allow
|
|
caching if possible.
|
|
|
|
@retval TRUE if the debug I/O port device was detected.
|
|
@retval FALSE otherwise
|
|
|
|
**/
|
|
BOOLEAN
|
|
EFIAPI
|
|
PlatformDebugLibIoPortFound (
|
|
VOID
|
|
);
|
|
|
|
#endif
|