TianoCore EDK2
master
Loading...
Searching...
No Matches
DxeEmuStdErrSerialPortLib.c
Go to the documentation of this file.
1
11
#include <
PiDxe.h
>
12
#include <
Library/SerialPortLib.h
>
13
#include <Library/EmuThunkLib.h>
14
26
RETURN_STATUS
27
EFIAPI
28
SerialPortInitialize
(
29
VOID
30
)
31
{
32
return
RETURN_SUCCESS
;
33
}
34
52
UINTN
53
EFIAPI
54
SerialPortWrite
(
55
IN
UINT8 *Buffer,
56
IN
UINTN
NumberOfBytes
57
)
58
{
59
if
(gEmuThunk ==
NULL
) {
60
return
NumberOfBytes;
61
}
62
63
return
gEmuThunk->WriteStdErr (Buffer, NumberOfBytes);
64
}
65
82
UINTN
83
EFIAPI
84
SerialPortRead
(
85
OUT
UINT8 *Buffer,
86
IN
UINTN
NumberOfBytes
87
)
88
{
89
return
0;
90
}
91
103
BOOLEAN
104
EFIAPI
105
SerialPortPoll
(
106
VOID
107
)
108
{
109
return
FALSE
;
110
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
SerialPortPoll
BOOLEAN EFIAPI SerialPortPoll(VOID)
Definition:
DxeEmuStdErrSerialPortLib.c:105
SerialPortRead
UINTN EFIAPI SerialPortRead(OUT UINT8 *Buffer, IN UINTN NumberOfBytes)
Definition:
DxeEmuStdErrSerialPortLib.c:84
SerialPortInitialize
RETURN_STATUS EFIAPI SerialPortInitialize(VOID)
Definition:
DxeEmuStdErrSerialPortLib.c:28
SerialPortWrite
UINTN EFIAPI SerialPortWrite(IN UINT8 *Buffer, IN UINTN NumberOfBytes)
Definition:
DxeEmuStdErrSerialPortLib.c:54
NULL
#define NULL
Definition:
Base.h:319
RETURN_SUCCESS
#define RETURN_SUCCESS
Definition:
Base.h:1066
FALSE
#define FALSE
Definition:
Base.h:307
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
PiDxe.h
SerialPortLib.h
EmulatorPkg
Library
DxeEmuStdErrSerialPortLib
DxeEmuStdErrSerialPortLib.c
Generated on Fri Nov 15 2024 18:01:07 for TianoCore EDK2 by
1.9.6