i80312reg.h revision 1.2 1 1.1 matt /*-
2 1.1 matt * Copyright (c) 2001 The NetBSD Foundation, Inc.
3 1.1 matt * All rights reserved.
4 1.1 matt *
5 1.1 matt * This code is derived from software contributed to The NetBSD Foundation
6 1.1 matt * by
7 1.1 matt *
8 1.1 matt * Redistribution and use in source and binary forms, with or without
9 1.1 matt * modification, are permitted provided that the following conditions
10 1.1 matt * are met:
11 1.1 matt * 1. Redistributions of source code must retain the above copyright
12 1.1 matt * notice, this list of conditions and the following disclaimer.
13 1.1 matt * 2. Redistributions in binary form must reproduce the above copyright
14 1.1 matt * notice, this list of conditions and the following disclaimer in the
15 1.1 matt * documentation and/or other materials provided with the distribution.
16 1.1 matt * 3. All advertising materials mentioning features or use of this software
17 1.1 matt * must display the following acknowledgement:
18 1.1 matt * This product includes software developed by the NetBSD
19 1.1 matt * Foundation, Inc. and its contributors.
20 1.1 matt * 4. Neither the name of The NetBSD Foundation nor the names of its
21 1.1 matt * contributors may be used to endorse or promote products derived
22 1.1 matt * from this software without specific prior written permission.
23 1.1 matt *
24 1.1 matt * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
25 1.1 matt * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26 1.1 matt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27 1.1 matt * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
28 1.1 matt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 1.1 matt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 1.1 matt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 1.1 matt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 1.1 matt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 1.1 matt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 1.1 matt * POSSIBILITY OF SUCH DAMAGE.
35 1.1 matt */
36 1.1 matt
37 1.1 matt #ifndef _ARM_XSCALE_I80312REG_H_
38 1.1 matt #define _ARM_XSCALE_I80312REG_H_
39 1.1 matt /*
40 1.1 matt * Physical addresses 0x1000..0x1fff are used by the Periphial Memory
41 1.1 matt * Mapped Registers.
42 1.1 matt */
43 1.1 matt
44 1.1 matt #define I80312_PMMR_BASE 0x00001000
45 1.1 matt #define I80312_PMMR_SIZE 0x00001000
46 1.1 matt
47 1.1 matt /*
48 1.1 matt * PCI-to-PCI Bridge Unit
49 1.1 matt */
50 1.1 matt #define I80312_PPB_BASE (I80312_PMMR_BASE)
51 1.1 matt #define I80312_PPB_SIZE 0x100
52 1.1 matt /*
53 1.1 matt * Performance Monitoring Unit
54 1.1 matt */
55 1.1 matt #define I80312_PMU_BASE (I80312_PPB_BASE + I80312_PPB_SIZE) /* 0x100 */
56 1.1 matt #define I80312_PMU_SIZE 0x100
57 1.1 matt /*
58 1.1 matt * Address Translation Unit
59 1.1 matt */
60 1.1 matt #define I80312_ATU_BASE (I80312_PMU_BASE + I80312_PMU_SIZE) /* 0x200 */
61 1.1 matt #define I80312_ATU_SIZE 0x100
62 1.1 matt /*
63 1.1 matt * Messaging Unit
64 1.1 matt */
65 1.1 matt #define I80312_MSG_BASE (I80312_ATU_BASE + I80312_ATU_SIZE) /* 0x300 */
66 1.1 matt #define I80312_MSG_SIZE 0x100
67 1.1 matt /*
68 1.1 matt * DMA Controller
69 1.1 matt */
70 1.1 matt #define I80312_DMA_BASE (I80312_MSG_BASE + I80312_MSG_SIZE) /* 0x400 */
71 1.1 matt #define I80312_DMA_SIZE 0x100
72 1.1 matt /*
73 1.1 matt * Memory Controller
74 1.1 matt */
75 1.1 matt #define I80312_MEM_BASE (I80312_DMA_BASE + I80312_DMA_SIZE) /* 0x500 */
76 1.1 matt #define I80312_MEM_SIZE 0x100
77 1.1 matt /*
78 1.1 matt * Internal Arbitration Unit
79 1.1 matt */
80 1.1 matt #define I80312_IARB_BASE (I80312_MEM_BASE + I80312_MEM_SIZE) /* 0x600 */
81 1.1 matt #define I80312_IARB_SIZE 0x040
82 1.1 matt /*
83 1.1 matt * Bus Interface Unit
84 1.1 matt */
85 1.1 matt #define I80312_BUS_BASE (I80312_IARB_BASE + I80312_IARB_SIZE)/* 0x640 */
86 1.1 matt #define I80312_BUS_SIZE 0x040
87 1.1 matt /*
88 1.1 matt * I2C Unit
89 1.1 matt */
90 1.1 matt #define I80312_IIC_BASE (I80312_BUS_BASE + I80312_BUS_SIZE) /* 0x680 */
91 1.1 matt #define I80312_IIC_SIZE 0x080
92 1.1 matt /*
93 1.1 matt * Interrupt Controller
94 1.1 matt */
95 1.1 matt #define I80312_INTC_BASE (I80312_IIC_BASE + I80312_IIC_SIZE) /* 0x700 */
96 1.1 matt #define I80312_INTC_SIZE 0x100
97 1.1 matt /*
98 1.1 matt * Application Accelerator Unit
99 1.1 matt */
100 1.1 matt #define I80312_AAU_BASE (I80312_INTC_BASE + I80312_INTC_SIZE)/* 0x800 */
101 1.1 matt #define I80312_AAU_SIZE 0x100
102 1.1 matt
103 1.1 matt /*
104 1.1 matt * Performance Monitoring Unit
105 1.1 matt */
106 1.1 matt #define I80312_PMU_GTMR (I80312_PMU_BASE + 0x00)
107 1.1 matt #define I80312_PMU_ESR (I80312_PMU_BASE + 0x04)
108 1.1 matt #define I80312_PMU_EMISR (I80312_PMU_BASE + 0x08)
109 1.2 matt #define I80312_PMU_GTSR (I80312_PMU_BASE + 0x10)
110 1.1 matt #define I80312_PMU_PECR1 (I80312_PMU_BASE + 0x14)
111 1.1 matt #define I80312_PMU_PECR2 (I80312_PMU_BASE + 0x18)
112 1.1 matt #define I80312_PMU_PECR3 (I80312_PMU_BASE + 0x1c)
113 1.1 matt #define I80312_PMU_PECR4 (I80312_PMU_BASE + 0x20)
114 1.1 matt #define I80312_PMU_PECR5 (I80312_PMU_BASE + 0x24)
115 1.1 matt #define I80312_PMU_PECR6 (I80312_PMU_BASE + 0x28)
116 1.1 matt #define I80312_PMU_PECR7 (I80312_PMU_BASE + 0x2c)
117 1.1 matt #define I80312_PMU_PECR8 (I80312_PMU_BASE + 0x30)
118 1.1 matt #define I80312_PMU_PECR9 (I80312_PMU_BASE + 0x34)
119 1.1 matt #define I80312_PMU_PECR10 (I80312_PMU_BASE + 0x38)
120 1.1 matt #define I80312_PMU_PECR11 (I80312_PMU_BASE + 0x3c)
121 1.1 matt #define I80312_PMU_PECR12 (I80312_PMU_BASE + 0x40)
122 1.1 matt #define I80312_PMU_PECR13 (I80312_PMU_BASE + 0x44)
123 1.1 matt #define I80312_PMU_PECR14 (I80312_PMU_BASE + 0x48)
124 1.1 matt
125 1.1 matt /*
126 1.1 matt * The first 64 bytes are identical to a PCI device's config space.
127 1.1 matt */
128 1.1 matt #define I80312_ATU_PIAL 0x40 /* Pri. Inbound ATU Limit */
129 1.1 matt #define I80312_ATU_PIATV 0x44 /* Pri. Inbound ATU Translate Value */
130 1.1 matt #define I80312_ATU_SIAM 0x48 /* Sec. Inbound ATU Base Address */
131 1.1 matt #define I80312_ATU_SIAL 0x4c /* Sec. Inbound ATU Limit */
132 1.1 matt #define I80312_ATU_SIATV 0x50 /* Sec. Inbound ATU Translate Value */
133 1.1 matt #define I80312_ATU_POMWV 0x54 /* Pri. Outbound Memory Window Value */
134 1.1 matt /* not used 0x58 */
135 1.1 matt #define I80312_ATU_POIOWV 0x5c /* Pri. Outbound I/O Window Value */
136 1.1 matt #define I80312_ATU_PODACWVL 0x60 /* Pri. Outbound DAC Window Value (Lo)*/
137 1.1 matt #define I80312_ATU_PODACWVH 0x64 /* Pri. Outbound DAC Window Value (Hi)*/
138 1.1 matt #define I80312_ATU_SOMWV 0x68 /* Sec. Outbound Memory Window Value */
139 1.1 matt #define I80312_ATU_SOIOWV 0x6c /* Sec. Outbound I/O Window Value */
140 1.1 matt /* not used 0x70 */
141 1.1 matt #define I80312_ATU_ERL 0x74 /* Expansion ROM Limit */
142 1.1 matt #define I80312_ATU_ERTV 0x78 /* Expansion ROM Translate Value */
143 1.1 matt /* not used 0x7c */
144 1.1 matt #define I80312_ATU_ACI 0x74 /* ATU Capability Identifier */
145 1.1 matt #define I80312_ATU_ATNIP 0x78 /* ATU Next Item Pointer */
146 1.1 matt #define I80312_ATU_APM 0x7c /* ATU Power Management */
147 1.1 matt /* not used 0x84 */
148 1.1 matt #define I80312_ATU_ACR 0x88 /* ATU Configuration */
149 1.1 matt /* not used 0x8c */
150 1.1 matt #define I80312_ATU_PAIS 0x90 /* Pri. ATU Interrupt Status */
151 1.1 matt #define I80312_ATU_SAIS 0x94 /* Sec. ATU Interrupt Status */
152 1.1 matt #define I80312_ATU_SACS 0x98 /* Sec. ATU Command/Status */
153 1.1 matt #define I80312_ATU_SODACWVL 0x9c /* Sec. Outbound DAC Window Value (lo)*/
154 1.1 matt #define I80312_ATU_SODACWVH 0xa0 /* Sec. Outbound DAC Window Value (hi)*/
155 1.1 matt #define I80312_ATU_POCCA 0xa4 /* Pri. Outbound Config Address Data */
156 1.1 matt #define I80312_ATU_SOCCA 0xa8 /* Sec. Outbound Config Address Data */
157 1.1 matt #define I80312_ATU_POCCD 0xac /* Pri. Outbound Config Cycle Data */
158 1.1 matt #define I80312_ATU_SOCCD 0xb0 /* Sec. Outbound Config Cycle Data */
159 1.1 matt #define I80312_ATU_PAQC 0xb4 /* Pri. ATU Queue Control */
160 1.1 matt #define I80312_ATU_SAQC 0xb8 /* Sec. ATU Queue Control */
161 1.1 matt #define I80312_ATU_PAIM 0xbc /* Pri. ATU Interrupt Mask */
162 1.1 matt #define I80312_ATU_SAIM 0xc0 /* Sec. ATU Interrupt Mask */
163 1.1 matt /* not used 0xc4 .. 0xfc */
164 1.1 matt
165 1.1 matt /* not used 0x00 .. 0x0c */
166 1.1 matt #define I80312_MSG_IM0 0x10 /* Inbound Message 0 */
167 1.1 matt #define I80312_MSG_IM1 0x14 /* Inbound Message 1 */
168 1.1 matt #define I80312_MSG_OM0 0x18 /* Outbound Message 0 */
169 1.1 matt #define I80312_MSG_OM1 0x1c /* Outbound Message 1 */
170 1.1 matt #define I80312_MSG_ID 0x20 /* Inbound Doorbell */
171 1.1 matt #define I80312_MSG_IIS 0x24 /* Inbound Interrupt Status */
172 1.1 matt #define I80312_MSG_IIM 0x28 /* Inbound Interrupt Mask */
173 1.1 matt #define I80312_MSG_OD 0x2c /* Outbound Doorbell */
174 1.1 matt #define I80312_MSG_OIS 0x30 /* Outbound Interrupt Status */
175 1.1 matt #define I80312_MSG_OIM 0x34 /* Outbound Interrupt Mask */
176 1.1 matt /* not used 0x38 .. 0x4c */
177 1.1 matt #define I80312_MSG_MC 0x50 /* MU Configuration */
178 1.1 matt #define I80312_MSG_QBA 0x54 /* Queue Base Address */
179 1.1 matt /* not used 0x58 .. 0x5c */
180 1.1 matt #define I80312_MSG_IFHP 0x60 /* Inbound Free Head Pointer */
181 1.1 matt #define I80312_MSG_IFTP 0x64 /* Inbound Free Tail Pointer */
182 1.1 matt #define I80312_MSG_IPHP 0x68 /* Inbound Post Head Pointer */
183 1.1 matt #define I80312_MSG_IPTP 0x6c /* Inbound Post Tail Pointer */
184 1.1 matt #define I80312_MSG_OFHP 0x70 /* Outbound Free Head Pointer */
185 1.1 matt #define I80312_MSG_OFTP 0x74 /* Outbound Free Tail Pointer */
186 1.1 matt #define I80312_MSG_OPHP 0x78 /* Outbound Post Head Pointer */
187 1.1 matt #define I80312_MSG_OPTP 0x7c /* Outbound Post Tail Pointer */
188 1.1 matt #define I80312_MSG_IA 0x80 /* Index Address */
189 1.1 matt /* not used 0x84 .. 0xfc */
190 1.1 matt
191 1.1 matt /*
192 1.1 matt * DMA Controller
193 1.1 matt */
194 1.1 matt #define I80312_DMA_CHAN0 0x00 /* Channel 0 */
195 1.1 matt #define I80312_DMA_CHAN1 0x40 /* Channel 1 */
196 1.1 matt #define I80312_DMA_CHAN2 0x80 /* Channel 2 */
197 1.1 matt /* not used 0xc0 .. 0xfc */
198 1.1 matt
199 1.1 matt #define I80312_DMA_CC 0x00 /* Channel Control */
200 1.1 matt #define I80312_DMA_CS 0x04 /* Channel Status */
201 1.1 matt /* not used 0x08 */
202 1.1 matt #define I80312_DMA_DA 0x0c /* Descriptor Address */
203 1.1 matt #define I80312_DMA_NDA 0x10 /* Next Descriptor Address */
204 1.1 matt #define I80312_DMA_PA 0x14 /* PCI Address */
205 1.1 matt #define I80312_DMA_PUA 0x18 /* PCI Upper Address */
206 1.1 matt #define I80312_DMA_IBA 0x1c /* Internal Bus Address */
207 1.1 matt #define I80312_DMA_BC 0x20 /* Byte Count */
208 1.1 matt #define I80312_DMA_DC 0x24 /* Descriptor Control */
209 1.1 matt /* not used 0x28 .. 0x3c */
210 1.1 matt
211 1.1 matt /*
212 1.1 matt * Memory Controller
213 1.1 matt */
214 1.1 matt #define I80312_MEM_SI 0x00 /* SDRAM Initialization */
215 1.1 matt #define I80312_MEM_SC 0x04 /* SDRAM Control */
216 1.1 matt #define I80312_MEM_SB 0x08 /* SDRAM Base */
217 1.1 matt #define I80312_MEM_SB0 0x0c /* SDRAM Bank 0 Size */
218 1.1 matt #define I80312_MEM_SB1 0x10 /* SDRAM Bank 1 Size */
219 1.1 matt /* not used 0x14 .. 0x30 */
220 1.1 matt #define I80312_MEM_EC 0x34 /* ECC Control */
221 1.1 matt #define I80312_MEM_EL0 0x38 /* ECC Log 0 */
222 1.1 matt #define I80312_MEM_EL1 0x3c /* ECC Log 1 */
223 1.1 matt #define I80312_MEM_EA0 0x40 /* ECC Address 0 */
224 1.1 matt #define I80312_MEM_EA1 0x44 /* ECC Address 1 */
225 1.1 matt #define I80312_MEM_ET 0x48 /* ECC Test */
226 1.1 matt #define I80312_MEM_FB0 0x4c /* ECC Flash Base 0 */
227 1.1 matt #define I80312_MEM_FB1 0x50 /* ECC Flash Base 1 */
228 1.1 matt #define I80312_MEM_FB0S 0x54 /* ECC Flash Bank 0 Size */
229 1.1 matt #define I80312_MEM_FB1S 0x58 /* ECC Flash Bank 1 Size */
230 1.1 matt #define I80312_MEM_FWS1 0x5c /* ECC Wait State 1 Size */
231 1.1 matt #define I80312_MEM_FWS0 0x60 /* ECC Wait State 0 Size */
232 1.1 matt #define I80312_MEM_IS 0x65 /* ECC Interrupt Status */
233 1.1 matt #define I80312_MEM_RF 0x68 /* ECC Refresh Frequency */
234 1.1 matt #define I80312_MEM_RF 0x68 /* ECC Refresh Frequency */
235 1.1 matt #define I80312_MEM_RF 0x68 /* ECC Refresh Frequency */
236 1.1 matt #define I80312_MEM_RF 0x68 /* ECC Refresh Frequency */
237 1.1 matt /* not used 0x6c .. 0xfc */
238 1.1 matt
239 1.1 matt /*
240 1.1 matt * Internal Arbitration Unit
241 1.1 matt */
242 1.1 matt #define I80312_ARB_IAC 0x00 /* Internal Aribtration Control */
243 1.1 matt #define I80312_ARB_MLT 0x04 /* Master Latency Timer */
244 1.1 matt #define I80312_ARB_MTT 0x08 /* Multi-Transaction Timer */
245 1.1 matt /* not used 0x0c .. 0x3c */
246 1.1 matt
247 1.1 matt /*
248 1.1 matt * Bus(Core) Interface Unit
249 1.1 matt */
250 1.1 matt /* not used 0x40 */
251 1.1 matt #define I80312_BUS_IS 0x44 /* Interrupt Status */
252 1.1 matt /* not used 0x4c .. 0x7c */
253 1.1 matt
254 1.1 matt /*
255 1.1 matt * I2C Bus Interface Unit
256 1.1 matt */
257 1.1 matt #define I80312_IIC_CTL 0x80 /* Control */
258 1.1 matt #define I80312_IIC_STS 0x84 /* Status */
259 1.1 matt #define I80312_IIC_SA 0x88 /* Slave Address */
260 1.1 matt #define I80312_IIC_DB 0x8c /* Data Buffer */
261 1.1 matt #define I80312_IIC_CC 0x90 /* Clock Control */
262 1.1 matt #define I80312_IIC_BM 0x94 /* Bus Monitor */
263 1.1 matt /* not used 0x98 .. 0xfc */
264 1.1 matt
265 1.1 matt /*
266 1.1 matt * PCI And Peripheral Interrupt (GPIO) Unit
267 1.1 matt */
268 1.1 matt #define I80312_INTC_IIS 0x00 /* IRQ Interrupt Status */
269 1.1 matt #define I80312_INTC_F2IS 0x04 /* FIQ2 Interrupt Status */
270 1.1 matt #define I80312_INTC_F1IS 0x08 /* FIQ1 Interrupt Status */
271 1.1 matt /* not used 0x0c */
272 1.1 matt #define I80312_INTC_PDI 0x10 /* Processor Device ID */
273 1.1 matt /* not used 0x14 .. 0x18 */
274 1.1 matt #define I80312_INTC_GOE 0x1c /* GPIO Output Enable */
275 1.1 matt #define I80312_INTC_GID 0x20 /* GPIO Input Data */
276 1.1 matt #define I80312_INTC_GOD 0x24 /* GPIO Output Data */
277 1.1 matt /* not used 0x28 .. 0xfc */
278 1.1 matt
279 1.1 matt /*
280 1.1 matt * Application Accelerator Registers
281 1.1 matt */
282 1.1 matt #define I80312_AAU_CTL 0x00 /* Control */
283 1.1 matt #define I80312_AAU_STS 0x04 /* Status */
284 1.2 matt #define I80312_AAU_DSCA 0x08 /* Descriptor Address */
285 1.1 matt #define I80312_AAU_NDA 0x0c /* Next Descriptor Address */
286 1.1 matt #define I80312_AAU_SA1 0x10 /* i80200 Source Address 1 */
287 1.1 matt #define I80312_AAU_SA2 0x14 /* i80200 Source Address 2 */
288 1.1 matt #define I80312_AAU_SA3 0x18 /* i80200 Source Address 3 */
289 1.1 matt #define I80312_AAU_SA4 0x1c /* i80200 Source Address 4 */
290 1.2 matt #define I80312_AAU_DSTA 0x20 /* i80200 Destination Address */
291 1.1 matt #define I80312_AAU_ABC 0x24 /* Accelerator Byte Count */
292 1.1 matt #define I80312_AAU_ADC 0x28 /* Accelerator Descriptor Count */
293 1.1 matt #define I80312_AAU_SA5 0x2c /* i80200 Source Address 5 */
294 1.1 matt #define I80312_AAU_SA6 0x30 /* i80200 Source Address 6 */
295 1.1 matt #define I80312_AAU_SA7 0x34 /* i80200 Source Address 7 */
296 1.1 matt #define I80312_AAU_SA8 0x38 /* i80200 Source Address 8 */
297 1.1 matt /* not used 0x3c .. 0xfc */
298 1.1 matt
299 1.1 matt #endif /* _ARM_XSCALE_I80312REG_H_ */
300