Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
regs-uart.h File Reference

Go to the source code of this file.

Macros

#define FFUART   FFRBR
 
#define FFRBR   __REG(0x40100000) /* Receive Buffer Register (read only) */
 
#define FFTHR   __REG(0x40100000) /* Transmit Holding Register (write only) */
 
#define FFIER   __REG(0x40100004) /* Interrupt Enable Register (read/write) */
 
#define FFIIR   __REG(0x40100008) /* Interrupt ID Register (read only) */
 
#define FFFCR   __REG(0x40100008) /* FIFO Control Register (write only) */
 
#define FFLCR   __REG(0x4010000C) /* Line Control Register (read/write) */
 
#define FFMCR   __REG(0x40100010) /* Modem Control Register (read/write) */
 
#define FFLSR   __REG(0x40100014) /* Line Status Register (read only) */
 
#define FFMSR   __REG(0x40100018) /* Modem Status Register (read only) */
 
#define FFSPR   __REG(0x4010001C) /* Scratch Pad Register (read/write) */
 
#define FFISR   __REG(0x40100020) /* Infrared Selection Register (read/write) */
 
#define FFDLL   __REG(0x40100000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
 
#define FFDLH   __REG(0x40100004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
 
#define BTUART   BTRBR
 
#define BTRBR   __REG(0x40200000) /* Receive Buffer Register (read only) */
 
#define BTTHR   __REG(0x40200000) /* Transmit Holding Register (write only) */
 
#define BTIER   __REG(0x40200004) /* Interrupt Enable Register (read/write) */
 
#define BTIIR   __REG(0x40200008) /* Interrupt ID Register (read only) */
 
#define BTFCR   __REG(0x40200008) /* FIFO Control Register (write only) */
 
#define BTLCR   __REG(0x4020000C) /* Line Control Register (read/write) */
 
#define BTMCR   __REG(0x40200010) /* Modem Control Register (read/write) */
 
#define BTLSR   __REG(0x40200014) /* Line Status Register (read only) */
 
#define BTMSR   __REG(0x40200018) /* Modem Status Register (read only) */
 
#define BTSPR   __REG(0x4020001C) /* Scratch Pad Register (read/write) */
 
#define BTISR   __REG(0x40200020) /* Infrared Selection Register (read/write) */
 
#define BTDLL   __REG(0x40200000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
 
#define BTDLH   __REG(0x40200004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
 
#define STUART   STRBR
 
#define STRBR   __REG(0x40700000) /* Receive Buffer Register (read only) */
 
#define STTHR   __REG(0x40700000) /* Transmit Holding Register (write only) */
 
#define STIER   __REG(0x40700004) /* Interrupt Enable Register (read/write) */
 
#define STIIR   __REG(0x40700008) /* Interrupt ID Register (read only) */
 
#define STFCR   __REG(0x40700008) /* FIFO Control Register (write only) */
 
#define STLCR   __REG(0x4070000C) /* Line Control Register (read/write) */
 
#define STMCR   __REG(0x40700010) /* Modem Control Register (read/write) */
 
#define STLSR   __REG(0x40700014) /* Line Status Register (read only) */
 
#define STMSR   __REG(0x40700018) /* Reserved */
 
#define STSPR   __REG(0x4070001C) /* Scratch Pad Register (read/write) */
 
#define STISR   __REG(0x40700020) /* Infrared Selection Register (read/write) */
 
#define STDLL   __REG(0x40700000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
 
#define STDLH   __REG(0x40700004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
 
#define HWUART   HWRBR
 
#define HWRBR   __REG(0x41600000) /* Receive Buffer Register (read only) */
 
#define HWTHR   __REG(0x41600000) /* Transmit Holding Register (write only) */
 
#define HWIER   __REG(0x41600004) /* Interrupt Enable Register (read/write) */
 
#define HWIIR   __REG(0x41600008) /* Interrupt ID Register (read only) */
 
#define HWFCR   __REG(0x41600008) /* FIFO Control Register (write only) */
 
#define HWLCR   __REG(0x4160000C) /* Line Control Register (read/write) */
 
