Go to the documentation of this file.
22 #ifndef __POK_SPARC_LEON3_TIMER_H__
23 # define __POK_SPARC_LEON3_TIMER_H__
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
42 # define TIMER1 0x80000300