TianoCore EDK2 master
Loading...
Searching...
No Matches
PL011UartLib.h
Go to the documentation of this file.
1
9#ifndef __PL011_UART_LIB_H__
10#define __PL011_UART_LIB_H__
11
12#include <Uefi/UefiBaseType.h>
13
14#include <Protocol/SerialIo.h>
15
48RETURN_STATUS
49EFIAPI
51 IN UINTN UartBase,
52 IN UINT32 UartClkInHz,
53 IN OUT UINT64 *BaudRate,
54 IN OUT UINT32 *ReceiveFifoDepth,
55 IN OUT EFI_PARITY_TYPE *Parity,
56 IN OUT UINT8 *DataBits,
57 IN OUT EFI_STOP_BITS_TYPE *StopBits
58 );
59
87RETURN_STATUS
88EFIAPI
90 IN UINTN UartBase,
91 IN UINT32 Control
92 );
93
127RETURN_STATUS
128EFIAPI
130 IN UINTN UartBase,
131 OUT UINT32 *Control
132 );
133
144UINTN
145EFIAPI
147 IN UINTN UartBase,
148 IN UINT8 *Buffer,
149 IN UINTN NumberOfBytes
150 );
151
162UINTN
163EFIAPI
165 IN UINTN UartBase,
166 OUT UINT8 *Buffer,
167 IN UINTN NumberOfBytes
168 );
169
177BOOLEAN
178EFIAPI
180 IN UINTN UartBase
181 );
182
183#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFIAPI PL011UartInitializePort(IN UINTN UartBase, IN UINT32 UartClkInHz, IN OUT UINT64 *BaudRate, IN OUT UINT32 *ReceiveFifoDepth, IN OUT EFI_PARITY_TYPE *Parity, IN OUT UINT8 *DataBits, IN OUT EFI_STOP_BITS_TYPE *StopBits)
Definition: PL011UartLib.c:66
RETURN_STATUS EFIAPI PL011UartSetControl(IN UINTN UartBase, IN UINT32 Control)
Definition: PL011UartLib.c:270
UINTN EFIAPI PL011UartWrite(IN UINTN UartBase, IN UINT8 *Buffer, IN UINTN NumberOfBytes)
Definition: PL011UartLib.c:417
UINTN EFIAPI PL011UartRead(IN UINTN UartBase, OUT UINT8 *Buffer, IN UINTN NumberOfBytes)
Definition: PL011UartLib.c:448
BOOLEAN EFIAPI PL011UartPoll(IN UINTN UartBase)
Definition: PL011UartLib.c:475
RETURN_STATUS EFIAPI PL011UartGetControl(IN UINTN UartBase, OUT UINT32 *Control)
Definition: PL011UartLib.c:347
EFI_STOP_BITS_TYPE
Definition: SerialIo.h:53
EFI_PARITY_TYPE
Definition: SerialIo.h:41