xref: /netbsd-src/sys/arch/hpc/stand/hpcboot/sh3/cpu/sh.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /* -*-C++-*-	$NetBSD: sh.h,v 1.4 2008/04/28 20:23:20 martin Exp $	*/
2acb09f98Such 
3acb09f98Such /*-
4acb09f98Such  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
5acb09f98Such  * All rights reserved.
6acb09f98Such  *
7acb09f98Such  * This code is derived from software contributed to The NetBSD Foundation
8acb09f98Such  * by UCHIYAMA Yasushi.
9acb09f98Such  *
10acb09f98Such  * Redistribution and use in source and binary forms, with or without
11acb09f98Such  * modification, are permitted provided that the following conditions
12acb09f98Such  * are met:
13acb09f98Such  * 1. Redistributions of source code must retain the above copyright
14acb09f98Such  *    notice, this list of conditions and the following disclaimer.
15acb09f98Such  * 2. Redistributions in binary form must reproduce the above copyright
16acb09f98Such  *    notice, this list of conditions and the following disclaimer in the
17acb09f98Such  *    documentation and/or other materials provided with the distribution.
18acb09f98Such  *
19acb09f98Such  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20acb09f98Such  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21acb09f98Such  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22acb09f98Such  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23acb09f98Such  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24acb09f98Such  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25acb09f98Such  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26acb09f98Such  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27acb09f98Such  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28acb09f98Such  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29acb09f98Such  * POSSIBILITY OF SUCH DAMAGE.
30acb09f98Such  */
31acb09f98Such 
32acb09f98Such #ifndef _HPCBOOT_SH_CPU_SH_H_
33acb09f98Such #define	_HPCBOOT_SH_CPU_SH_H_
34acb09f98Such 
35acb09f98Such /*
36acb09f98Such  * SH3, SH4 common defines.
37acb09f98Such  */
38acb09f98Such 
39acb09f98Such /*
40acb09f98Such  * Address space.
41acb09f98Such  */
42acb09f98Such #define	SH_P0_START		0x00000000
43acb09f98Such #define	SH_P1_START		0x80000000
44acb09f98Such #define	SH_P2_START		0xa0000000
45acb09f98Such #define	SH_P3_START		0xc0000000
46acb09f98Such #define	SH_P4_START		0xe0000000
47acb09f98Such 
48acb09f98Such /*
49acb09f98Such  * Chip select.
50acb09f98Such  */
51acb09f98Such #define	SH_AREA_SIZE		0x04000000
52acb09f98Such 
53acb09f98Such #define	SH_AREA0_START		0x00000000
54acb09f98Such #define	SH_AREA1_START		0x04000000
55acb09f98Such #define	SH_AREA2_START		0x08000000
56acb09f98Such #define	SH_AREA3_START		0x0c000000
57acb09f98Such #define	SH_AREA4_START		0x10000000
58acb09f98Such #define	SH_AREA5_START		0x14000000
59acb09f98Such #define	SH_AREA6_START		0x18000000
60acb09f98Such #define	SH_AREA7_START		0x1c000000
61acb09f98Such 
62acb09f98Such 
63acb09f98Such #endif /* _HPCBOOT_SH_CPU_SH_H_ */
64