TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
RETURN_STATUS EFIAPI | PlatformDebugLibIoPortConstructor (VOID) |
BOOLEAN EFIAPI | PlatformDebugLibIoPortFound (VOID) |
Variables | |
STATIC BOOLEAN | mDebugIoPortChecked = FALSE |
STATIC BOOLEAN | mDebugIoPortFound = FALSE |
Detection code for hypervisor debug port. Non-SEC instance, caches the result of detection.
Copyright (c) 2017, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DebugLibDetect.c.
RETURN_STATUS EFIAPI PlatformDebugLibIoPortConstructor | ( | VOID | ) |
This constructor function must not do anything.
Some modules consuming this library instance, such as the DXE Core, invoke the DEBUG() macro before they explicitly call ProcessLibraryConstructorList(). Therefore the auto-generated call from ProcessLibraryConstructorList() to this constructor function may be preceded by some calls to PlatformDebugLibIoPortFound() below. Hence PlatformDebugLibIoPortFound() must not rely on anything this constructor could set up.
RETURN_SUCCESS | The constructor always returns RETURN_SUCCESS. |
Definition at line 39 of file DebugLibDetect.c.
BOOLEAN EFIAPI PlatformDebugLibIoPortFound | ( | VOID | ) |
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.
TRUE | if the debug I/O port device was detected. |
FALSE | otherwise |
Definition at line 56 of file DebugLibDetect.c.
Definition at line 16 of file DebugLibDetect.c.
Definition at line 21 of file DebugLibDetect.c.