TianoCore EDK2 master
Loading...
Searching...
No Matches
PL011Uart.h File Reference

Go to the source code of this file.

Macros

#define PL011_VARIANT_ZTE   1
 
#define UARTDR   0x000
 
#define UARTRSR   0x004
 
#define UARTECR   0x004
 
#define UARTFR   0x018
 
#define UARTILPR   0x020
 
#define UARTIBRD   0x024
 
#define UARTFBRD   0x028
 
#define UARTLCR_H   0x02C
 
#define UARTCR   0x030
 
#define UARTIFLS   0x034
 
#define UARTIMSC   0x038
 
#define UARTRIS   0x03C
 
#define UARTMIS   0x040
 
#define UARTICR   0x044
 
#define UARTDMACR   0x048
 
#define UARTPID0   0xFE0
 
#define UARTPID1   0xFE4
 
#define UARTPID2   0xFE8
 
#define UARTPID3   0xFEC
 
#define UART_DATA_ERROR_MASK   0x0F00
 
#define UART_STATUS_ERROR_MASK   0x0F
 
#define PL011_UARTFR_RI   (1 << 8)
 
#define PL011_UARTFR_TXFE   (1 << 7)
 
#define PL011_UARTFR_RXFF   (1 << 6)
 
#define PL011_UARTFR_TXFF   (1 << 5)
 
#define PL011_UARTFR_RXFE   (1 << 4)
 
#define PL011_UARTFR_BUSY   (1 << 3)
 
#define PL011_UARTFR_DCD   (1 << 2)
 
#define PL011_UARTFR_DSR   (1 << 1)
 
#define PL011_UARTFR_CTS   (1 << 0)
 
#define UART_TX_EMPTY_FLAG_MASK   PL011_UARTFR_TXFE
 
#define UART_RX_FULL_FLAG_MASK   PL011_UARTFR_RXFF
 
#define UART_TX_FULL_FLAG_MASK   PL011_UARTFR_TXFF
 
#define UART_RX_EMPTY_FLAG_MASK   PL011_UARTFR_RXFE
 
#define UART_BUSY_FLAG_MASK   PL011_UARTFR_BUSY
 
#define PL011_UARTCR_CTSEN   (1 << 15)
 
#define PL011_UARTCR_RTSEN   (1 << 14)
 
#define PL011_UARTCR_RTS   (1 << 11)
 
#define PL011_UARTCR_DTR   (1 << 10)
 
#define PL011_UARTCR_RXE   (1 << 9)
 
#define PL011_UARTCR_TXE   (1 << 8)
 
#define PL011_UARTCR_LBE   (1 << 7)
 
#define PL011_UARTCR_UARTEN   (1 << 0)
 
#define PL011_UARTLCR_H_SPS   (1 << 7)
 
#define PL011_UARTLCR_H_WLEN_8   (3 << 5)
 
#define PL011_UARTLCR_H_WLEN_7   (2 << 5)
 
#define PL011_UARTLCR_H_WLEN_6   (1 << 5)
 
#define PL011_UARTLCR_H_WLEN_5   (0 << 5)
 
#define PL011_UARTLCR_H_FEN   (1 << 4)
 
#define PL011_UARTLCR_H_STP2   (1 << 3)
 
#define PL011_UARTLCR_H_EPS   (1 << 2)
 
#define PL011_UARTLCR_H_PEN   (1 << 1)
 
#define PL011_UARTLCR_H_BRK   (1 << 0)
 
#define PL011_UARTPID2_VER(X)   (((X) >> 4) & 0xF)
 
#define PL011_VER_R1P4   0x2
 

Detailed Description

Copyright (c) 2011-2016, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PL011Uart.h.

Macro Definition Documentation

◆ PL011_UARTCR_CTSEN

#define PL011_UARTCR_CTSEN   (1 << 15)

Definition at line 90 of file PL011Uart.h.

◆ PL011_UARTCR_DTR

#define PL011_UARTCR_DTR   (1 << 10)

