TianoCore EDK2 master
Loading...
Searching...
No Matches
SerialPortLib.h
Go to the documentation of this file.
1
10#ifndef __SERIAL_PORT_LIB__
11#define __SERIAL_PORT_LIB__
12
13#include <Uefi/UefiBaseType.h>
14#include <Protocol/SerialIo.h>
15
27RETURN_STATUS
28EFIAPI
30 VOID
31 );
32
51EFIAPI
53 IN UINT8 *Buffer,
54 IN UINTN NumberOfBytes
55 );
56
74EFIAPI
76 OUT UINT8 *Buffer,
77 IN UINTN NumberOfBytes
78 );
79
91BOOLEAN
92EFIAPI
94 VOID
95 );
96
107RETURN_STATUS
108EFIAPI
110 IN UINT32 Control
111 );
112
123RETURN_STATUS
124EFIAPI
126 OUT UINT32 *Control
127 );
128
162RETURN_STATUS
163EFIAPI
165 IN OUT UINT64 *BaudRate,
166 IN OUT UINT32 *ReceiveFifoDepth,
167 IN OUT UINT32 *Timeout,
168 IN OUT EFI_PARITY_TYPE *Parity,
169 IN OUT UINT8 *DataBits,
170 IN OUT EFI_STOP_BITS_TYPE *StopBits
171 );
172
173#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STOP_BITS_TYPE
Definition: SerialIo.h:53
EFI_PARITY_TYPE
Definition: SerialIo.h:41
BOOLEAN EFIAPI SerialPortPoll(VOID)
RETURN_STATUS EFIAPI SerialPortSetAttributes(IN OUT UINT64 *BaudRate, IN OUT UINT32 *ReceiveFifoDepth, IN OUT UINT32 *Timeout, IN OUT EFI_PARITY_TYPE *Parity, IN OUT UINT8 *DataBits, IN OUT EFI_STOP_BITS_TYPE *StopBits)
UINTN EFIAPI SerialPortRead(OUT UINT8 *Buffer, IN UINTN NumberOfBytes)
RETURN_STATUS EFIAPI SerialPortInitialize(VOID)
Definition: SerialPortLib.c:25
RETURN_STATUS EFIAPI SerialPortSetControl(IN UINT32 Control)
RETURN_STATUS EFIAPI SerialPortGetControl(OUT UINT32 *Control)
UINTN EFIAPI SerialPortWrite(IN UINT8 *Buffer, IN UINTN NumberOfBytes)
Definition: SerialPortLib.c:52