#define HWMCR   __REG(0x41600010) /* Modem Control Register (read/write) */
 
#define HWLSR   __REG(0x41600014) /* Line Status Register (read only) */
 
#define HWMSR   __REG(0x41600018) /* Modem Status Register (read only) */
 
#define HWSPR   __REG(0x4160001C) /* Scratch Pad Register (read/write) */
 
#define HWISR   __REG(0x41600020) /* Infrared Selection Register (read/write) */
 
#define HWFOR   __REG(0x41600024) /* Receive FIFO Occupancy Register (read only) */
 
#define HWABR   __REG(0x41600028) /* Auto-Baud Control Register (read/write) */
 
#define HWACR   __REG(0x4160002C) /* Auto-Baud Count Register (read only) */
 
#define HWDLL   __REG(0x41600000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
 
#define HWDLH   __REG(0x41600004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
 
#define IER_DMAE   (1 << 7) /* DMA Requests Enable */
 
#define IER_UUE   (1 << 6) /* UART Unit Enable */
 
#define IER_NRZE   (1 << 5) /* NRZ coding Enable */
 
#define IER_RTIOE   (1 << 4) /* Receiver Time Out Interrupt Enable */
 
#define IER_MIE   (1 << 3) /* Modem Interrupt Enable */
 
#define IER_RLSE   (1 << 2) /* Receiver Line Status Interrupt Enable */
 
#define IER_TIE   (1 << 1) /* Transmit Data request Interrupt Enable */
 
#define IER_RAVIE   (1 << 0) /* Receiver Data Available Interrupt Enable */
 
#define IIR_FIFOES1   (1 << 7) /* FIFO Mode Enable Status */
 
#define IIR_FIFOES0   (1 << 6) /* FIFO Mode Enable Status */
 
#define IIR_TOD   (1 << 3) /* Time Out Detected */
 
#define IIR_IID2   (1 << 2) /* Interrupt Source Encoded */
 
#define IIR_IID1   (1 << 1) /* Interrupt Source Encoded */
 
#define IIR_IP   (1 << 0) /* Interrupt Pending (active low) */
 
#define FCR_ITL2   (1 << 7) /* Interrupt Trigger Level */
 
#define FCR_ITL1   (1 << 6) /* Interrupt Trigger Level */
 
#define FCR_RESETTF   (1 << 2) /* Reset Transmitter FIFO */
 
#define FCR_RESETRF   (1 << 1) /* Reset Receiver FIFO */
 
#define FCR_TRFIFOE   (1 << 0) /* Transmit and Receive FIFO Enable */
 
#define FCR_ITL_1   (0)
 
#define FCR_ITL_8   (FCR_ITL1)
 
#define FCR_ITL_16   (FCR_ITL2)
 
#define FCR_ITL_32   (FCR_ITL2|FCR_ITL1)
 
#define LCR_DLAB   (1 << 7) /* Divisor Latch Access Bit */
 
#define LCR_SB   (1 << 6) /* Set Break */
 
#define LCR_STKYP   (1 << 5) /* Sticky Parity */
 
#define LCR_EPS   (1 << 4) /* Even Parity Select */
 
#define LCR_PEN   (1 << 3) /* Parity Enable */
 
#define LCR_STB   (1 << 2) /* Stop Bit */
 
#define LCR_WLS1   (1 << 1) /* Word Length Select */
 
#define LCR_WLS0   (1 << 0) /* Word Length Select */
 
#define LSR_FIFOE   (1 << 7) /* FIFO Error Status */
 
#define LSR_TEMT   (1 << 6) /* Transmitter Empty */
 
#define LSR_TDRQ   (1 << 5) /* Transmit Data Request */
 
#define LSR_BI   (1 << 4) /* Break Interrupt */
 
#define LSR_FE   (1 << 3) /* Framing Error */
 
#define LSR_PE   (1 << 2) /* Parity Error */
 
#define LSR_OE   (1 << 1) /* Overrun Error */
 
#define LSR_DR   (1 << 0) /* Data Ready */
 
#define MCR_LOOP   (1 << 4)
 
