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
27BOOLEAN
28EFIAPI
30 VOID
31 )
32{
33 return IoRead8 (PcdGet16 (PcdDebugIoPort)) == BOCHS_DEBUG_PORT_MAGIC;
34}
BOOLEAN EFIAPI PlatformDebugLibIoPortDetect(VOID)
UINT8 EFIAPI IoRead8(IN UINTN Port)
Definition: IoLibArmVirt.c:175
#define PcdGet16(TokenName)
Definition: PcdLib.h:349