TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugLibDetect.h File Reference
#include <Base.h>

Go to the source code of this file.

Functions

BOOLEAN EFIAPI PlatformDebugLibIoPortDetect (VOID)
 
BOOLEAN EFIAPI PlatformDebugLibIoPortFound (VOID)
 

Detailed Description

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.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DebugLibDetect.h.

Function Documentation

◆ PlatformDebugLibIoPortDetect()

BOOLEAN EFIAPI PlatformDebugLibIoPortDetect ( VOID  )

Helper function to return whether the virtual machine has a debug I/O port. PlatformDebugLibIoPortFound can call this function directly or cache the result.

Return values
TRUEif the debug I/O port device was detected.
FALSEotherwise

Always return TRUE without detection as the debug I/O port is always present.

Return values
TRUEThe debug I/O port is always present.

Return the result of detecting the debug I/O port device.

Return values
TRUEif the debug I/O port device was detected.
FALSEotherwise

Definition at line 20 of file DebugIoPortNocheck.c.

◆ PlatformDebugLibIoPortFound()

BOOLEAN EFIAPI PlatformDebugLibIoPortFound ( 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.

Return values
TRUEif the debug I/O port device was detected.
FALSEotherwise

At the first call, check if the debug I/O port device is present, and cache the result for later use. At subsequent calls, return the cached result.

Return values
TRUEif the debug I/O port device was detected.
FALSEotherwise

Return the result of detecting the debug I/O port device.

Return values
TRUEif the debug I/O port device was detected.
FALSEotherwise

Definition at line 56 of file DebugLibDetect.c.