#define MCR_OUT2   (1 << 3) /* force MSR_DCD in loopback mode */
 
#define MCR_OUT1   (1 << 2) /* force MSR_RI in loopback mode */
 
#define MCR_RTS   (1 << 1) /* Request to Send */
 
#define MCR_DTR   (1 << 0) /* Data Terminal Ready */
 
#define MSR_DCD   (1 << 7) /* Data Carrier Detect */
 
#define MSR_RI   (1 << 6) /* Ring Indicator */
 
#define MSR_DSR   (1 << 5) /* Data Set Ready */
 
#define MSR_CTS   (1 << 4) /* Clear To Send */
 
#define MSR_DDCD   (1 << 3) /* Delta Data Carrier Detect */
 
#define MSR_TERI   (1 << 2) /* Trailing Edge Ring Indicator */
 
#define MSR_DDSR   (1 << 1) /* Delta Data Set Ready */
 
#define MSR_DCTS   (1 << 0) /* Delta Clear To Send */
 
#define STISR_RXPL   (1 << 4) /* Receive Data Polarity */
 
#define STISR_TXPL   (1 << 3) /* Transmit Data Polarity */
 
#define STISR_XMODE   (1 << 2) /* Transmit Pulse Width Select */
 
#define STISR_RCVEIR   (1 << 1) /* Receiver SIR Enable */
 
#define STISR_XMITIR   (1 << 0) /* Transmitter SIR Enable */
 

Macro Definition Documentation

#define BTDLH   __REG(0x40200004) /* Divisor Latch High Register (DLAB = 1) (read/write) */

Definition at line 38 of file regs-uart.h.

#define BTDLL   __REG(0x40200000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */

Definition at line 37 of file regs-uart.h.

#define BTFCR   __REG(0x40200008) /* FIFO Control Register (write only) */

Definition at line 30 of file regs-uart.h.

#define BTIER   __REG(0x40200004) /* Interrupt Enable Register (read/write) */

Definition at line 28 of file regs-uart.h.

#define BTIIR   __REG(0x40200008) /* Interrupt ID Register (read only) */

Definition at line 29 of file regs-uart.h.

#define BTISR   __REG(0x40200020) /* Infrared Selection Register (read/write) */

Definition at line 36 of file regs-uart.h.

#define BTLCR   __REG(0x4020000C) /* Line Control Register (read/write) */

Definition at line 31 of file regs-uart.h.

#define BTLSR   __REG(0x40200014) /* Line Status Register (read only) */

Definition at line 33 of file regs-uart.h.

#define BTMCR   __REG(0x40200010) /* Modem Control Register (read/write) */

Definition at line 32 of file regs-uart.h.

#define BTMSR   __REG(0x40200018) /* Modem Status Register (read only) */

Definition at line 34 of file regs-uart.h.

#define BTRBR   __REG(0x40200000) /* Receive Buffer Register (read only) */

Definition at line 26 of file regs-uart.h.

#define BTSPR   __REG(0x4020001C) /* Scratch Pad Register (read/write) */

Definition at line 35 of file regs-uart.h.

#define BTTHR   __REG(0x40200000) /* Transmit Holding Register (write only) */

Definition at line 27 of file regs-uart.h.

#define BTUART   BTRBR

Definition at line 25 of file regs-uart.h.

#define FCR_ITL1   (1 << 6) /* Interrupt Trigger Level */

Definition at line 92 of file regs-uart.h.

#define FCR_ITL2   (1 << 7) /* Interrupt Trigger Level */

Definition at line 91 of file regs-uart.h.

#define FCR_ITL_1   (0)

Definition at line 96 of file regs-uart.h.

#define FCR_ITL_16   (FCR_ITL2)

Definition at line 98 of file regs-uart.h.

#define FCR_ITL_32   (FCR_ITL2|FCR_ITL1)

Definition at line 99 of file regs-uart.h.

#define FCR_ITL_8   (FCR_ITL1)

Definition at line 97 of file regs-uart.h.

#define FCR_RESETRF   (1 << 1) /* Reset Receiver FIFO */

