49SerialPortGetBaseAddress (
54 UINT32 ReceiveFifoDepth;
63 DeviceTreeBase = (VOID *)(
UINTN)
PcdGet64 (PcdDeviceTreeInitialBaseAddress);
65 if (DeviceTreeBase ==
NULL) {
79 UartBase = Ports.BaseAddress[0];
80 if (Ports.NumberOfPorts > 1) {
123 UINT64 SerialRegisterBase;
125 SerialRegisterBase = SerialPortGetBaseAddress ();
126 if (SerialRegisterBase != 0) {
243 IN OUT UINT64 *BaudRate,
244 IN OUT UINT32 *ReceiveFifoDepth,
245 IN OUT UINT32 *Timeout,
247 IN OUT UINT8 *DataBits,
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)
RETURN_STATUS EFIAPI SerialPortSetControl(IN UINT32 Control)
RETURN_STATUS EFIAPI SerialPortGetControl(OUT UINT32 *Control)
UINTN EFIAPI SerialPortWrite(IN UINT8 *Buffer, IN UINTN NumberOfBytes)
RETURN_STATUS EFIAPI FdtSerialGetConsolePort(IN CONST VOID *DeviceTree, OUT UINT64 *BaseAddress)
RETURN_STATUS EFIAPI FdtSerialGetPorts(IN CONST VOID *DeviceTree, IN CONST CHAR8 *Compatible, OUT FDT_SERIAL_PORTS *Ports)
#define RETURN_ERROR(StatusCode)
#define RETURN_UNSUPPORTED
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)
UINTN EFIAPI PL011UartWrite(IN UINTN UartBase, IN UINT8 *Buffer, IN UINTN NumberOfBytes)
#define PcdGet64(TokenName)
#define FixedPcdGet32(TokenName)
#define FixedPcdGet64(TokenName)
#define FixedPcdGet8(TokenName)