Definition at line 93 of file PL011Uart.h.

◆ PL011_UARTCR_LBE

#define PL011_UARTCR_LBE   (1 << 7)

Definition at line 96 of file PL011Uart.h.

◆ PL011_UARTCR_RTS

#define PL011_UARTCR_RTS   (1 << 11)

Definition at line 92 of file PL011Uart.h.

◆ PL011_UARTCR_RTSEN

#define PL011_UARTCR_RTSEN   (1 << 14)

Definition at line 91 of file PL011Uart.h.

◆ PL011_UARTCR_RXE

#define PL011_UARTCR_RXE   (1 << 9)

Definition at line 94 of file PL011Uart.h.

◆ PL011_UARTCR_TXE

#define PL011_UARTCR_TXE   (1 << 8)

Definition at line 95 of file PL011Uart.h.

◆ PL011_UARTCR_UARTEN

#define PL011_UARTCR_UARTEN   (1 << 0)

Definition at line 97 of file PL011Uart.h.

◆ PL011_UARTFR_BUSY

#define PL011_UARTFR_BUSY   (1 << 3)

Definition at line 76 of file PL011Uart.h.

◆ PL011_UARTFR_CTS

#define PL011_UARTFR_CTS   (1 << 0)

Definition at line 79 of file PL011Uart.h.

◆ PL011_UARTFR_DCD

#define PL011_UARTFR_DCD   (1 << 2)

Definition at line 77 of file PL011Uart.h.

◆ PL011_UARTFR_DSR

#define PL011_UARTFR_DSR   (1 << 1)

Definition at line 78 of file PL011Uart.h.

◆ PL011_UARTFR_RI

#define PL011_UARTFR_RI   (1 << 8)

Definition at line 71 of file PL011Uart.h.

◆ PL011_UARTFR_RXFE

#define PL011_UARTFR_RXFE   (1 << 4)

Definition at line 75 of file PL011Uart.h.

◆ PL011_UARTFR_RXFF

#define PL011_UARTFR_RXFF   (1 << 6)

Definition at line 73 of file PL011Uart.h.

◆ PL011_UARTFR_TXFE

#define PL011_UARTFR_TXFE   (1 << 7)

Definition at line 72 of file PL011Uart.h.

◆ PL011_UARTFR_TXFF

#define PL011_UARTFR_TXFF   (1 << 5)

Definition at line 74 of file PL011Uart.h.

◆ PL011_UARTLCR_H_BRK

#define PL011_UARTLCR_H_BRK   (1 << 0)

Definition at line 109 of file PL011Uart.h.

◆ PL011_UARTLCR_H_EPS

#define PL011_UARTLCR_H_EPS   (1 << 2)

Definition at line 107 of file PL011Uart.h.

◆ PL011_UARTLCR_H_FEN

#define PL011_UARTLCR_H_FEN   (1 << 4)

Definition at line 105 of file PL011Uart.h.

◆ PL011_UARTLCR_H_PEN

#define PL011_UARTLCR_H_PEN   (1 << 1)

Definition at line 108 of file PL011Uart.h.

◆ PL011_UARTLCR_H_SPS

#define PL011_UARTLCR_H_SPS   (1 << 7)

Definition at line 100 of file PL011Uart.h.

◆ PL011_UARTLCR_H_STP2

#define PL011_UARTLCR_H_STP2   (1 << 3)

Definition at line 106 of file PL011Uart.h.

◆ PL011_UARTLCR_H_WLEN_5

#define PL011_UARTLCR_H_WLEN_5   (0 << 5)

Definition at line 104 of file PL011Uart.h.

◆ PL011_UARTLCR_H_WLEN_6

#define PL011_UARTLCR_H_WLEN_6   (1 << 5)

Definition at line 103 of file PL011Uart.h.

◆ PL011_UARTLCR_H_WLEN_7

#define PL011_UARTLCR_H_WLEN_7   (2 << 5)

Definition at line 102 of file PL011Uart.h.

◆ PL011_UARTLCR_H_WLEN_8

