Home | History | Annotate | Line # | Download | only in include
ubcreg.h revision 1.3.42.1
      1  1.3.42.1  rpaulo /*	$NetBSD: ubcreg.h,v 1.3.42.1 2006/09/09 02:42:59 rpaulo Exp $	*/
      2       1.1  itojun 
      3       1.1  itojun /*-
      4       1.1  itojun  * Copyright (C) 1999 SAITOH Masanobu.  All rights reserved.
      5       1.1  itojun  *
      6       1.1  itojun  * Redistribution and use in source and binary forms, with or without
      7       1.1  itojun  * modification, are permitted provided that the following conditions
      8       1.1  itojun  * are met:
      9       1.1  itojun  * 1. Redistributions of source code must retain the above copyright
     10       1.1  itojun  *    notice, this list of conditions and the following disclaimer.
     11       1.1  itojun  * 2. Redistributions in binary form must reproduce the above copyright
     12       1.1  itojun  *    notice, this list of conditions and the following disclaimer in the
     13       1.1  itojun  *    documentation and/or other materials provided with the distribution.
     14       1.1  itojun  * 3. The name of the author may not be used to endorse or promote products
     15       1.1  itojun  *    derived from this software without specific prior written permission.
     16       1.1  itojun  *
     17       1.1  itojun  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18       1.1  itojun  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19       1.1  itojun  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20       1.1  itojun  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21       1.1  itojun  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22       1.1  itojun  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23       1.1  itojun  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24       1.1  itojun  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25       1.1  itojun  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26       1.1  itojun  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27       1.1  itojun  */
     28       1.1  itojun 
     29       1.1  itojun #ifndef _SH3_UBCREG_H_
     30       1.3     uch #define	_SH3_UBCREG_H_
     31       1.2     uch #include <sh3/devreg.h>
     32       1.1  itojun 
     33       1.1  itojun /*
     34       1.1  itojun  * User Break Controller
     35       1.1  itojun  */
     36       1.1  itojun 
     37       1.1  itojun /* ch-A */
     38       1.3     uch #define	SH3_BARA		0xffffffb0
     39       1.3     uch #define	SH3_BAMRA		0xffffffb4
     40       1.3     uch #define	SH3_BASRA		0xffffffe4
     41       1.3     uch #define	SH3_BBRA		0xffffffb8
     42       1.3     uch /* ch-B */
     43       1.3     uch #define	SH3_BARB		0xffffffa0
     44       1.3     uch #define	SH3_BAMRB		0xffffffa4
     45       1.3     uch #define	SH3_BASRB		0xffffffe8
     46       1.3     uch #define	SH3_BBRB		0xffffffa8
     47       1.3     uch #define	SH3_BDRB		0xffffff90
     48       1.3     uch #define	SH3_BDMRB		0xffffff94
     49       1.3     uch /* common */
     50       1.3     uch #define	SH3_BRCR		0xffffff98
     51       1.1  itojun 
     52       1.1  itojun 
     53       1.1  itojun /* ch-A */
     54       1.3     uch #define	SH4_BARA		0xff200000
     55       1.3     uch #define	SH4_BAMRA		0xff200004
     56       1.3     uch #define	SH4_BASRA		0xff000014
     57       1.3     uch #define	SH4_BBRA		0xff200008
     58       1.3     uch 
     59       1.3     uch /* ch-B */
     60       1.3     uch #define	SH4_BARB		0xff20000c
     61       1.3     uch #define	SH4_BAMRB		0xff200010
     62       1.3     uch #define	SH4_BASRB		0xff000018
     63       1.3     uch #define	SH4_BBRB		0xff200014
     64       1.3     uch #define	SH4_BDRB		0xff200018
     65       1.3     uch #define	SH4_BDMRB		0xff20001c
     66       1.3     uch /* common */
     67       1.3     uch #define	SH4_BRCR		0xff200020
     68       1.2     uch 
     69       1.2     uch #ifndef _LOCORE
     70       1.2     uch #if defined(SH3) && defined(SH4)
     71  1.3.42.1  rpaulo extern uint32_t __sh_BARA;
     72  1.3.42.1  rpaulo extern uint32_t __sh_BAMRA;
     73  1.3.42.1  rpaulo extern uint32_t __sh_BASRA;
     74  1.3.42.1  rpaulo extern uint32_t __sh_BBRA;
     75  1.3.42.1  rpaulo extern uint32_t __sh_BARB;
     76  1.3.42.1  rpaulo extern uint32_t __sh_BAMRB;
     77  1.3.42.1  rpaulo extern uint32_t __sh_BASRB;
     78  1.3.42.1  rpaulo extern uint32_t __sh_BBRB;
     79  1.3.42.1  rpaulo extern uint32_t __sh_BDRB;
     80  1.3.42.1  rpaulo extern uint32_t __sh_BDMRB;
     81  1.3.42.1  rpaulo extern uint32_t __sh_BRCR;
     82       1.2     uch #endif /* SH3 && SH4 */
     83       1.2     uch #endif /* !_LOCORE */
     84       1.1  itojun 
     85       1.1  itojun #endif	/* !_SH3_UBCREG_H_ */
     86