POK(kernelpart)
timer.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_TIMER_H__
23 # define __POK_SPARC_LEON3_TIMER_H__
24 
25 # define TIMER_CTRL_EN (1 << 0)
26 # define TIMER_CTRL_RS (1 << 1)
27 # define TIMER_CTRL_LD (1 << 2)
28 # define TIMER_CTRL_IE (1 << 3)
29 # define TIMER_CTRL_IP (1 << 4)
30 # define TIMER_CTRL_CH (1 << 5)
31 # define TIMER_CTRL_DH (1 << 6)
33 # define TIMER_SCALER_OFFSET 0x00
34 # define TIMER_SCAL_RELOAD_OFFSET 0x04
36 # define TIMER_CNT_VAL_OFFSET 0x10
37 # define TIMER_RELOAD_OFFSET 0x14
38 # define TIMER_CTRL_OFFSET 0x18
40 # define TIMER_IRQ 0x8U
41 
42 # define TIMER1 0x80000300
44 #endif /* __POK_SPARC_LEON3_TIMER_H__ */