POK(kernelpart)
cons.h
Go to the documentation of this file.
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Thu Jan 15 23:34:13 2009
15  */
16 
22 #ifndef __POK_SPARC_LEON3_CONS_H__
23 #define __POK_SPARC_LEON3_CONS_H__
24 
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);
51 
52 #endif /* ! __POK_SPARC_LEON3_CONS_H__ */