POK(kernelpart)
/home/jaouen/pok_official/pok/trunk/kernel/arch/sparc/leon3/timer.h
Go to the documentation of this file.
00001 /*
00002  *                               POK header
00003  * 
00004  * The following file is a part of the POK project. Any modification should
00005  * made according to the POK licence. You CANNOT use this file or a part of
00006  * this file is this part of a file for your own project
00007  *
00008  * For more information on the POK licence, please see our LICENCE FILE
00009  *
00010  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
00011  *
00012  *                                      Copyright (c) 2007-2009 POK team 
00013  *
00014  * Created by julien on Thu Jan 15 23:34:13 2009 
00015  */
00016 
00022 #ifndef __POK_SPARC_LEON3_TIMER_H__
00023 # define __POK_SPARC_LEON3_TIMER_H__
00024 
00025 # define TIMER_CTRL_EN (1 << 0) 
00026 # define TIMER_CTRL_RS (1 << 1) 
00027 # define TIMER_CTRL_LD (1 << 2) 
00028 # define TIMER_CTRL_IE (1 << 3) 
00029 # define TIMER_CTRL_IP (1 << 4) 
00030 # define TIMER_CTRL_CH (1 << 5) 
00031 # define TIMER_CTRL_DH (1 << 6) 
00033 # define TIMER_SCALER_OFFSET      0x00 
00034 # define TIMER_SCAL_RELOAD_OFFSET 0x04 
00036 # define TIMER_CNT_VAL_OFFSET     0x10 
00037 # define TIMER_RELOAD_OFFSET      0x14 
00038 # define TIMER_CTRL_OFFSET        0x18 
00040 # define TIMER_IRQ 0x8U
00041 
00042 # define TIMER1 0x80000300 
00044 #endif /* __POK_SPARC_LEON3_TIMER_H__ */