1 1.7 uwe /* $NetBSD: bscreg.h,v 1.7 2008/02/17 05:36:38 uwe 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_BSCREG_H_ 30 1.4 uch #define _SH3_BSCREG_H_ 31 1.3 uch #include <sh3/devreg.h> 32 1.1 itojun 33 1.1 itojun /* 34 1.1 itojun * Bus State Controller 35 1.1 itojun */ 36 1.1 itojun 37 1.4 uch #define SH3_BCR1 0xffffff60 /* 16bit */ 38 1.4 uch #define SH3_BCR2 0xffffff62 /* 16bit */ 39 1.4 uch #define SH3_WCR1 0xffffff64 /* 16bit */ 40 1.4 uch #define SH3_WCR2 0xffffff66 /* 16bit */ 41 1.4 uch #define SH3_MCR 0xffffff68 /* 16bit */ 42 1.4 uch #define SH3_DCR 0xffffff6a /* 16bit */ 43 1.4 uch #define SH3_PCR 0xffffff6c /* 16bit */ 44 1.4 uch #define SH3_RTCSR 0xffffff6e /* 16bit */ 45 1.4 uch #define SH3_RTCNT 0xffffff70 /* 16bit */ 46 1.4 uch #define SH3_RTCOR 0xffffff72 /* 16bit */ 47 1.4 uch #define SH3_RFCR 0xffffff74 /* 16bit */ 48 1.4 uch #define SH3_BCR3 0xffffff7e /* 16bit */ 49 1.3 uch 50 1.4 uch #define SH4_BCR1 0xff800000 /* 32bit */ 51 1.4 uch #define SH4_BCR2 0xff800004 /* 16bit */ 52 1.4 uch #define SH4_WCR1 0xff800008 /* 32bit */ 53 1.4 uch #define SH4_WCR2 0xff80000c /* 32bit */ 54 1.4 uch #define SH4_WCR3 0xff800010 /* 32bit */ 55 1.4 uch #define SH4_MCR 0xff800014 /* 32bit */ 56 1.4 uch #define SH4_PCR 0xff800018 /* 16bit */ 57 1.4 uch #define SH4_RTCSR 0xff80001c /* 16bit */ 58 1.4 uch #define SH4_RTCNT 0xff800020 /* 16bit */ 59 1.4 uch #define SH4_RTCOR 0xff800024 /* 16bit */ 60 1.4 uch #define SH4_RFCR 0xff800028 /* 16bit */ 61 1.5 christos #define SH4_BCR3 0xff800050 /* 16bit: SH7751R */ 62 1.5 christos #define SH4_BCR4 0xfe0a00f0 /* 32bit: SH7751R */ 63 1.5 christos 64 1.5 christos #define BCR1_MASTER (1 << 30) 65 1.5 christos #define BCR1_BREQEN (1 << 19) 66 1.5 christos 67 1.7 uwe 68 1.7 uwe #define BCR2_AREA_WIDTH_MASK 0x3 69 1.7 uwe #define BCR2_AREA_WIDTH_8 0x1 70 1.7 uwe #define BCR2_AREA_WIDTH_16 0x2 71 1.7 uwe #define BCR2_AREA_WIDTH_32 0x3 72 1.7 uwe 73 1.7 uwe #define BCR2_AREA1_SHIFT 2 74 1.7 uwe #define BCR2_AREA2_SHIFT 4 75 1.7 uwe #define BCR2_AREA3_SHIFT 6 76 1.7 uwe #define BCR2_AREA4_SHIFT 8 77 1.7 uwe #define BCR2_AREA5_SHIFT 10 78 1.7 uwe #define BCR2_AREA6_SHIFT 12 79 1.7 uwe 80 1.5 christos #define BCR2_PORTEN (1 << 0) 81 1.1 itojun 82 1.1 itojun #endif /* !_SH3_BSCREG_H_ */ 83