Definition at line 94 of file regs-uart.h.

#define FCR_RESETTF   (1 << 2) /* Reset Transmitter FIFO */

Definition at line 93 of file regs-uart.h.

#define FCR_TRFIFOE   (1 << 0) /* Transmit and Receive FIFO Enable */

Definition at line 95 of file regs-uart.h.

#define FFDLH   __REG(0x40100004) /* Divisor Latch High Register (DLAB = 1) (read/write) */

Definition at line 22 of file regs-uart.h.

#define FFDLL   __REG(0x40100000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */

Definition at line 21 of file regs-uart.h.

#define FFFCR   __REG(0x40100008) /* FIFO Control Register (write only) */

Definition at line 14 of file regs-uart.h.

#define FFIER   __REG(0x40100004) /* Interrupt Enable Register (read/write) */

Definition at line 12 of file regs-uart.h.

#define FFIIR   __REG(0x40100008) /* Interrupt ID Register (read only) */

Definition at line 13 of file regs-uart.h.

#define FFISR   __REG(0x40100020) /* Infrared Selection Register (read/write) */

Definition at line 20 of file regs-uart.h.

#define FFLCR   __REG(0x4010000C) /* Line Control Register (read/write) */

Definition at line 15 of file regs-uart.h.

#define FFLSR   __REG(0x40100014) /* Line Status Register (read only) */

Definition at line 17 of file regs-uart.h.

#define FFMCR   __REG(0x40100010) /* Modem Control Register (read/write) */

Definition at line 16 of file regs-uart.h.

#define FFMSR   __REG(0x40100018) /* Modem Status Register (read only) */

Definition at line 18 of file regs-uart.h.

#define FFRBR   __REG(0x40100000) /* Receive Buffer Register (read only) */

Definition at line 10 of file regs-uart.h.

#define FFSPR   __REG(0x4010001C) /* Scratch Pad Register (read/write) */

Definition at line 19 of file regs-uart.h.

#define FFTHR   __REG(0x40100000) /* Transmit Holding Register (write only) */

Definition at line 11 of file regs-uart.h.

#define FFUART   FFRBR

Definition at line 9 of file regs-uart.h.

#define HWABR   __REG(0x41600028) /* Auto-Baud Control Register (read/write) */

Definition at line 70 of file regs-uart.h.

#define HWACR   __REG(0x4160002C) /* Auto-Baud Count Register (read only) */

Definition at line 71 of file regs-uart.h.

#define HWDLH   __REG(0x41600004) /* Divisor Latch High Register (DLAB = 1) (read/write) */

Definition at line 73 of file regs-uart.h.

#define HWDLL   __REG(0x41600000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */

Definition at line 72 of file regs-uart.h.

#define HWFCR   __REG(0x41600008) /* FIFO Control Register (write only) */

Definition at line 62 of file regs-uart.h.

#define HWFOR   __REG(0x41600024) /* Receive FIFO Occupancy Register (read only) */

Definition at line 69 of file regs-uart.h.

#define HWIER   __REG(0x41600004) /* Interrupt Enable Register (read/write) */

Definition at line 60 of file regs-uart.h.

#define HWIIR   __REG(0x41600008) /* Interrupt ID Register (read only) */

Definition at line 61 of file regs-uart.h.

#define HWISR   __REG(0x41600020) /* Infrared Selection Register (read/write) */

Definition at line 68 of file regs-uart.h.

#define HWLCR   __REG(0x4160000C) /* Line Control Register (read/write) */

Definition at line 63 of file regs-uart.h.

#define HWLSR   __REG(0x41600014) /* Line Status Register (read only) */

Definition at line 65 of file regs-uart.h.

#define HWMCR   __REG(0x41600010) /* Modem Control Register (read/write) */

Definition at line 64 of file regs-uart.h.

#define HWMSR   __REG(0x41600018) /* Modem Status Register (read only) */

Definition at line 66 of file regs-uart.h.

#define HWRBR   __REG(0x41600000) /* Receive Buffer Register (read only) */

Definition at line 58 of file regs-uart.h.

