Home | History | Annotate | Line # | Download | only in footbridge
dc21285mem.h revision 1.1
      1  1.1  chris /*	$NetBSD: dc21285mem.h,v 1.1 2001/06/09 10:29:12 chris Exp $	*/
      2  1.1  chris 
      3  1.1  chris /*
      4  1.1  chris  * Copyright (c) 1997,1998 Mark Brinicombe.
      5  1.1  chris  * Copyright (c) 1997,1998 Causality Limited
      6  1.1  chris  * All rights reserved.
      7  1.1  chris  *
      8  1.1  chris  * Redistribution and use in source and binary forms, with or without
      9  1.1  chris  * modification, are permitted provided that the following conditions
     10  1.1  chris  * are met:
     11  1.1  chris  * 1. Redistributions of source code must retain the above copyright
     12  1.1  chris  *    notice, this list of conditions and the following disclaimer.
     13  1.1  chris  * 2. Redistributions in binary form must reproduce the above copyright
     14  1.1  chris  *    notice, this list of conditions and the following disclaimer in the
     15  1.1  chris  *    documentation and/or other materials provided with the distribution.
     16  1.1  chris  * 3. All advertising materials mentioning features or use of this software
     17  1.1  chris  *    must display the following acknowledgement:
     18  1.1  chris  *	This product includes software developed by Mark Brinicombe
     19  1.1  chris  *	for the NetBSD Project.
     20  1.1  chris  * 4. The name of the company nor the name of the author may be used to
     21  1.1  chris  *    endorse or promote products derived from this software without specific
     22  1.1  chris  *    prior written permission.
     23  1.1  chris  *
     24  1.1  chris  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
     25  1.1  chris  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     26  1.1  chris  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     27  1.1  chris  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
     28  1.1  chris  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     29  1.1  chris  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     30  1.1  chris  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     31  1.1  chris  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     32  1.1  chris  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     33  1.1  chris  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34  1.1  chris  * SUCH DAMAGE.
     35  1.1  chris  */
     36  1.1  chris 
     37  1.1  chris /*
     38  1.1  chris  * Physical memory map provided by the DC21285 'Footbridge'
     39  1.1  chris  */
     40  1.1  chris 
     41  1.1  chris #define	DC21285_SDRAM_BASE		0x00000000
     42  1.1  chris #define DC21285_SDRAM_SIZE		0x10000000	/* 256 MB */
     43  1.1  chris 
     44  1.1  chris #define	DC21285_SDRAM_A0MR		0x40000000
     45  1.1  chris #define	DC21285_SDRAM_A1MR		0x40004000
     46  1.1  chris #define	DC21285_SDRAM_A2MR		0x40008000
     47  1.1  chris #define	DC21285_SDRAM_A3MR		0x4000C000
     48  1.1  chris 
     49  1.1  chris #define	DC21285_XBUS_XCS0		0x40010000
     50  1.1  chris #define	DC21285_XBUS_XCS1		0x40011000
     51  1.1  chris #define	DC21285_XBUS_XCS2		0x40012000
     52  1.1  chris #define	DC21285_XBUS_NOCS		0x40013000
     53  1.1  chris 
     54  1.1  chris #define DC21285_ROM_BASE		0x41000000
     55  1.1  chris #define DC21285_ROM_SIZE		0x01000000	/* 16MB */
     56  1.1  chris 
     57  1.1  chris #define DC21285_ARMCSR_BASE		0x42000000
     58  1.1  chris #define DC21285_ARMCSR_SIZE		0x00100000	/* 1MB */
     59  1.1  chris 
     60  1.1  chris #define DC28285_SA_CACHE_FLUSH_BASE	0x50000000
     61  1.1  chris #define DC21285_SA_CACHE_FLUSH_SIZE	0x01000000	/* 16MB */
     62  1.1  chris 
     63  1.1  chris #define DC21285_OUTBOUND_WRITE_FLUSH	0x78000000
     64  1.1  chris 
     65  1.1  chris #define DC21285_PCI_IACK_SPECIAL	0x79000000
     66  1.1  chris #define DC21285_PCI_TYPE_1_CONFIG	0x7A000000
     67  1.1  chris #define DC21285_PCI_TYPE_0_CONFIG	0x7B000000
     68  1.1  chris #define DC21285_PCI_IO_BASE		0x7C000000
     69  1.1  chris #define DC21285_PCI_IO_SIZE		0x00010000	/* 64K */
     70  1.1  chris #define DC21285_PCI_MEM_BASE		0x80000000
     71  1.1  chris #define DC21285_PCI_MEM_SIZE		0x80000000	/* 2GB */
     72  1.1  chris 
     73  1.1  chris /*
     74  1.1  chris  * Standard Virtual memory map used for the DC21285 'Footbridge'
     75  1.1  chris  */
     76  1.1  chris #if 0
     77  1.1  chris /* These were the old addresses */
     78  1.1  chris #define DC21285_ARMCSR_VBASE		0xF4000000
     79  1.1  chris #define	DC21285_ARMCSR_VSIZE		0x00100000	/* 1MB */
     80  1.1  chris #define	DC21285_CACHE_FLUSH_VBASE	0xF4100000
     81  1.1  chris #define	DC21285_CACHE_FLUSH_VSIZE	0x00100000	/* 1MB */
     82  1.1  chris #define	DC21285_PCI_IO_VBASE		0xF4200000
     83  1.1  chris #define	DC21285_PCI_IO_VSIZE		0x00100000	/* 1MB */
     84  1.1  chris #define	DC21285_PCI_IACK_VBASE		0xF4300000
     85  1.1  chris #define	DC21285_PCI_IACK_VSIZE		0x00100000	/* 1MB */
     86  1.1  chris #define	DC21285_PCI_ISA_MEM_VBASE	0xF4400000
     87  1.1  chris #define	DC21285_PCI_ISA_MEM_VSIZE	0x00100000	/* 1MB */
     88  1.1  chris #define	DC21285_PCI_TYPE_1_CONFIG_VBASE	0xF5000000
     89  1.1  chris #define	DC21285_PCI_TYPE_1_CONFIG_VSIZE	0x01000000	/* 16MB */
     90  1.1  chris #define	DC21285_PCI_TYPE_0_CONFIG_VBASE	0xF6000000
     91  1.1  chris #define	DC21285_PCI_TYPE_0_CONFIG_VSIZE	0x01000000	/* 16MB */
     92  1.1  chris #define DC21285_PCI_MEM_VBASE		0xF7000000
     93  1.1  chris #define DC21285_PCI_MEM_VSIZE		0x09000000	/* 144MB */
     94  1.1  chris #endif
     95  1.1  chris 
     96  1.1  chris #define DC21285_ARMCSR_VBASE		0xFD000000
     97  1.1  chris #define	DC21285_ARMCSR_VSIZE		0x00100000	/* 1MB */
     98  1.1  chris #define	DC21285_CACHE_FLUSH_VBASE	0xFD100000
     99  1.1  chris #define	DC21285_CACHE_FLUSH_VSIZE	0x00100000	/* 1MB */
    100  1.1  chris #define	DC21285_PCI_IO_VBASE		0xFD200000
    101  1.1  chris #define	DC21285_PCI_IO_VSIZE		0x00100000	/* 1MB */
    102  1.1  chris #define	DC21285_PCI_IACK_VBASE		0xFD300000
    103  1.1  chris #define	DC21285_PCI_IACK_VSIZE		0x00100000	/* 1MB */
    104  1.1  chris #define	DC21285_PCI_ISA_MEM_VBASE	0xFD400000
    105  1.1  chris #define	DC21285_PCI_ISA_MEM_VSIZE	0x00100000	/* 1MB */
    106  1.1  chris #define	DC21285_PCI_TYPE_1_CONFIG_VBASE	0xFE000000
    107  1.1  chris #define	DC21285_PCI_TYPE_1_CONFIG_VSIZE	0x01000000	/* 16MB */
    108  1.1  chris #define	DC21285_PCI_TYPE_0_CONFIG_VBASE	0xFF000000
    109  1.1  chris #define	DC21285_PCI_TYPE_0_CONFIG_VSIZE	0x01000000	/* 16MB */
    110