]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
OvmfPkg/VirtioMmioDeviceLib: list "VirtioMmioDevice.h" in the INF file
[mirror_edk2.git] / OvmfPkg / Library / PlatformDebugLibIoPort / DebugLibDetect.h
CommitLineData
c09d9571
PB
1/** @file\r
2 Base Debug library instance for QEMU debug port.\r
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
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __DEBUG_IO_PORT_DETECT_H__\r
17#define __DEBUG_IO_PORT_DETECT_H__\r
18\r
19#include <Base.h>\r
20\r
21//\r
22// The constant value that is read from the debug I/O port\r
23//\r
24#define BOCHS_DEBUG_PORT_MAGIC 0xE9\r
25\r
26\r
27/**\r
28 Helper function to return whether the virtual machine has a debug I/O port.\r
29 PlatformDebugLibIoPortFound can call this function directly or cache the\r
30 result.\r
31\r
32 @retval TRUE if the debug I/O port device was detected.\r
33 @retval FALSE otherwise\r
34\r
35**/\r
36BOOLEAN\r
37EFIAPI\r
38PlatformDebugLibIoPortDetect (\r
39 VOID\r
40 );\r
41\r
42/**\r
43 Return whether the virtual machine has a debug I/O port. DebugLib.c\r
44 calls this function instead of PlatformDebugLibIoPortDetect, to allow\r
45 caching if possible.\r
46\r
47 @retval TRUE if the debug I/O port device was detected.\r
48 @retval FALSE otherwise\r
49\r
50**/\r
51BOOLEAN\r
52EFIAPI\r
53PlatformDebugLibIoPortFound (\r
54 VOID\r
55 );\r
56\r
57#endif\r