]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
4677c85ac3c4f03b1743cf59d9d97c34b247ac52
2 Base Debug library instance for hypervisor debug port.
3 It uses PrintLib to send debug messages to a fixed I/O port.
5 Copyright (c) 2017, Red Hat, Inc.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __DEBUG_IO_PORT_DETECT_H__
11 #define __DEBUG_IO_PORT_DETECT_H__
16 // The constant value that is read from the debug I/O port
18 #define BOCHS_DEBUG_PORT_MAGIC 0xE9
22 Helper function to return whether the virtual machine has a debug I/O port.
23 PlatformDebugLibIoPortFound can call this function directly or cache the
26 @retval TRUE if the debug I/O port device was detected.
27 @retval FALSE otherwise
32 PlatformDebugLibIoPortDetect (
37 Return whether the virtual machine has a debug I/O port. DebugLib.c
38 calls this function instead of PlatformDebugLibIoPortDetect, to allow
41 @retval TRUE if the debug I/O port device was detected.
42 @retval FALSE otherwise
47 PlatformDebugLibIoPortFound (