1*a01729fdSuwe /* $NetBSD: bscreg.h,v 1.7 2008/02/17 05:36:38 uwe Exp $ */ 265363da2Sitojun 365363da2Sitojun /*- 465363da2Sitojun * Copyright (C) 1999 SAITOH Masanobu. All rights reserved. 565363da2Sitojun * 665363da2Sitojun * Redistribution and use in source and binary forms, with or without 765363da2Sitojun * modification, are permitted provided that the following conditions 865363da2Sitojun * are met: 965363da2Sitojun * 1. Redistributions of source code must retain the above copyright 1065363da2Sitojun * notice, this list of conditions and the following disclaimer. 1165363da2Sitojun * 2. Redistributions in binary form must reproduce the above copyright 1265363da2Sitojun * notice, this list of conditions and the following disclaimer in the 1365363da2Sitojun * documentation and/or other materials provided with the distribution. 1465363da2Sitojun * 3. The name of the author may not be used to endorse or promote products 1565363da2Sitojun * derived from this software without specific prior written permission. 1665363da2Sitojun * 1765363da2Sitojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1865363da2Sitojun * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1965363da2Sitojun * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2065363da2Sitojun * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2165363da2Sitojun * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2265363da2Sitojun * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2365363da2Sitojun * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2465363da2Sitojun * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2565363da2Sitojun * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2665363da2Sitojun * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2765363da2Sitojun */ 2865363da2Sitojun 2965363da2Sitojun #ifndef _SH3_BSCREG_H_ 3065363da2Sitojun #define _SH3_BSCREG_H_ 31bbc655c4Such #include <sh3/devreg.h> 3265363da2Sitojun 3365363da2Sitojun /* 3465363da2Sitojun * Bus State Controller 3565363da2Sitojun */ 3665363da2Sitojun 37bbc655c4Such #define SH3_BCR1 0xffffff60 /* 16bit */ 38bbc655c4Such #define SH3_BCR2 0xffffff62 /* 16bit */ 39bbc655c4Such #define SH3_WCR1 0xffffff64 /* 16bit */ 40bbc655c4Such #define SH3_WCR2 0xffffff66 /* 16bit */ 41bbc655c4Such #define SH3_MCR 0xffffff68 /* 16bit */ 42bbc655c4Such #define SH3_DCR 0xffffff6a /* 16bit */ 43bbc655c4Such #define SH3_PCR 0xffffff6c /* 16bit */ 44bbc655c4Such #define SH3_RTCSR 0xffffff6e /* 16bit */ 45bbc655c4Such #define SH3_RTCNT 0xffffff70 /* 16bit */ 46bbc655c4Such #define SH3_RTCOR 0xffffff72 /* 16bit */ 47bbc655c4Such #define SH3_RFCR 0xffffff74 /* 16bit */ 48bbc655c4Such #define SH3_BCR3 0xffffff7e /* 16bit */ 4965363da2Sitojun 50bbc655c4Such #define SH4_BCR1 0xff800000 /* 32bit */ 51bbc655c4Such #define SH4_BCR2 0xff800004 /* 16bit */ 52bbc655c4Such #define SH4_WCR1 0xff800008 /* 32bit */ 53bbc655c4Such #define SH4_WCR2 0xff80000c /* 32bit */ 54bbc655c4Such #define SH4_WCR3 0xff800010 /* 32bit */ 55bbc655c4Such #define SH4_MCR 0xff800014 /* 32bit */ 56bbc655c4Such #define SH4_PCR 0xff800018 /* 16bit */ 57bbc655c4Such #define SH4_RTCSR 0xff80001c /* 16bit */ 58bbc655c4Such #define SH4_RTCNT 0xff800020 /* 16bit */ 59bbc655c4Such #define SH4_RTCOR 0xff800024 /* 16bit */ 60bbc655c4Such #define SH4_RFCR 0xff800028 /* 16bit */ 615caa0831Schristos #define SH4_BCR3 0xff800050 /* 16bit: SH7751R */ 625caa0831Schristos #define SH4_BCR4 0xfe0a00f0 /* 32bit: SH7751R */ 635caa0831Schristos 645caa0831Schristos #define BCR1_MASTER (1 << 30) 655caa0831Schristos #define BCR1_BREQEN (1 << 19) 665caa0831Schristos 67*a01729fdSuwe 68*a01729fdSuwe #define BCR2_AREA_WIDTH_MASK 0x3 69*a01729fdSuwe #define BCR2_AREA_WIDTH_8 0x1 70*a01729fdSuwe #define BCR2_AREA_WIDTH_16 0x2 71*a01729fdSuwe #define BCR2_AREA_WIDTH_32 0x3 72*a01729fdSuwe 73*a01729fdSuwe #define BCR2_AREA1_SHIFT 2 74*a01729fdSuwe #define BCR2_AREA2_SHIFT 4 75*a01729fdSuwe #define BCR2_AREA3_SHIFT 6 76*a01729fdSuwe #define BCR2_AREA4_SHIFT 8 77*a01729fdSuwe #define BCR2_AREA5_SHIFT 10 78*a01729fdSuwe #define BCR2_AREA6_SHIFT 12 79*a01729fdSuwe 805caa0831Schristos #define BCR2_PORTEN (1 << 0) 8165363da2Sitojun 8265363da2Sitojun #endif /* !_SH3_BSCREG_H_ */ 83