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