dc21285mem.h revision 1.3 1 1.3 skrll /* $NetBSD: dc21285mem.h,v 1.3 2021/08/24 08:39:50 skrll 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.3 skrll #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.3 skrll #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.3 skrll #define DC21285_ROM_BASE 0x41000000
55 1.3 skrll #define DC21285_ROM_SIZE 0x01000000 /* 16MB */
56 1.1 chris
57 1.3 skrll #define DC21285_ARMCSR_BASE 0x42000000
58 1.3 skrll #define DC21285_ARMCSR_SIZE 0x00100000 /* 1MB */
59 1.1 chris
60 1.3 skrll #define DC21285_SA_CACHE_FLUSH_BASE 0x50000000
61 1.3 skrll #define DC21285_SA_CACHE_FLUSH_SIZE 0x01000000 /* 16MB */
62 1.1 chris
63 1.3 skrll #define DC21285_OUTBOUND_WRITE_FLUSH 0x78000000
64 1.3 skrll
65 1.3 skrll #define DC21285_PCI_IACK_SPECIAL 0x79000000
66 1.3 skrll #define DC21285_PCI_TYPE_1_CONFIG 0x7a000000
67 1.3 skrll #define DC21285_PCI_TYPE_0_CONFIG 0x7b000000
68 1.3 skrll #define DC21285_PCI_IO_BASE 0x7c000000
69 1.3 skrll #define DC21285_PCI_IO_SIZE 0x00010000 /* 64K */
70 1.3 skrll #define DC21285_PCI_MEM_BASE 0x80000000
71 1.3 skrll #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.3 skrll #define DC21285_ARMCSR_VBASE 0xfd000000
77 1.3 skrll #define DC21285_ARMCSR_VSIZE 0x00100000 /* 1mB */
78 1.3 skrll #define DC21285_CACHE_FLUSH_VBASE 0xfd100000
79 1.1 chris #define DC21285_CACHE_FLUSH_VSIZE 0x00100000 /* 1MB */
80 1.3 skrll #define DC21285_PCI_IO_VBASE 0xfd200000
81 1.3 skrll #define DC21285_PCI_IO_VSIZE 0x00100000 /* 1mB */
82 1.3 skrll #define DC21285_PCI_IACK_VBASE 0xfd300000
83 1.1 chris #define DC21285_PCI_IACK_VSIZE 0x00100000 /* 1MB */
84 1.3 skrll #define DC21285_PCI_ISA_MEM_VBASE 0xfd400000
85 1.1 chris #define DC21285_PCI_ISA_MEM_VSIZE 0x00100000 /* 1MB */
86 1.3 skrll #define DC21285_PCI_TYPE_1_CONFIG_VBASE 0xfe000000
87 1.1 chris #define DC21285_PCI_TYPE_1_CONFIG_VSIZE 0x01000000 /* 16MB */
88 1.3 skrll #define DC21285_PCI_TYPE_0_CONFIG_VBASE 0xff000000
89 1.1 chris #define DC21285_PCI_TYPE_0_CONFIG_VSIZE 0x01000000 /* 16MB */
90