21UINTN mDebugLibFdtPL011UartAddress;
22RETURN_STATUS mDebugLibFdtPL011UartPermanentStatus =
RETURN_SUCCESS;
38 UINT32 ReceiveFifoDepth;
43 if (mDebugLibFdtPL011UartAddress != 0) {
47 if (
RETURN_ERROR (mDebugLibFdtPL011UartPermanentStatus)) {
48 return mDebugLibFdtPL011UartPermanentStatus;
52 if ((Hob ==
NULL) || (GET_GUID_HOB_DATA_SIZE (Hob) !=
sizeof *UartBase)) {
57 UartBase = GET_GUID_HOB_DATA (Hob);
59 DebugAddress = (
UINTN)UartBase->DebugAddress;
60 if (DebugAddress == 0) {
68 DataBits =
PcdGet8 (PcdUartDefaultDataBits);
84 mDebugLibFdtPL011UartAddress = DebugAddress;
88 mDebugLibFdtPL011UartPermanentStatus = Status;
116 RETURN_STATUS Status;
123 return PL011UartWrite (mDebugLibFdtPL011UartAddress, Buffer, NumberOfBytes);
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
#define RETURN_ERROR(StatusCode)
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 PcdGet8(TokenName)
STATIC RETURN_STATUS Initialize(VOID)
UINTN DebugLibFdtPL011UartWrite(IN UINT8 *Buffer, IN UINTN NumberOfBytes)