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

Go to the source code of this file.

Macros

#define UART_RX_DATA   0x00
 
#define UART_TX_DATA   0x00
 
#define UART_INT_EN   0x01
 
#define UART_INT_ID   0x02
 
#define UART_FIFO_CTL   0x02
 
#define UART_LINE_CTL   0x03
 
#define UART_MODEM_CTL   0x04
 
#define UART_LINE_STS   0x05
 
#define UART_MODEM_STS   0x06
 
#define UART_DIVISOR0   0x00
 
#define UART_DIVISOR1   0x01
 
#define BASE_BAUD   (XLP_IO_CLK/16)
 
#define BAUD_DIVISOR(baud)   (BASE_BAUD / baud)
 
#define LCR_5BITS   0x00
 
#define LCR_6BITS   0x01
 
#define LCR_7BITS   0x02
 
#define LCR_8BITS   0x03
 
#define LCR_STOPB   0x04
 
#define LCR_PENAB   0x08
 
#define LCR_PODD   0x00
 
#define LCR_PEVEN   0x10
 
#define LCR_PONE   0x20
 
#define LCR_PZERO   0x30
 
#define LCR_SBREAK   0x40
 
#define LCR_EFR_ENABLE   0xbf
 
#define LCR_DLAB   0x80
 
#define MCR_DTR   0x01
 
#define MCR_RTS   0x02
 
#define MCR_DRS   0x04
 
#define MCR_IE   0x08
 
#define MCR_LOOPBACK   0x10
 
#define FCR_RCV_RST   0x02
 
#define FCR_XMT_RST   0x04
 
#define FCR_RX_LOW   0x00
 
#define FCR_RX_MEDL   0x40
 
#define FCR_RX_MEDH   0x80
 
#define FCR_RX_HIGH   0xc0
 
#define IER_ERXRDY   0x1
 
#define IER_ETXRDY   0x2
 
#define IER_ERLS   0x4
 
#define IER_EMSC   0x8
 
#define nlm_read_uart_reg(b, r)   nlm_read_reg(b, r)
 
#define nlm_write_uart_reg(b, r, v)   nlm_write_reg(b, r, v)
 
#define nlm_get_uart_pcibase(node, inst)   nlm_pcicfg_base(XLP_IO_UART_OFFSET(node, inst))
 
#define nlm_get_uart_regbase(node, inst)   (nlm_get_uart_pcibase(node, inst) + XLP_IO_PCI_HDRSZ)
 

Macro Definition Documentation

#define BASE_BAUD   (XLP_IO_CLK/16)

Definition at line 53 of file uart.h.

#define BAUD_DIVISOR (   baud)    (BASE_BAUD / baud)

Definition at line 54 of file uart.h.

#define FCR_RCV_RST   0x02

Definition at line 79 of file uart.h.

#define FCR_RX_HIGH   0xc0

Definition at line 84 of file uart.h.

#define FCR_RX_LOW   0x00

Definition at line 81 of file uart.h.

#define FCR_RX_MEDH   0x80

Definition at line 83 of file uart.h.

#define FCR_RX_MEDL   0x40

Definition at line 82 of file uart.h.

#define FCR_XMT_RST   0x04

Definition at line 80 of file uart.h.

#define IER_EMSC   0x8

Definition at line 90 of file uart.h.

#define IER_ERLS   0x4

Definition at line 89 of file uart.h.

#define IER_ERXRDY   0x1

Definition at line 87 of file uart.h.

#define IER_ETXRDY   0x2

Definition at line 88 of file uart.h.

#define LCR_5BITS   0x00

Definition at line 57 of file uart.h.

#define LCR_6BITS   0x01

Definition at line 58 of file uart.h.

#define LCR_7BITS   0x02

Definition at line 59 of file uart.h.

#define LCR_8BITS   0x03

Definition at line 60 of file uart.h.

#define LCR_DLAB   0x80

Definition at line 69 of file uart.h.

#define LCR_EFR_ENABLE   0xbf

Definition at line 68 of file uart.h.

#define LCR_PENAB   0x08

Definition at line 62 of file uart.h.

#define LCR_PEVEN   0x10

Definition at line 64 of file uart.h.

#define LCR_PODD   0x00

Definition at line 63 of file uart.h.

#define LCR_PONE   0x20

Definition at line 65 of file uart.h.

#define LCR_PZERO   0x30

Definition at line 66 of file uart.h.

#define LCR_SBREAK   0x40

Definition at line 67 of file uart.h.

#define LCR_STOPB   0x04

Definition at line 61 of file uart.h.

#define MCR_DRS   0x04

Definition at line 74 of file uart.h.

#define MCR_DTR   0x01

Definition at line 72 of file uart.h.

#define MCR_IE   0x08

Definition at line 75 of file uart.h.

#define MCR_LOOPBACK   0x10

Definition at line 76 of file uart.h.

#define MCR_RTS   0x02

Definition at line 73 of file uart.h.

#define nlm_get_uart_pcibase (   node,
  inst 
)    nlm_pcicfg_base(XLP_IO_UART_OFFSET(node, inst))

Definition at line 96 of file uart.h.

#define nlm_get_uart_regbase (   node,
  inst 
)    (nlm_get_uart_pcibase(node, inst) + XLP_IO_PCI_HDRSZ)

Definition at line 98 of file uart.h.

#define nlm_read_uart_reg (   b,
  r 
)    nlm_read_reg(b, r)

Definition at line 94 of file uart.h.

#define nlm_write_uart_reg (   b,
  r,
  v 
)    nlm_write_reg(b, r, v)

Definition at line 95 of file uart.h.

#define UART_DIVISOR0   0x00

Definition at line 50 of file uart.h.

#define UART_DIVISOR1   0x01

Definition at line 51 of file uart.h.

#define UART_FIFO_CTL   0x02

Definition at line 44 of file uart.h.

#define UART_INT_EN   0x01

Definition at line 42 of file uart.h.

#define UART_INT_ID   0x02

Definition at line 43 of file uart.h.

#define UART_LINE_CTL   0x03

Definition at line 45 of file uart.h.

#define UART_LINE_STS   0x05

Definition at line 47 of file uart.h.

#define UART_MODEM_CTL   0x04

Definition at line 46 of file uart.h.

#define UART_MODEM_STS   0x06

Definition at line 48 of file uart.h.

#define UART_RX_DATA   0x00

Definition at line 39 of file uart.h.

#define UART_TX_DATA   0x00

Definition at line 40 of file uart.h.