]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
OvmfPkg/PlatformDebugLibIoPort: Reword QEMU to hypervisor
[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
15//\r
16// The constant value that is read from the debug I/O port\r
17//\r
18#define BOCHS_DEBUG_PORT_MAGIC 0xE9\r
19\r
20\r
21/**\r
22 Helper function to return whether the virtual machine has a debug I/O port.\r
23 PlatformDebugLibIoPortFound can call this function directly or cache the\r
24 result.\r
25\r
26 @retval TRUE if the debug I/O port device was detected.\r
27 @retval FALSE otherwise\r
28\r
29**/\r
30BOOLEAN\r
31EFIAPI\r
32PlatformDebugLibIoPortDetect (\r
33 VOID\r
34 );\r
35\r
36/**\r
37 Return whether the virtual machine has a debug I/O port. DebugLib.c\r
38 calls this function instead of PlatformDebugLibIoPortDetect, to allow\r
39 caching if possible.\r
40\r
41 @retval TRUE if the debug I/O port device was detected.\r
42 @retval FALSE otherwise\r
43\r
44**/\r
45BOOLEAN\r
46EFIAPI\r
47PlatformDebugLibIoPortFound (\r
48 VOID\r
49 );\r
50\r
51#endif\r