Home | History | Annotate | Line # | Download | only in ep93xx
epclkreg.h revision 1.1.4.3
      1  1.1.4.3  christos /*	$NetBSD: epclkreg.h,v 1.1.4.3 2005/12/11 10:28:15 christos Exp $ */
      2  1.1.4.2     skrll 
      3  1.1.4.2     skrll /*
      4  1.1.4.2     skrll  * Copyright (c) 2004 Jesse Off
      5  1.1.4.2     skrll  *
      6  1.1.4.2     skrll  * Redistribution and use in source and binary forms, with or without
      7  1.1.4.2     skrll  * modification, are permitted provided that the following conditions
      8  1.1.4.2     skrll  * are met:
      9  1.1.4.2     skrll  * 1. Redistributions of source code must retain the above copyright
     10  1.1.4.2     skrll  *    notice, this list of conditions and the following disclaimer.
     11  1.1.4.2     skrll  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1.4.2     skrll  *    notice, this list of conditions and the following disclaimer in the
     13  1.1.4.2     skrll  *    documentation and/or other materials provided with the distribution.
     14  1.1.4.2     skrll  * 3. All advertising materials mentioning features or use of this software
     15  1.1.4.2     skrll  *    must display the following acknowledgement:
     16  1.1.4.2     skrll  *	This product includes software developed by Ichiro FUKUHARA.
     17  1.1.4.2     skrll  * 4. Neither the name of the author nor the names of any co-contributors
     18  1.1.4.2     skrll  *    may be used to endorse or promote products derived from this software
     19  1.1.4.2     skrll  *    without specific prior written permission.
     20  1.1.4.2     skrll  *
     21  1.1.4.2     skrll  * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA AND CONTRIBUTORS ``AS IS''
     22  1.1.4.2     skrll  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     23  1.1.4.2     skrll  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     24  1.1.4.2     skrll  * ARE DISCLAIMED.  IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS
     25  1.1.4.2     skrll  * HEAD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
     26  1.1.4.2     skrll  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     27  1.1.4.2     skrll  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     28  1.1.4.2     skrll  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     29  1.1.4.2     skrll  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     30  1.1.4.2     skrll  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     31  1.1.4.2     skrll  * THE POSSIBILITY OF SUCH DAMAGE.
     32  1.1.4.2     skrll  */
     33  1.1.4.2     skrll 
     34  1.1.4.2     skrll 
     35  1.1.4.2     skrll #ifndef _EPCLKREG_H_
     36  1.1.4.2     skrll #define _EPCLKREG_H_
     37  1.1.4.2     skrll 
     38  1.1.4.3  christos /* Timer1 16-bit timer (Free running/Load based) */
     39  1.1.4.3  christos #define	EP93XX_TIMERS_Timer1Load	0x00000000UL
     40  1.1.4.3  christos #define	 TimerLoad_MASK			0x0000ffffUL
     41  1.1.4.3  christos #define	EP93XX_TIMERS_Timer1Value	0x00000004UL
     42  1.1.4.3  christos #define	 TimerValue_MASK		0x0000ffffUL
     43  1.1.4.3  christos #define	EP93XX_TIMERS_Timer1Control	0x00000008UL
     44  1.1.4.3  christos #define	 TimerControl_ENABLE		(1<<7)
     45  1.1.4.3  christos #define	 TimerControl_MODE		(1<<6)
     46  1.1.4.3  christos #define	 TimerControl_CLKSEL		(1<<3)
     47  1.1.4.3  christos #define	EP93XX_TIMERS_Timer1Clear	0x0000000cUL
     48  1.1.4.3  christos 
     49  1.1.4.3  christos /* Timer2 16-bit timer (Free running/Load based) */
     50  1.1.4.3  christos #define	EP93XX_TIMERS_Timer2Load	0x00000020UL
     51  1.1.4.3  christos #define	EP93XX_TIMERS_Timer2Value	0x00000024UL
     52  1.1.4.3  christos #define	EP93XX_TIMERS_Timer2Control	0x00000028UL
     53  1.1.4.3  christos #define	EP93XX_TIMERS_Timer2Clear	0x0000002cUL
     54  1.1.4.3  christos 
     55  1.1.4.3  christos /* Timer3 32-bit timer (Free running/Load based) */
     56  1.1.4.3  christos #define	EP93XX_TIMERS_Timer3Load	0x00000080UL
     57  1.1.4.3  christos #define	EP93XX_TIMERS_Timer3Value	0x00000084UL
     58  1.1.4.3  christos #define	EP93XX_TIMERS_Timer3Control	0x00000088UL
     59  1.1.4.3  christos #define	EP93XX_TIMERS_Timer3Clear	0x0000008cUL
     60  1.1.4.3  christos 
     61  1.1.4.3  christos /* Timer4 40-bit timer (Free running) */
     62  1.1.4.3  christos #define	EP93XX_TIMERS_Timer4Enable	0x00000064UL
     63  1.1.4.3  christos #define	EP93XX_TIMERS_Timer4ValueHigh	0x00000064UL
     64  1.1.4.3  christos #define	EP93XX_TIMERS_Timer4ValueLow	0x00000060UL
     65  1.1.4.2     skrll 
     66  1.1.4.2     skrll #endif /* _EPCLKREG_H_ */
     67