#define PL011_UARTLCR_H_WLEN_8   (3 << 5)

Definition at line 101 of file PL011Uart.h.

◆ PL011_UARTPID2_VER

#define PL011_UARTPID2_VER (   X)    (((X) >> 4) & 0xF)

Definition at line 111 of file PL011Uart.h.

◆ PL011_VARIANT_ZTE

#define PL011_VARIANT_ZTE   1

Definition at line 12 of file PL011Uart.h.

◆ PL011_VER_R1P4

#define PL011_VER_R1P4   0x2

Definition at line 112 of file PL011Uart.h.

◆ UART_BUSY_FLAG_MASK

#define UART_BUSY_FLAG_MASK   PL011_UARTFR_BUSY

Definition at line 87 of file PL011Uart.h.

◆ UART_DATA_ERROR_MASK

#define UART_DATA_ERROR_MASK   0x0F00

Definition at line 54 of file PL011Uart.h.

◆ UART_RX_EMPTY_FLAG_MASK

#define UART_RX_EMPTY_FLAG_MASK   PL011_UARTFR_RXFE

Definition at line 86 of file PL011Uart.h.

◆ UART_RX_FULL_FLAG_MASK

#define UART_RX_FULL_FLAG_MASK   PL011_UARTFR_RXFF

Definition at line 84 of file PL011Uart.h.

◆ UART_STATUS_ERROR_MASK

#define UART_STATUS_ERROR_MASK   0x0F

Definition at line 57 of file PL011Uart.h.

◆ UART_TX_EMPTY_FLAG_MASK

#define UART_TX_EMPTY_FLAG_MASK   PL011_UARTFR_TXFE

Definition at line 83 of file PL011Uart.h.

◆ UART_TX_FULL_FLAG_MASK

#define UART_TX_FULL_FLAG_MASK   PL011_UARTFR_TXFF

Definition at line 85 of file PL011Uart.h.

◆ UARTCR

#define UARTCR   0x030

Definition at line 39 of file PL011Uart.h.

◆ UARTDMACR

#define UARTDMACR   0x048

Definition at line 45 of file PL011Uart.h.

◆ UARTDR

#define UARTDR   0x000

Definition at line 31 of file PL011Uart.h.

◆ UARTECR

#define UARTECR   0x004

Definition at line 33 of file PL011Uart.h.

◆ UARTFBRD

#define UARTFBRD   0x028

Definition at line 37 of file PL011Uart.h.

◆ UARTFR

#define UARTFR   0x018

Definition at line 34 of file PL011Uart.h.

◆ UARTIBRD

#define UARTIBRD   0x024

Definition at line 36 of file PL011Uart.h.

◆ UARTICR

#define UARTICR   0x044

Definition at line 44 of file PL011Uart.h.

◆ UARTIFLS

#define UARTIFLS   0x034

Definition at line 40 of file PL011Uart.h.

◆ UARTILPR

#define UARTILPR   0x020

Definition at line 35 of file PL011Uart.h.

◆ UARTIMSC

#define UARTIMSC   0x038

Definition at line 41 of file PL011Uart.h.

◆ UARTLCR_H

#define UARTLCR_H   0x02C

Definition at line 38 of file PL011Uart.h.

◆ UARTMIS

#define UARTMIS   0x040

Definition at line 43 of file PL011Uart.h.

◆ UARTPID0

#define UARTPID0   0xFE0

Definition at line 48 of file PL011Uart.h.

◆ UARTPID1

#define UARTPID1   0xFE4

Definition at line 49 of file PL011Uart.h.

◆ UARTPID2

#define UARTPID2   0xFE8

Definition at line 50 of file PL011Uart.h.

◆ UARTPID3

#define UARTPID3   0xFEC

Definition at line 51 of file PL011Uart.h.

◆ UARTRIS

#define UARTRIS   0x03C

Definition at line 42 of file PL011Uart.h.

◆ UARTRSR

#define UARTRSR   0x004

Definition at line 32 of file PL011Uart.h.