#define HWSPR   __REG(0x4160001C) /* Scratch Pad Register (read/write) */

Definition at line 67 of file regs-uart.h.

#define HWTHR   __REG(0x41600000) /* Transmit Holding Register (write only) */

Definition at line 59 of file regs-uart.h.

#define HWUART   HWRBR

Definition at line 57 of file regs-uart.h.

#define IER_DMAE   (1 << 7) /* DMA Requests Enable */

Definition at line 75 of file regs-uart.h.

#define IER_MIE   (1 << 3) /* Modem Interrupt Enable */

Definition at line 79 of file regs-uart.h.

#define IER_NRZE   (1 << 5) /* NRZ coding Enable */

Definition at line 77 of file regs-uart.h.

#define IER_RAVIE   (1 << 0) /* Receiver Data Available Interrupt Enable */

Definition at line 82 of file regs-uart.h.

#define IER_RLSE   (1 << 2) /* Receiver Line Status Interrupt Enable */

Definition at line 80 of file regs-uart.h.

#define IER_RTIOE   (1 << 4) /* Receiver Time Out Interrupt Enable */

Definition at line 78 of file regs-uart.h.

#define IER_TIE   (1 << 1) /* Transmit Data request Interrupt Enable */

Definition at line 81 of file regs-uart.h.

#define IER_UUE   (1 << 6) /* UART Unit Enable */

Definition at line 76 of file regs-uart.h.

#define IIR_FIFOES0   (1 << 6) /* FIFO Mode Enable Status */

Definition at line 85 of file regs-uart.h.

#define IIR_FIFOES1   (1 << 7) /* FIFO Mode Enable Status */

Definition at line 84 of file regs-uart.h.

#define IIR_IID1   (1 << 1) /* Interrupt Source Encoded */

Definition at line 88 of file regs-uart.h.

#define IIR_IID2   (1 << 2) /* Interrupt Source Encoded */

Definition at line 87 of file regs-uart.h.

#define IIR_IP   (1 << 0) /* Interrupt Pending (active low) */

Definition at line 89 of file regs-uart.h.

#define IIR_TOD   (1 << 3) /* Time Out Detected */

Definition at line 86 of file regs-uart.h.

#define LCR_DLAB   (1 << 7) /* Divisor Latch Access Bit */

Definition at line 101 of file regs-uart.h.

#define LCR_EPS   (1 << 4) /* Even Parity Select */

Definition at line 104 of file regs-uart.h.

#define LCR_PEN   (1 << 3) /* Parity Enable */

Definition at line 105 of file regs-uart.h.

#define LCR_SB   (1 << 6) /* Set Break */

Definition at line 102 of file regs-uart.h.

#define LCR_STB   (1 << 2) /* Stop Bit */

Definition at line 106 of file regs-uart.h.

#define LCR_STKYP   (1 << 5) /* Sticky Parity */

Definition at line 103 of file regs-uart.h.

#define LCR_WLS0   (1 << 0) /* Word Length Select */

Definition at line 108 of file regs-uart.h.

#define LCR_WLS1   (1 << 1) /* Word Length Select */

Definition at line 107 of file regs-uart.h.

#define LSR_BI   (1 << 4) /* Break Interrupt */

Definition at line 113 of file regs-uart.h.

#define LSR_DR   (1 << 0) /* Data Ready */

Definition at line 117 of file regs-uart.h.

#define LSR_FE   (1 << 3) /* Framing Error */

Definition at line 114 of file regs-uart.h.

#define LSR_FIFOE   (1 << 7) /* FIFO Error Status */

Definition at line 110 of file regs-uart.h.

#define LSR_OE   (1 << 1) /* Overrun Error */

Definition at line 116 of file regs-uart.h.

#define LSR_PE   (1 << 2) /* Parity Error */

Definition at line 115 of file regs-uart.h.

#define LSR_TDRQ   (1 << 5) /* Transmit Data Request */

Definition at line 112 of file regs-uart.h.

#define LSR_TEMT   (1 << 6) /* Transmitter Empty */

