Go to the documentation of this file.
22 #ifndef __POK_SPARC_LEON3_CONS_H__
23 #define __POK_SPARC_LEON3_CONS_H__
25 #define UART_STATUS_DR 0x00000001
26 #define UART_STATUS_TSE 0x00000002
27 #define UART_STATUS_THE 0x00000004
28 #define UART_STATUS_BR 0x00000008
29 #define UART_STATUS_OE 0x00000010
30 #define UART_STATUS_PE 0x00000020
31 #define UART_STATUS_FE 0x00000040
32 #define UART_STATUS_ERR 0x00000078
34 #define UART_CTRL_RE 0x00000001
35 #define UART_CTRL_TE 0x00000002
36 #define UART_CTRL_RI 0x00000004
37 #define UART_CTRL_TI 0x00000008
38 #define UART_CTRL_PS 0x00000010
39 #define UART_CTRL_PE 0x00000020
40 #define UART_CTRL_FL 0x00000040
41 #define UART_CTRL_LB 0x00000080
43 #define UART_DATA_OFFSET 0x0
44 #define UART_STAT_OFFSET 0x4
45 #define UART_CTRL_OFFSET 0x8
46 #define UART_SCALER_OFFSET 0xc
48 #define UART1 0x80000100
50 int pok_cons_init(void);