TianoCore EDK2
master
Loading...
Searching...
No Matches
DebugIoPortQemu.c
Go to the documentation of this file.
1
11
#include <
Library/IoLib.h
>
12
#include <
Library/PcdLib.h
>
13
#include "
DebugLibDetect.h
"
14
15
//
16
// The constant value that is read from the debug I/O port
17
//
18
#define BOCHS_DEBUG_PORT_MAGIC 0xE9
19
27
BOOLEAN
28
EFIAPI
29
PlatformDebugLibIoPortDetect
(
30
VOID
31
)
32
{
33
return
IoRead8
(
PcdGet16
(PcdDebugIoPort)) == BOCHS_DEBUG_PORT_MAGIC;
34
}
PlatformDebugLibIoPortDetect
BOOLEAN EFIAPI PlatformDebugLibIoPortDetect(VOID)
Definition:
DebugIoPortQemu.c:29
DebugLibDetect.h
IoLib.h
IoRead8
UINT8 EFIAPI IoRead8(IN UINTN Port)
Definition:
IoLibArmVirt.c:175
PcdLib.h
PcdGet16
#define PcdGet16(TokenName)
Definition:
PcdLib.h:349
OvmfPkg
Library
PlatformDebugLibIoPort
DebugIoPortQemu.c
Generated on Fri Nov 15 2024 18:01:21 for TianoCore EDK2 by
1.9.6