]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformDebugLibIoPort/DebugLibDetect.h
2 Base Debug library instance for QEMU 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 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef __DEBUG_IO_PORT_DETECT_H__
17 #define __DEBUG_IO_PORT_DETECT_H__
22 // The constant value that is read from the debug I/O port
24 #define BOCHS_DEBUG_PORT_MAGIC 0xE9
28 Helper function to return whether the virtual machine has a debug I/O port.
29 PlatformDebugLibIoPortFound can call this function directly or cache the
32 @retval TRUE if the debug I/O port device was detected.
33 @retval FALSE otherwise
38 PlatformDebugLibIoPortDetect (
43 Return whether the virtual machine has a debug I/O port. DebugLib.c
44 calls this function instead of PlatformDebugLibIoPortDetect, to allow
47 @retval TRUE if the debug I/O port device was detected.
48 @retval FALSE otherwise
53 PlatformDebugLibIoPortFound (