Definition at line 111 of file regs-uart.h.

#define MCR_DTR   (1 << 0) /* Data Terminal Ready */

Definition at line 123 of file regs-uart.h.

#define MCR_LOOP   (1 << 4)

Definition at line 119 of file regs-uart.h.

#define MCR_OUT1   (1 << 2) /* force MSR_RI in loopback mode */

Definition at line 121 of file regs-uart.h.

#define MCR_OUT2   (1 << 3) /* force MSR_DCD in loopback mode */

Definition at line 120 of file regs-uart.h.

#define MCR_RTS   (1 << 1) /* Request to Send */

Definition at line 122 of file regs-uart.h.

#define MSR_CTS   (1 << 4) /* Clear To Send */

Definition at line 128 of file regs-uart.h.

#define MSR_DCD   (1 << 7) /* Data Carrier Detect */

Definition at line 125 of file regs-uart.h.

#define MSR_DCTS   (1 << 0) /* Delta Clear To Send */

Definition at line 132 of file regs-uart.h.

#define MSR_DDCD   (1 << 3) /* Delta Data Carrier Detect */

Definition at line 129 of file regs-uart.h.

#define MSR_DDSR   (1 << 1) /* Delta Data Set Ready */

Definition at line 131 of file regs-uart.h.

#define MSR_DSR   (1 << 5) /* Data Set Ready */

Definition at line 127 of file regs-uart.h.

#define MSR_RI   (1 << 6) /* Ring Indicator */

Definition at line 126 of file regs-uart.h.

#define MSR_TERI   (1 << 2) /* Trailing Edge Ring Indicator */

Definition at line 130 of file regs-uart.h.

#define STDLH   __REG(0x40700004) /* Divisor Latch High Register (DLAB = 1) (read/write) */

Definition at line 54 of file regs-uart.h.

#define STDLL   __REG(0x40700000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */

Definition at line 53 of file regs-uart.h.

#define STFCR   __REG(0x40700008) /* FIFO Control Register (write only) */

Definition at line 46 of file regs-uart.h.

#define STIER   __REG(0x40700004) /* Interrupt Enable Register (read/write) */

Definition at line 44 of file regs-uart.h.

#define STIIR   __REG(0x40700008) /* Interrupt ID Register (read only) */

Definition at line 45 of file regs-uart.h.

#define STISR   __REG(0x40700020) /* Infrared Selection Register (read/write) */

Definition at line 52 of file regs-uart.h.

#define STISR_RCVEIR   (1 << 1) /* Receiver SIR Enable */

Definition at line 140 of file regs-uart.h.

#define STISR_RXPL   (1 << 4) /* Receive Data Polarity */

Definition at line 137 of file regs-uart.h.

#define STISR_TXPL   (1 << 3) /* Transmit Data Polarity */

Definition at line 138 of file regs-uart.h.

#define STISR_XMITIR   (1 << 0) /* Transmitter SIR Enable */

Definition at line 141 of file regs-uart.h.

#define STISR_XMODE   (1 << 2) /* Transmit Pulse Width Select */

Definition at line 139 of file regs-uart.h.

#define STLCR   __REG(0x4070000C) /* Line Control Register (read/write) */

Definition at line 47 of file regs-uart.h.

#define STLSR   __REG(0x40700014) /* Line Status Register (read only) */

Definition at line 49 of file regs-uart.h.

#define STMCR   __REG(0x40700010) /* Modem Control Register (read/write) */

Definition at line 48 of file regs-uart.h.

#define STMSR   __REG(0x40700018) /* Reserved */

Definition at line 50 of file regs-uart.h.

#define STRBR   __REG(0x40700000) /* Receive Buffer Register (read only) */

Definition at line 42 of file regs-uart.h.

#define STSPR   __REG(0x4070001C) /* Scratch Pad Register (read/write) */

Definition at line 51 of file regs-uart.h.

#define STTHR   __REG(0x40700000) /* Transmit Holding Register (write only) */

Definition at line 43 of file regs-uart.h.

#define STUART   STRBR

Definition at line 41 of file regs-uart.h.