TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugLibDetect.c
Go to the documentation of this file.
1
10#include <Base.h>
11#include "DebugLibDetect.h"
12
13//
14// Set to TRUE if the debug I/O port has been checked
15//
16STATIC BOOLEAN mDebugIoPortChecked = FALSE;
17
18//
19// Set to TRUE if the debug I/O port is enabled
20//
21STATIC BOOLEAN mDebugIoPortFound = FALSE;
22
37RETURN_STATUS
38EFIAPI
40 VOID
41 )
42{
43 return RETURN_SUCCESS;
44}
45
54BOOLEAN
55EFIAPI
57 VOID
58 )
59{
60 if (!mDebugIoPortChecked) {
61 mDebugIoPortFound = PlatformDebugLibIoPortDetect ();
62 mDebugIoPortChecked = TRUE;
63 }
64
65 return mDebugIoPortFound;
66}
BOOLEAN EFIAPI PlatformDebugLibIoPortDetect(VOID)
RETURN_STATUS EFIAPI PlatformDebugLibIoPortConstructor(VOID)
BOOLEAN EFIAPI PlatformDebugLibIoPortFound(VOID)
#define STATIC
Definition: Base.h:264
#define RETURN_SUCCESS
Definition: Base.h:1066
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307