]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Library / PlatformDebugLibIoPort / DebugLibDetect.h
CommitLineData
c09d9571 1/** @file\r
61ac4fc7 2 Base Debug library instance for hypervisor debug port.\r
c09d9571
PB
3 It uses PrintLib to send debug messages to a fixed I/O port.\r
4\r
5 Copyright (c) 2017, Red Hat, Inc.<BR>\r
b26f0cf9 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
c09d9571
PB
7\r
8**/\r
9\r
10#ifndef __DEBUG_IO_PORT_DETECT_H__\r
11#define __DEBUG_IO_PORT_DETECT_H__\r
12\r
13#include <Base.h>\r
14\r
c09d9571
PB
15/**\r
16 Helper function to return whether the virtual machine has a debug I/O port.\r
17 PlatformDebugLibIoPortFound can call this function directly or cache the\r
18 result.\r
19\r
20 @retval TRUE if the debug I/O port device was detected.\r
21 @retval FALSE otherwise\r
22\r
23**/\r
24BOOLEAN\r
25EFIAPI\r
26PlatformDebugLibIoPortDetect (\r
27 VOID\r
28 );\r
29\r
30/**\r
31 Return whether the virtual machine has a debug I/O port. DebugLib.c\r
32 calls this function instead of PlatformDebugLibIoPortDetect, to allow\r
33 caching if possible.\r
34\r
35 @retval TRUE if the debug I/O port device was detected.\r
36 @retval FALSE otherwise\r
37\r
38**/\r
39BOOLEAN\r
40EFIAPI\r
41PlatformDebugLibIoPortFound (\r
42 VOID\r
43 );\r
44\r
45#endif\r