]> git.sur5r.net Git - u-boot/blob - board/prodrive/p3mx/mv_regs.h
Merge branch 'master' of git://www.denx.de/git/u-boot-nand-flash
[u-boot] / board / prodrive / p3mx / mv_regs.h
1 /*
2  * (C) Copyright 2003
3  * Ingo Assmus <ingo.assmus@keymile.com>
4  *
5  * based on - Driver for MV64460X ethernet ports
6  * Copyright (C) 2002 rabeeh@galileo.co.il
7  *
8  * See file CREDITS for list of people who contributed to this
9  * project.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License as
13  * published by the Free Software Foundation; either version 2 of
14  * the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24  * MA 02111-1307 USA
25  */
26
27 /********************************************************************************
28 * gt64460r.h - GT-64460 Internal registers definition file.
29 *
30 * DESCRIPTION:
31 *       None.
32 *
33 * DEPENDENCIES:
34 *       None.
35 *
36 *******************************************************************************/
37
38 #ifndef __INCmv_regsh
39 #define __INCmv_regsh
40
41 #define MV64460
42
43 /* Supported by the Atlantis */
44 #define MV64460_INCLUDE_PCI_1
45 #define MV64460_INCLUDE_PCI_0_ARBITER
46 #define MV64460_INCLUDE_PCI_1_ARBITER
47 #define MV64460_INCLUDE_SNOOP_SUPPORT
48 #define MV64460_INCLUDE_P2P
49 #define MV64460_INCLUDE_ETH_PORT_2
50 #define MV64460_INCLUDE_CPU_MAPPING
51 #define MV64460_INCLUDE_MPSC
52
53 /* Not supported features */
54 #undef  INCLUDE_CNTMR_4_7
55 #undef  INCLUDE_DMA_4_7
56
57 /****************************************/
58 /* Processor Address Space              */
59 /****************************************/
60
61 /* DDR SDRAM BAR and size registers */
62
63 #define MV64460_CS_0_BASE_ADDR                                      0x008
64 #define MV64460_CS_0_SIZE                                           0x010
65 #define MV64460_CS_1_BASE_ADDR                                      0x208
66 #define MV64460_CS_1_SIZE                                           0x210
67 #define MV64460_CS_2_BASE_ADDR                                      0x018
68 #define MV64460_CS_2_SIZE                                           0x020
69 #define MV64460_CS_3_BASE_ADDR                                      0x218
70 #define MV64460_CS_3_SIZE                                           0x220
71
72 /* Devices BAR and size registers */
73
74 #define MV64460_DEV_CS0_BASE_ADDR                                   0x028
75 #define MV64460_DEV_CS0_SIZE                                        0x030
76 #define MV64460_DEV_CS1_BASE_ADDR                                   0x228
77 #define MV64460_DEV_CS1_SIZE                                        0x230
78 #define MV64460_DEV_CS2_BASE_ADDR                                   0x248
79 #define MV64460_DEV_CS2_SIZE                                        0x250
80 #define MV64460_DEV_CS3_BASE_ADDR                                   0x038
81 #define MV64460_DEV_CS3_SIZE                                        0x040
82 #define MV64460_BOOTCS_BASE_ADDR                                    0x238
83 #define MV64460_BOOTCS_SIZE                                         0x240
84
85 /* PCI 0 BAR and size registers */
86
87 #define MV64460_PCI_0_IO_BASE_ADDR                                  0x048
88 #define MV64460_PCI_0_IO_SIZE                                       0x050
89 #define MV64460_PCI_0_MEMORY0_BASE_ADDR                             0x058
90 #define MV64460_PCI_0_MEMORY0_SIZE                                  0x060
91 #define MV64460_PCI_0_MEMORY1_BASE_ADDR                             0x080
92 #define MV64460_PCI_0_MEMORY1_SIZE                                  0x088
93 #define MV64460_PCI_0_MEMORY2_BASE_ADDR                             0x258
94 #define MV64460_PCI_0_MEMORY2_SIZE                                  0x260
95 #define MV64460_PCI_0_MEMORY3_BASE_ADDR                             0x280
96 #define MV64460_PCI_0_MEMORY3_SIZE                                  0x288
97
98 /* PCI 1 BAR and size registers */
99 #define MV64460_PCI_1_IO_BASE_ADDR                                  0x090
100 #define MV64460_PCI_1_IO_SIZE                                       0x098
101 #define MV64460_PCI_1_MEMORY0_BASE_ADDR                             0x0a0
102 #define MV64460_PCI_1_MEMORY0_SIZE                                  0x0a8
103 #define MV64460_PCI_1_MEMORY1_BASE_ADDR                             0x0b0
104 #define MV64460_PCI_1_MEMORY1_SIZE                                  0x0b8
105 #define MV64460_PCI_1_MEMORY2_BASE_ADDR                             0x2a0
106 #define MV64460_PCI_1_MEMORY2_SIZE                                  0x2a8
107 #define MV64460_PCI_1_MEMORY3_BASE_ADDR                             0x2b0
108 #define MV64460_PCI_1_MEMORY3_SIZE                                  0x2b8
109
110 /* SRAM base address */
111 #define MV64460_INTEGRATED_SRAM_BASE_ADDR                           0x268
112
113 /* internal registers space base address */
114 #define MV64460_INTERNAL_SPACE_BASE_ADDR                            0x068
115
116 /* Enables the CS , DEV_CS , PCI 0 and PCI 1
117    windows above */
118 #define MV64460_BASE_ADDR_ENABLE                                    0x278
119
120 /****************************************/
121 /* PCI remap registers                  */
122 /****************************************/
123       /* PCI 0 */
124 #define MV64460_PCI_0_IO_ADDR_REMAP                                 0x0f0
125 #define MV64460_PCI_0_MEMORY0_LOW_ADDR_REMAP                        0x0f8
126 #define MV64460_PCI_0_MEMORY0_HIGH_ADDR_REMAP                       0x320
127 #define MV64460_PCI_0_MEMORY1_LOW_ADDR_REMAP                        0x100
128 #define MV64460_PCI_0_MEMORY1_HIGH_ADDR_REMAP                       0x328
129 #define MV64460_PCI_0_MEMORY2_LOW_ADDR_REMAP                        0x2f8
130 #define MV64460_PCI_0_MEMORY2_HIGH_ADDR_REMAP                       0x330
131 #define MV64460_PCI_0_MEMORY3_LOW_ADDR_REMAP                        0x300
132 #define MV64460_PCI_0_MEMORY3_HIGH_ADDR_REMAP                       0x338
133       /* PCI 1 */
134 #define MV64460_PCI_1_IO_ADDR_REMAP                                 0x108
135 #define MV64460_PCI_1_MEMORY0_LOW_ADDR_REMAP                        0x110
136 #define MV64460_PCI_1_MEMORY0_HIGH_ADDR_REMAP                       0x340
137 #define MV64460_PCI_1_MEMORY1_LOW_ADDR_REMAP                        0x118
138 #define MV64460_PCI_1_MEMORY1_HIGH_ADDR_REMAP                       0x348
139 #define MV64460_PCI_1_MEMORY2_LOW_ADDR_REMAP                        0x310
140 #define MV64460_PCI_1_MEMORY2_HIGH_ADDR_REMAP                       0x350
141 #define MV64460_PCI_1_MEMORY3_LOW_ADDR_REMAP                        0x318
142 #define MV64460_PCI_1_MEMORY3_HIGH_ADDR_REMAP                       0x358
143
144 #define MV64460_CPU_PCI_0_HEADERS_RETARGET_CONTROL                  0x3b0
145 #define MV64460_CPU_PCI_0_HEADERS_RETARGET_BASE                     0x3b8
146 #define MV64460_CPU_PCI_1_HEADERS_RETARGET_CONTROL                  0x3c0
147 #define MV64460_CPU_PCI_1_HEADERS_RETARGET_BASE                     0x3c8
148 #define MV64460_CPU_GE_HEADERS_RETARGET_CONTROL                     0x3d0
149 #define MV64460_CPU_GE_HEADERS_RETARGET_BASE                        0x3d8
150 #define MV64460_CPU_IDMA_HEADERS_RETARGET_CONTROL                   0x3e0
151 #define MV64460_CPU_IDMA_HEADERS_RETARGET_BASE                      0x3e8
152
153 /****************************************/
154 /*         CPU Control Registers        */
155 /****************************************/
156
157 #define MV64460_CPU_CONFIG                                          0x000
158 #define MV64460_CPU_MODE                                            0x120
159 #define MV64460_CPU_MASTER_CONTROL                                  0x160
160 #define MV64460_CPU_CROSS_BAR_CONTROL_LOW                           0x150
161 #define MV64460_CPU_CROSS_BAR_CONTROL_HIGH                          0x158
162 #define MV64460_CPU_CROSS_BAR_TIMEOUT                               0x168
163
164 /****************************************/
165 /* SMP RegisterS                        */
166 /****************************************/
167
168 #define MV64460_SMP_WHO_AM_I                                        0x200
169 #define MV64460_SMP_CPU0_DOORBELL                                   0x214
170 #define MV64460_SMP_CPU0_DOORBELL_CLEAR                             0x21C
171 #define MV64460_SMP_CPU1_DOORBELL                                   0x224
172 #define MV64460_SMP_CPU1_DOORBELL_CLEAR                             0x22C
173 #define MV64460_SMP_CPU0_DOORBELL_MASK                              0x234
174 #define MV64460_SMP_CPU1_DOORBELL_MASK                              0x23C
175 #define MV64460_SMP_SEMAPHOR0                                       0x244
176 #define MV64460_SMP_SEMAPHOR1                                       0x24c
177 #define MV64460_SMP_SEMAPHOR2                                       0x254
178 #define MV64460_SMP_SEMAPHOR3                                       0x25c
179 #define MV64460_SMP_SEMAPHOR4                                       0x264
180 #define MV64460_SMP_SEMAPHOR5                                       0x26c
181 #define MV64460_SMP_SEMAPHOR6                                       0x274
182 #define MV64460_SMP_SEMAPHOR7                                       0x27c
183
184 /****************************************/
185 /*  CPU Sync Barrier Register           */
186 /****************************************/
187
188 #define MV64460_CPU_0_SYNC_BARRIER_TRIGGER                          0x0c0
189 #define MV64460_CPU_0_SYNC_BARRIER_VIRTUAL                          0x0c8
190 #define MV64460_CPU_1_SYNC_BARRIER_TRIGGER                          0x0d0
191 #define MV64460_CPU_1_SYNC_BARRIER_VIRTUAL                          0x0d8
192
193 /****************************************/
194 /* CPU Access Protect                   */
195 /****************************************/
196
197 #define MV64460_CPU_PROTECT_WINDOW_0_BASE_ADDR                      0x180
198 #define MV64460_CPU_PROTECT_WINDOW_0_SIZE                           0x188
199 #define MV64460_CPU_PROTECT_WINDOW_1_BASE_ADDR                      0x190
200 #define MV64460_CPU_PROTECT_WINDOW_1_SIZE                           0x198
201 #define MV64460_CPU_PROTECT_WINDOW_2_BASE_ADDR                      0x1a0
202 #define MV64460_CPU_PROTECT_WINDOW_2_SIZE                           0x1a8
203 #define MV64460_CPU_PROTECT_WINDOW_3_BASE_ADDR                      0x1b0
204 #define MV64460_CPU_PROTECT_WINDOW_3_SIZE                           0x1b8
205
206
207 /****************************************/
208 /*          CPU Error Report            */
209 /****************************************/
210
211 #define MV64460_CPU_ERROR_ADDR_LOW                                  0x070
212 #define MV64460_CPU_ERROR_ADDR_HIGH                                 0x078
213 #define MV64460_CPU_ERROR_DATA_LOW                                  0x128
214 #define MV64460_CPU_ERROR_DATA_HIGH                                 0x130
215 #define MV64460_CPU_ERROR_PARITY                                    0x138
216 #define MV64460_CPU_ERROR_CAUSE                                     0x140
217 #define MV64460_CPU_ERROR_MASK                                      0x148
218
219 /****************************************/
220 /*      CPU Interface Debug Registers   */
221 /****************************************/
222
223 #define MV64460_PUNIT_SLAVE_DEBUG_LOW                               0x360
224 #define MV64460_PUNIT_SLAVE_DEBUG_HIGH                              0x368
225 #define MV64460_PUNIT_MASTER_DEBUG_LOW                              0x370
226 #define MV64460_PUNIT_MASTER_DEBUG_HIGH                             0x378
227 #define MV64460_PUNIT_MMASK                                         0x3e4
228
229 /****************************************/
230 /*  Integrated SRAM Registers           */
231 /****************************************/
232
233 #define MV64460_SRAM_CONFIG                                         0x380
234 #define MV64460_SRAM_TEST_MODE                                      0X3F4
235 #define MV64460_SRAM_ERROR_CAUSE                                    0x388
236 #define MV64460_SRAM_ERROR_ADDR                                     0x390
237 #define MV64460_SRAM_ERROR_ADDR_HIGH                                0X3F8
238 #define MV64460_SRAM_ERROR_DATA_LOW                                 0x398
239 #define MV64460_SRAM_ERROR_DATA_HIGH                                0x3a0
240 #define MV64460_SRAM_ERROR_DATA_PARITY                              0x3a8
241
242 /****************************************/
243 /* SDRAM Configuration                  */
244 /****************************************/
245
246 #define MV64460_SDRAM_CONFIG                                        0x1400
247 #define MV64460_D_UNIT_CONTROL_LOW                                  0x1404
248 #define MV64460_D_UNIT_CONTROL_HIGH                                 0x1424
249 #define MV64460_D_UNIT_MMASK                                        0x14B0
250 #define MV64460_SDRAM_TIMING_CONTROL_LOW                            0x1408
251 #define MV64460_SDRAM_TIMING_CONTROL_HIGH                           0x140c
252 #define MV64460_SDRAM_ADDR_CONTROL                                  0x1410
253 #define MV64460_SDRAM_OPEN_PAGES_CONTROL                            0x1414
254 #define MV64460_SDRAM_OPERATION                                     0x1418
255 #define MV64460_SDRAM_MODE                                          0x141c
256 #define MV64460_EXTENDED_DRAM_MODE                                  0x1420
257 #define MV64460_SDRAM_CROSS_BAR_CONTROL_LOW                         0x1430
258 #define MV64460_SDRAM_CROSS_BAR_CONTROL_HIGH                        0x1434
259 #define MV64460_SDRAM_CROSS_BAR_TIMEOUT                             0x1438
260 #define MV64460_SDRAM_ADDR_CTRL_PADS_CALIBRATION                    0x14c0
261 #define MV64460_SDRAM_DATA_PADS_CALIBRATION                         0x14c4
262
263 /****************************************/
264 /* SDRAM Error Report                   */
265 /****************************************/
266
267 #define MV64460_SDRAM_ERROR_DATA_LOW                                0x1444
268 #define MV64460_SDRAM_ERROR_DATA_HIGH                               0x1440
269 #define MV64460_SDRAM_ERROR_ADDR                                    0x1450
270 #define MV64460_SDRAM_RECEIVED_ECC                                  0x1448
271 #define MV64460_SDRAM_CALCULATED_ECC                                0x144c
272 #define MV64460_SDRAM_ECC_CONTROL                                   0x1454
273 #define MV64460_SDRAM_ECC_ERROR_COUNTER                             0x1458
274
275 /******************************************/
276 /*  Controlled Delay Line (CDL) Registers */
277 /******************************************/
278
279 #define MV64460_DFCDL_CONFIG0                                       0x1480
280 #define MV64460_DFCDL_CONFIG1                                       0x1484
281 #define MV64460_DLL_WRITE                                           0x1488
282 #define MV64460_DLL_READ                                            0x148c
283 #define MV64460_SRAM_ADDR                                           0x1490
284 #define MV64460_SRAM_DATA0                                          0x1494
285 #define MV64460_SRAM_DATA1                                          0x1498
286 #define MV64460_SRAM_DATA2                                          0x149c
287 #define MV64460_DFCL_PROBE                                          0x14a0
288
289 /******************************************/
290 /*   Debug Registers                      */
291 /******************************************/
292
293 #define MV64460_DUNIT_DEBUG_LOW                                     0x1460
294 #define MV64460_DUNIT_DEBUG_HIGH                                    0x1464
295 #define MV64460_DUNIT_MMASK                                         0X1b40
296
297 /****************************************/
298 /* Device Parameters                    */
299 /****************************************/
300
301 #define MV64460_DEVICE_BANK0_PARAMETERS                             0x45c
302 #define MV64460_DEVICE_BANK1_PARAMETERS                             0x460
303 #define MV64460_DEVICE_BANK2_PARAMETERS                             0x464
304 #define MV64460_DEVICE_BANK3_PARAMETERS                             0x468
305 #define MV64460_DEVICE_BOOT_BANK_PARAMETERS                         0x46c
306 #define MV64460_DEVICE_INTERFACE_CONTROL                            0x4c0
307 #define MV64460_DEVICE_INTERFACE_CROSS_BAR_CONTROL_LOW              0x4c8
308 #define MV64460_DEVICE_INTERFACE_CROSS_BAR_CONTROL_HIGH             0x4cc
309 #define MV64460_DEVICE_INTERFACE_CROSS_BAR_TIMEOUT                  0x4c4
310
311 /****************************************/
312 /* Device interrupt registers           */
313 /****************************************/
314
315 #define MV64460_DEVICE_INTERRUPT_CAUSE                              0x4d0
316 #define MV64460_DEVICE_INTERRUPT_MASK                               0x4d4
317 #define MV64460_DEVICE_ERROR_ADDR                                   0x4d8
318 #define MV64460_DEVICE_ERROR_DATA                                   0x4dc
319 #define MV64460_DEVICE_ERROR_PARITY                                 0x4e0
320
321 /****************************************/
322 /* Device debug registers               */
323 /****************************************/
324
325 #define MV64460_DEVICE_DEBUG_LOW                                    0x4e4
326 #define MV64460_DEVICE_DEBUG_HIGH                                   0x4e8
327 #define MV64460_RUNIT_MMASK                                         0x4f0
328
329 /****************************************/
330 /* PCI Slave Address Decoding registers */
331 /****************************************/
332
333 #define MV64460_PCI_0_CS_0_BANK_SIZE                                0xc08
334 #define MV64460_PCI_1_CS_0_BANK_SIZE                                0xc88
335 #define MV64460_PCI_0_CS_1_BANK_SIZE                                0xd08
336 #define MV64460_PCI_1_CS_1_BANK_SIZE                                0xd88
337 #define MV64460_PCI_0_CS_2_BANK_SIZE                                0xc0c
338 #define MV64460_PCI_1_CS_2_BANK_SIZE                                0xc8c
339 #define MV64460_PCI_0_CS_3_BANK_SIZE                                0xd0c
340 #define MV64460_PCI_1_CS_3_BANK_SIZE                                0xd8c
341 #define MV64460_PCI_0_DEVCS_0_BANK_SIZE                             0xc10
342 #define MV64460_PCI_1_DEVCS_0_BANK_SIZE                             0xc90
343 #define MV64460_PCI_0_DEVCS_1_BANK_SIZE                             0xd10
344 #define MV64460_PCI_1_DEVCS_1_BANK_SIZE                             0xd90
345 #define MV64460_PCI_0_DEVCS_2_BANK_SIZE                             0xd18
346 #define MV64460_PCI_1_DEVCS_2_BANK_SIZE                             0xd98
347 #define MV64460_PCI_0_DEVCS_3_BANK_SIZE                             0xc14
348 #define MV64460_PCI_1_DEVCS_3_BANK_SIZE                             0xc94
349 #define MV64460_PCI_0_DEVCS_BOOT_BANK_SIZE                          0xd14
350 #define MV64460_PCI_1_DEVCS_BOOT_BANK_SIZE                          0xd94
351 #define MV64460_PCI_0_P2P_MEM0_BAR_SIZE                             0xd1c
352 #define MV64460_PCI_1_P2P_MEM0_BAR_SIZE                             0xd9c
353 #define MV64460_PCI_0_P2P_MEM1_BAR_SIZE                             0xd20
354 #define MV64460_PCI_1_P2P_MEM1_BAR_SIZE                             0xda0
355 #define MV64460_PCI_0_P2P_I_O_BAR_SIZE                              0xd24
356 #define MV64460_PCI_1_P2P_I_O_BAR_SIZE                              0xda4
357 #define MV64460_PCI_0_CPU_BAR_SIZE                                  0xd28
358 #define MV64460_PCI_1_CPU_BAR_SIZE                                  0xda8
359 #define MV64460_PCI_0_INTERNAL_SRAM_BAR_SIZE                        0xe00
360 #define MV64460_PCI_1_INTERNAL_SRAM_BAR_SIZE                        0xe80
361 #define MV64460_PCI_0_EXPANSION_ROM_BAR_SIZE                        0xd2c
362 #define MV64460_PCI_1_EXPANSION_ROM_BAR_SIZE                        0xd9c
363 #define MV64460_PCI_0_BASE_ADDR_REG_ENABLE                          0xc3c
364 #define MV64460_PCI_1_BASE_ADDR_REG_ENABLE                          0xcbc
365 #define MV64460_PCI_0_CS_0_BASE_ADDR_REMAP                          0xc48
366 #define MV64460_PCI_1_CS_0_BASE_ADDR_REMAP                          0xcc8
367 #define MV64460_PCI_0_CS_1_BASE_ADDR_REMAP                          0xd48
368 #define MV64460_PCI_1_CS_1_BASE_ADDR_REMAP                          0xdc8
369 #define MV64460_PCI_0_CS_2_BASE_ADDR_REMAP                          0xc4c
370 #define MV64460_PCI_1_CS_2_BASE_ADDR_REMAP                          0xccc
371 #define MV64460_PCI_0_CS_3_BASE_ADDR_REMAP                          0xd4c
372 #define MV64460_PCI_1_CS_3_BASE_ADDR_REMAP                          0xdcc
373 #define MV64460_PCI_0_CS_0_BASE_HIGH_ADDR_REMAP                     0xF04
374 #define MV64460_PCI_1_CS_0_BASE_HIGH_ADDR_REMAP                     0xF84
375 #define MV64460_PCI_0_CS_1_BASE_HIGH_ADDR_REMAP                     0xF08
376 #define MV64460_PCI_1_CS_1_BASE_HIGH_ADDR_REMAP                     0xF88
377 #define MV64460_PCI_0_CS_2_BASE_HIGH_ADDR_REMAP                     0xF0C
378 #define MV64460_PCI_1_CS_2_BASE_HIGH_ADDR_REMAP                     0xF8C
379 #define MV64460_PCI_0_CS_3_BASE_HIGH_ADDR_REMAP                     0xF10
380 #define MV64460_PCI_1_CS_3_BASE_HIGH_ADDR_REMAP                     0xF90
381 #define MV64460_PCI_0_DEVCS_0_BASE_ADDR_REMAP                       0xc50
382 #define MV64460_PCI_1_DEVCS_0_BASE_ADDR_REMAP                       0xcd0
383 #define MV64460_PCI_0_DEVCS_1_BASE_ADDR_REMAP                       0xd50
384 #define MV64460_PCI_1_DEVCS_1_BASE_ADDR_REMAP                       0xdd0
385 #define MV64460_PCI_0_DEVCS_2_BASE_ADDR_REMAP                       0xd58
386 #define MV64460_PCI_1_DEVCS_2_BASE_ADDR_REMAP                       0xdd8
387 #define MV64460_PCI_0_DEVCS_3_BASE_ADDR_REMAP                       0xc54
388 #define MV64460_PCI_1_DEVCS_3_BASE_ADDR_REMAP                       0xcd4
389 #define MV64460_PCI_0_DEVCS_BOOTCS_BASE_ADDR_REMAP                  0xd54
390 #define MV64460_PCI_1_DEVCS_BOOTCS_BASE_ADDR_REMAP                  0xdd4
391 #define MV64460_PCI_0_P2P_MEM0_BASE_ADDR_REMAP_LOW                  0xd5c
392 #define MV64460_PCI_1_P2P_MEM0_BASE_ADDR_REMAP_LOW                  0xddc
393 #define MV64460_PCI_0_P2P_MEM0_BASE_ADDR_REMAP_HIGH                 0xd60
394 #define MV64460_PCI_1_P2P_MEM0_BASE_ADDR_REMAP_HIGH                 0xde0
395 #define MV64460_PCI_0_P2P_MEM1_BASE_ADDR_REMAP_LOW                  0xd64
396 #define MV64460_PCI_1_P2P_MEM1_BASE_ADDR_REMAP_LOW                  0xde4
397 #define MV64460_PCI_0_P2P_MEM1_BASE_ADDR_REMAP_HIGH                 0xd68
398 #define MV64460_PCI_1_P2P_MEM1_BASE_ADDR_REMAP_HIGH                 0xde8
399 #define MV64460_PCI_0_P2P_I_O_BASE_ADDR_REMAP                       0xd6c
400 #define MV64460_PCI_1_P2P_I_O_BASE_ADDR_REMAP                       0xdec
401 #define MV64460_PCI_0_CPU_BASE_ADDR_REMAP_LOW                       0xd70
402 #define MV64460_PCI_1_CPU_BASE_ADDR_REMAP_LOW                       0xdf0
403 #define MV64460_PCI_0_CPU_BASE_ADDR_REMAP_HIGH                      0xd74
404 #define MV64460_PCI_1_CPU_BASE_ADDR_REMAP_HIGH                      0xdf4
405 #define MV64460_PCI_0_INTEGRATED_SRAM_BASE_ADDR_REMAP               0xf00
406 #define MV64460_PCI_1_INTEGRATED_SRAM_BASE_ADDR_REMAP               0xf80
407 #define MV64460_PCI_0_EXPANSION_ROM_BASE_ADDR_REMAP                 0xf38
408 #define MV64460_PCI_1_EXPANSION_ROM_BASE_ADDR_REMAP                 0xfb8
409 #define MV64460_PCI_0_ADDR_DECODE_CONTROL                           0xd3c
410 #define MV64460_PCI_1_ADDR_DECODE_CONTROL                           0xdbc
411 #define MV64460_PCI_0_HEADERS_RETARGET_CONTROL                      0xF40
412 #define MV64460_PCI_1_HEADERS_RETARGET_CONTROL                      0xFc0
413 #define MV64460_PCI_0_HEADERS_RETARGET_BASE                         0xF44
414 #define MV64460_PCI_1_HEADERS_RETARGET_BASE                         0xFc4
415 #define MV64460_PCI_0_HEADERS_RETARGET_HIGH                         0xF48
416 #define MV64460_PCI_1_HEADERS_RETARGET_HIGH                         0xFc8
417
418 /***********************************/
419 /*   PCI Control Register Map      */
420 /***********************************/
421
422 #define MV64460_PCI_0_DLL_STATUS_AND_COMMAND                        0x1d20
423 #define MV64460_PCI_1_DLL_STATUS_AND_COMMAND                        0x1da0
424 #define MV64460_PCI_0_MPP_PADS_DRIVE_CONTROL                        0x1d1C
425 #define MV64460_PCI_1_MPP_PADS_DRIVE_CONTROL                        0x1d9C
426 #define MV64460_PCI_0_COMMAND                                       0xc00
427 #define MV64460_PCI_1_COMMAND                                       0xc80
428 #define MV64460_PCI_0_MODE                                          0xd00
429 #define MV64460_PCI_1_MODE                                          0xd80
430 #define MV64460_PCI_0_RETRY                                         0xc04
431 #define MV64460_PCI_1_RETRY                                         0xc84
432 #define MV64460_PCI_0_READ_BUFFER_DISCARD_TIMER                     0xd04
433 #define MV64460_PCI_1_READ_BUFFER_DISCARD_TIMER                     0xd84
434 #define MV64460_PCI_0_MSI_TRIGGER_TIMER                             0xc38
435 #define MV64460_PCI_1_MSI_TRIGGER_TIMER                             0xcb8
436 #define MV64460_PCI_0_ARBITER_CONTROL                               0x1d00
437 #define MV64460_PCI_1_ARBITER_CONTROL                               0x1d80
438 #define MV64460_PCI_0_CROSS_BAR_CONTROL_LOW                         0x1d08
439 #define MV64460_PCI_1_CROSS_BAR_CONTROL_LOW                         0x1d88
440 #define MV64460_PCI_0_CROSS_BAR_CONTROL_HIGH                        0x1d0c
441 #define MV64460_PCI_1_CROSS_BAR_CONTROL_HIGH                        0x1d8c
442 #define MV64460_PCI_0_CROSS_BAR_TIMEOUT                             0x1d04
443 #define MV64460_PCI_1_CROSS_BAR_TIMEOUT                             0x1d84
444 #define MV64460_PCI_0_SYNC_BARRIER_TRIGGER_REG                      0x1D18
445 #define MV64460_PCI_1_SYNC_BARRIER_TRIGGER_REG                      0x1D98
446 #define MV64460_PCI_0_SYNC_BARRIER_VIRTUAL_REG                      0x1d10
447 #define MV64460_PCI_1_SYNC_BARRIER_VIRTUAL_REG                      0x1d90
448 #define MV64460_PCI_0_P2P_CONFIG                                    0x1d14
449 #define MV64460_PCI_1_P2P_CONFIG                                    0x1d94
450
451 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_0_LOW                     0x1e00
452 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_0_HIGH                    0x1e04
453 #define MV64460_PCI_0_ACCESS_CONTROL_SIZE_0                         0x1e08
454 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_1_LOW                     0x1e10
455 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_1_HIGH                    0x1e14
456 #define MV64460_PCI_0_ACCESS_CONTROL_SIZE_1                         0x1e18
457 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_2_LOW                     0x1e20
458 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_2_HIGH                    0x1e24
459 #define MV64460_PCI_0_ACCESS_CONTROL_SIZE_2                         0x1e28
460 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_3_LOW                     0x1e30
461 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_3_HIGH                    0x1e34
462 #define MV64460_PCI_0_ACCESS_CONTROL_SIZE_3                         0x1e38
463 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_4_LOW                     0x1e40
464 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_4_HIGH                    0x1e44
465 #define MV64460_PCI_0_ACCESS_CONTROL_SIZE_4                         0x1e48
466 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_5_LOW                     0x1e50
467 #define MV64460_PCI_0_ACCESS_CONTROL_BASE_5_HIGH                    0x1e54
468 #define MV64460_PCI_0_ACCESS_CONTROL_SIZE_5                         0x1e58
469
470 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_0_LOW                     0x1e80
471 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_0_HIGH                    0x1e84
472 #define MV64460_PCI_1_ACCESS_CONTROL_SIZE_0                         0x1e88
473 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_1_LOW                     0x1e90
474 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_1_HIGH                    0x1e94
475 #define MV64460_PCI_1_ACCESS_CONTROL_SIZE_1                         0x1e98
476 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_2_LOW                     0x1ea0
477 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_2_HIGH                    0x1ea4
478 #define MV64460_PCI_1_ACCESS_CONTROL_SIZE_2                         0x1ea8
479 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_3_LOW                     0x1eb0
480 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_3_HIGH                    0x1eb4
481 #define MV64460_PCI_1_ACCESS_CONTROL_SIZE_3                         0x1eb8
482 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_4_LOW                     0x1ec0
483 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_4_HIGH                    0x1ec4
484 #define MV64460_PCI_1_ACCESS_CONTROL_SIZE_4                         0x1ec8
485 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_5_LOW                     0x1ed0
486 #define MV64460_PCI_1_ACCESS_CONTROL_BASE_5_HIGH                    0x1ed4
487 #define MV64460_PCI_1_ACCESS_CONTROL_SIZE_5                         0x1ed8
488
489 /****************************************/
490 /*   PCI Configuration Access Registers */
491 /****************************************/
492
493 #define MV64460_PCI_0_CONFIG_ADDR                                   0xcf8
494 #define MV64460_PCI_0_CONFIG_DATA_VIRTUAL_REG                       0xcfc
495 #define MV64460_PCI_1_CONFIG_ADDR                                   0xc78
496 #define MV64460_PCI_1_CONFIG_DATA_VIRTUAL_REG                       0xc7c
497 #define MV64460_PCI_0_INTERRUPT_ACKNOWLEDGE_VIRTUAL_REG             0xc34
498 #define MV64460_PCI_1_INTERRUPT_ACKNOWLEDGE_VIRTUAL_REG             0xcb4
499
500 /****************************************/
501 /*   PCI Error Report Registers         */
502 /****************************************/
503
504 #define MV64460_PCI_0_SERR_MASK                                     0xc28
505 #define MV64460_PCI_1_SERR_MASK                                     0xca8
506 #define MV64460_PCI_0_ERROR_ADDR_LOW                                0x1d40
507 #define MV64460_PCI_1_ERROR_ADDR_LOW                                0x1dc0
508 #define MV64460_PCI_0_ERROR_ADDR_HIGH                               0x1d44
509 #define MV64460_PCI_1_ERROR_ADDR_HIGH                               0x1dc4
510 #define MV64460_PCI_0_ERROR_ATTRIBUTE                               0x1d48
511 #define MV64460_PCI_1_ERROR_ATTRIBUTE                               0x1dc8
512 #define MV64460_PCI_0_ERROR_COMMAND                                 0x1d50
513 #define MV64460_PCI_1_ERROR_COMMAND                                 0x1dd0
514 #define MV64460_PCI_0_ERROR_CAUSE                                   0x1d58
515 #define MV64460_PCI_1_ERROR_CAUSE                                   0x1dd8
516 #define MV64460_PCI_0_ERROR_MASK                                    0x1d5c
517 #define MV64460_PCI_1_ERROR_MASK                                    0x1ddc
518
519 /****************************************/
520 /*   PCI Debug Registers                */
521 /****************************************/
522
523 #define MV64460_PCI_0_MMASK                                         0X1D24
524 #define MV64460_PCI_1_MMASK                                         0X1DA4
525
526 /*********************************************/
527 /* PCI Configuration, Function 0, Registers  */
528 /*********************************************/
529
530 #define MV64460_PCI_DEVICE_AND_VENDOR_ID                            0x000
531 #define MV64460_PCI_STATUS_AND_COMMAND                              0x004
532 #define MV64460_PCI_CLASS_CODE_AND_REVISION_ID                      0x008
533 #define MV64460_PCI_BIST_HEADER_TYPE_LATENCY_TIMER_CACHE_LINE       0x00C
534
535 #define MV64460_PCI_SCS_0_BASE_ADDR_LOW                             0x010
536 #define MV64460_PCI_SCS_0_BASE_ADDR_HIGH                            0x014
537 #define MV64460_PCI_SCS_1_BASE_ADDR_LOW                             0x018
538 #define MV64460_PCI_SCS_1_BASE_ADDR_HIGH                            0x01C
539 #define MV64460_PCI_INTERNAL_REG_MEM_MAPPED_BASE_ADDR_LOW           0x020
540 #define MV64460_PCI_INTERNAL_REG_MEM_MAPPED_BASE_ADDR_HIGH          0x024
541 #define MV64460_PCI_SUBSYSTEM_ID_AND_SUBSYSTEM_VENDOR_ID            0x02c
542 #define MV64460_PCI_EXPANSION_ROM_BASE_ADDR_REG                     0x030
543 #define MV64460_PCI_CAPABILTY_LIST_POINTER                          0x034
544 #define MV64460_PCI_INTERRUPT_PIN_AND_LINE                          0x03C
545        /* capability list */
546 #define MV64460_PCI_POWER_MANAGEMENT_CAPABILITY                     0x040
547 #define MV64460_PCI_POWER_MANAGEMENT_STATUS_AND_CONTROL             0x044
548 #define MV64460_PCI_VPD_ADDR                                        0x048
549 #define MV64460_PCI_VPD_DATA                                        0x04c
550 #define MV64460_PCI_MSI_MESSAGE_CONTROL                             0x050
551 #define MV64460_PCI_MSI_MESSAGE_ADDR                                0x054
552 #define MV64460_PCI_MSI_MESSAGE_UPPER_ADDR                          0x058
553 #define MV64460_PCI_MSI_MESSAGE_DATA                                0x05c
554 #define MV64460_PCI_X_COMMAND                                       0x060
555 #define MV64460_PCI_X_STATUS                                        0x064
556 #define MV64460_PCI_COMPACT_PCI_HOT_SWAP                            0x068
557
558 /***********************************************/
559 /*   PCI Configuration, Function 1, Registers  */
560 /***********************************************/
561
562 #define MV64460_PCI_SCS_2_BASE_ADDR_LOW                             0x110
563 #define MV64460_PCI_SCS_2_BASE_ADDR_HIGH                            0x114
564 #define MV64460_PCI_SCS_3_BASE_ADDR_LOW                             0x118
565 #define MV64460_PCI_SCS_3_BASE_ADDR_HIGH                            0x11c
566 #define MV64460_PCI_INTERNAL_SRAM_BASE_ADDR_LOW                     0x120
567 #define MV64460_PCI_INTERNAL_SRAM_BASE_ADDR_HIGH                    0x124
568
569 /***********************************************/
570 /*  PCI Configuration, Function 2, Registers   */
571 /***********************************************/
572
573 #define MV64460_PCI_DEVCS_0_BASE_ADDR_LOW                           0x210
574 #define MV64460_PCI_DEVCS_0_BASE_ADDR_HIGH                          0x214
575 #define MV64460_PCI_DEVCS_1_BASE_ADDR_LOW                           0x218
576 #define MV64460_PCI_DEVCS_1_BASE_ADDR_HIGH                          0x21c
577 #define MV64460_PCI_DEVCS_2_BASE_ADDR_LOW                           0x220
578 #define MV64460_PCI_DEVCS_2_BASE_ADDR_HIGH                          0x224
579
580 /***********************************************/
581 /*  PCI Configuration, Function 3, Registers   */
582 /***********************************************/
583
584 #define MV64460_PCI_DEVCS_3_BASE_ADDR_LOW                           0x310
585 #define MV64460_PCI_DEVCS_3_BASE_ADDR_HIGH                          0x314
586 #define MV64460_PCI_BOOT_CS_BASE_ADDR_LOW                           0x318
587 #define MV64460_PCI_BOOT_CS_BASE_ADDR_HIGH                          0x31c
588 #define MV64460_PCI_CPU_BASE_ADDR_LOW                               0x220
589 #define MV64460_PCI_CPU_BASE_ADDR_HIGH                              0x224
590
591 /***********************************************/
592 /*  PCI Configuration, Function 4, Registers   */
593 /***********************************************/
594
595 #define MV64460_PCI_P2P_MEM0_BASE_ADDR_LOW                          0x410
596 #define MV64460_PCI_P2P_MEM0_BASE_ADDR_HIGH                         0x414
597 #define MV64460_PCI_P2P_MEM1_BASE_ADDR_LOW                          0x418
598 #define MV64460_PCI_P2P_MEM1_BASE_ADDR_HIGH                         0x41c
599 #define MV64460_PCI_P2P_I_O_BASE_ADDR                               0x420
600 #define MV64460_PCI_INTERNAL_REGS_I_O_MAPPED_BASE_ADDR              0x424
601
602 /****************************************/
603 /* Messaging Unit Registers (I20)       */
604 /****************************************/
605
606 #define MV64460_I2O_INBOUND_MESSAGE_REG0_PCI_0_SIDE                 0x010
607 #define MV64460_I2O_INBOUND_MESSAGE_REG1_PCI_0_SIDE                 0x014
608 #define MV64460_I2O_OUTBOUND_MESSAGE_REG0_PCI_0_SIDE                0x018
609 #define MV64460_I2O_OUTBOUND_MESSAGE_REG1_PCI_0_SIDE                0x01C
610 #define MV64460_I2O_INBOUND_DOORBELL_REG_PCI_0_SIDE                 0x020
611 #define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_PCI_0_SIDE          0x024
612 #define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_PCI_0_SIDE           0x028
613 #define MV64460_I2O_OUTBOUND_DOORBELL_REG_PCI_0_SIDE                0x02C
614 #define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_PCI_0_SIDE         0x030
615 #define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_PCI_0_SIDE          0x034
616 #define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_0_SIDE       0x040
617 #define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_0_SIDE      0x044
618 #define MV64460_I2O_QUEUE_CONTROL_REG_PCI_0_SIDE                    0x050
619 #define MV64460_I2O_QUEUE_BASE_ADDR_REG_PCI_0_SIDE                  0x054
620 #define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_PCI_0_SIDE        0x060
621 #define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_PCI_0_SIDE        0x064
622 #define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_PCI_0_SIDE        0x068
623 #define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_PCI_0_SIDE        0x06C
624 #define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_PCI_0_SIDE       0x070
625 #define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_PCI_0_SIDE       0x074
626 #define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_PCI_0_SIDE       0x0F8
627 #define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_PCI_0_SIDE       0x0FC
628
629 #define MV64460_I2O_INBOUND_MESSAGE_REG0_PCI_1_SIDE                 0x090
630 #define MV64460_I2O_INBOUND_MESSAGE_REG1_PCI_1_SIDE                 0x094
631 #define MV64460_I2O_OUTBOUND_MESSAGE_REG0_PCI_1_SIDE                0x098
632 #define MV64460_I2O_OUTBOUND_MESSAGE_REG1_PCI_1_SIDE                0x09C
633 #define MV64460_I2O_INBOUND_DOORBELL_REG_PCI_1_SIDE                 0x0A0
634 #define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_PCI_1_SIDE          0x0A4
635 #define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_PCI_1_SIDE           0x0A8
636 #define MV64460_I2O_OUTBOUND_DOORBELL_REG_PCI_1_SIDE                0x0AC
637 #define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_PCI_1_SIDE         0x0B0
638 #define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_PCI_1_SIDE          0x0B4
639 #define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_1_SIDE       0x0C0
640 #define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_1_SIDE      0x0C4
641 #define MV64460_I2O_QUEUE_CONTROL_REG_PCI_1_SIDE                    0x0D0
642 #define MV64460_I2O_QUEUE_BASE_ADDR_REG_PCI_1_SIDE                  0x0D4
643 #define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_PCI_1_SIDE        0x0E0
644 #define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_PCI_1_SIDE        0x0E4
645 #define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_PCI_1_SIDE        0x0E8
646 #define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_PCI_1_SIDE        0x0EC
647 #define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_PCI_1_SIDE       0x0F0
648 #define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_PCI_1_SIDE       0x0F4
649 #define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_PCI_1_SIDE       0x078
650 #define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_PCI_1_SIDE       0x07C
651
652 #define MV64460_I2O_INBOUND_MESSAGE_REG0_CPU0_SIDE                  0x1C10
653 #define MV64460_I2O_INBOUND_MESSAGE_REG1_CPU0_SIDE                  0x1C14
654 #define MV64460_I2O_OUTBOUND_MESSAGE_REG0_CPU0_SIDE                 0x1C18
655 #define MV64460_I2O_OUTBOUND_MESSAGE_REG1_CPU0_SIDE                 0x1C1C
656 #define MV64460_I2O_INBOUND_DOORBELL_REG_CPU0_SIDE                  0x1C20
657 #define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_CPU0_SIDE           0x1C24
658 #define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_CPU0_SIDE            0x1C28
659 #define MV64460_I2O_OUTBOUND_DOORBELL_REG_CPU0_SIDE                 0x1C2C
660 #define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_CPU0_SIDE          0x1C30
661 #define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_CPU0_SIDE           0x1C34
662 #define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_CPU0_SIDE        0x1C40
663 #define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_CPU0_SIDE       0x1C44
664 #define MV64460_I2O_QUEUE_CONTROL_REG_CPU0_SIDE                     0x1C50
665 #define MV64460_I2O_QUEUE_BASE_ADDR_REG_CPU0_SIDE                   0x1C54
666 #define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_CPU0_SIDE         0x1C60
667 #define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_CPU0_SIDE         0x1C64
668 #define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_CPU0_SIDE         0x1C68
669 #define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_CPU0_SIDE         0x1C6C
670 #define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_CPU0_SIDE        0x1C70
671 #define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_CPU0_SIDE        0x1C74
672 #define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_CPU0_SIDE        0x1CF8
673 #define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_CPU0_SIDE        0x1CFC
674 #define MV64460_I2O_INBOUND_MESSAGE_REG0_CPU1_SIDE                  0x1C90
675 #define MV64460_I2O_INBOUND_MESSAGE_REG1_CPU1_SIDE                  0x1C94
676 #define MV64460_I2O_OUTBOUND_MESSAGE_REG0_CPU1_SIDE                 0x1C98
677 #define MV64460_I2O_OUTBOUND_MESSAGE_REG1_CPU1_SIDE                 0x1C9C
678 #define MV64460_I2O_INBOUND_DOORBELL_REG_CPU1_SIDE                  0x1CA0
679 #define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_CPU1_SIDE           0x1CA4
680 #define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_CPU1_SIDE            0x1CA8
681 #define MV64460_I2O_OUTBOUND_DOORBELL_REG_CPU1_SIDE                 0x1CAC
682 #define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_CPU1_SIDE          0x1CB0
683 #define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_CPU1_SIDE           0x1CB4
684 #define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_CPU1_SIDE        0x1CC0
685 #define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_CPU1_SIDE       0x1CC4
686 #define MV64460_I2O_QUEUE_CONTROL_REG_CPU1_SIDE                     0x1CD0
687 #define MV64460_I2O_QUEUE_BASE_ADDR_REG_CPU1_SIDE                   0x1CD4
688 #define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_CPU1_SIDE         0x1CE0
689 #define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_CPU1_SIDE         0x1CE4
690 #define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_CPU1_SIDE         0x1CE8
691 #define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_CPU1_SIDE         0x1CEC
692 #define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_CPU1_SIDE        0x1CF0
693 #define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_CPU1_SIDE        0x1CF4
694 #define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_CPU1_SIDE        0x1C78
695 #define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_CPU1_SIDE        0x1C7C
696
697 /****************************************/
698 /*        Ethernet Unit Registers               */
699 /****************************************/
700
701 #define MV64460_ETH_PHY_ADDR_REG                                    0x2000
702 #define MV64460_ETH_SMI_REG                                         0x2004
703 #define MV64460_ETH_UNIT_DEFAULT_ADDR_REG                           0x2008
704 #define MV64460_ETH_UNIT_DEFAULTID_REG                              0x200c
705 #define MV64460_ETH_UNIT_INTERRUPT_CAUSE_REG                        0x2080
706 #define MV64460_ETH_UNIT_INTERRUPT_MASK_REG                         0x2084
707 #define MV64460_ETH_UNIT_INTERNAL_USE_REG                           0x24fc
708 #define MV64460_ETH_UNIT_ERROR_ADDR_REG                             0x2094
709 #define MV64460_ETH_BAR_0                                           0x2200
710 #define MV64460_ETH_BAR_1                                           0x2208
711 #define MV64460_ETH_BAR_2                                           0x2210
712 #define MV64460_ETH_BAR_3                                           0x2218
713 #define MV64460_ETH_BAR_4                                           0x2220
714 #define MV64460_ETH_BAR_5                                           0x2228
715 #define MV64460_ETH_SIZE_REG_0                                      0x2204
716 #define MV64460_ETH_SIZE_REG_1                                      0x220c
717 #define MV64460_ETH_SIZE_REG_2                                      0x2214
718 #define MV64460_ETH_SIZE_REG_3                                      0x221c
719 #define MV64460_ETH_SIZE_REG_4                                      0x2224
720 #define MV64460_ETH_SIZE_REG_5                                      0x222c
721 #define MV64460_ETH_HEADERS_RETARGET_BASE_REG                       0x2230
722 #define MV64460_ETH_HEADERS_RETARGET_CONTROL_REG                    0x2234
723 #define MV64460_ETH_HIGH_ADDR_REMAP_REG_0                           0x2280
724 #define MV64460_ETH_HIGH_ADDR_REMAP_REG_1                           0x2284
725 #define MV64460_ETH_HIGH_ADDR_REMAP_REG_2                           0x2288
726 #define MV64460_ETH_HIGH_ADDR_REMAP_REG_3                           0x228c
727 #define MV64460_ETH_BASE_ADDR_ENABLE_REG                            0x2290
728 #define MV64460_ETH_ACCESS_PROTECTION_REG(port)                    (0x2294 + (port<<2))
729 #define MV64460_ETH_MIB_COUNTERS_BASE(port)                        (0x3000 + (port<<7))
730 #define MV64460_ETH_PORT_CONFIG_REG(port)                          (0x2400 + (port<<10))
731 #define MV64460_ETH_PORT_CONFIG_EXTEND_REG(port)                   (0x2404 + (port<<10))
732 #define MV64460_ETH_MII_SERIAL_PARAMETRS_REG(port)                 (0x2408 + (port<<10))
733 #define MV64460_ETH_GMII_SERIAL_PARAMETRS_REG(port)                (0x240c + (port<<10))
734 #define MV64460_ETH_VLAN_ETHERTYPE_REG(port)                       (0x2410 + (port<<10))
735 #define MV64460_ETH_MAC_ADDR_LOW(port)                             (0x2414 + (port<<10))
736 #define MV64460_ETH_MAC_ADDR_HIGH(port)                            (0x2418 + (port<<10))
737 #define MV64460_ETH_SDMA_CONFIG_REG(port)                          (0x241c + (port<<10))
738 #define MV64460_ETH_DSCP_0(port)                                   (0x2420 + (port<<10))
739 #define MV64460_ETH_DSCP_1(port)                                   (0x2424 + (port<<10))
740 #define MV64460_ETH_DSCP_2(port)                                   (0x2428 + (port<<10))
741 #define MV64460_ETH_DSCP_3(port)                                   (0x242c + (port<<10))
742 #define MV64460_ETH_DSCP_4(port)                                   (0x2430 + (port<<10))
743 #define MV64460_ETH_DSCP_5(port)                                   (0x2434 + (port<<10))
744 #define MV64460_ETH_DSCP_6(port)                                   (0x2438 + (port<<10))
745 #define MV64460_ETH_PORT_SERIAL_CONTROL_REG(port)                  (0x243c + (port<<10))
746 #define MV64460_ETH_VLAN_PRIORITY_TAG_TO_PRIORITY(port)            (0x2440 + (port<<10))
747 #define MV64460_ETH_PORT_STATUS_REG(port)                          (0x2444 + (port<<10))
748 #define MV64460_ETH_TRANSMIT_QUEUE_COMMAND_REG(port)               (0x2448 + (port<<10))
749 #define MV64460_ETH_TX_QUEUE_FIXED_PRIORITY(port)                  (0x244c + (port<<10))
750 #define MV64460_ETH_PORT_TX_TOKEN_BUCKET_RATE_CONFIG(port)         (0x2450 + (port<<10))
751 #define MV64460_ETH_MAXIMUM_TRANSMIT_UNIT(port)                    (0x2458 + (port<<10))
752 #define MV64460_ETH_PORT_MAXIMUM_TOKEN_BUCKET_SIZE(port)           (0x245c + (port<<10))
753 #define MV64460_ETH_INTERRUPT_CAUSE_REG(port)                      (0x2460 + (port<<10))
754 #define MV64460_ETH_INTERRUPT_CAUSE_EXTEND_REG(port)               (0x2464 + (port<<10))
755 #define MV64460_ETH_INTERRUPT_MASK_REG(port)                       (0x2468 + (port<<10))
756 #define MV64460_ETH_INTERRUPT_EXTEND_MASK_REG(port)                (0x246c + (port<<10))
757 #define MV64460_ETH_RX_FIFO_URGENT_THRESHOLD_REG(port)             (0x2470 + (port<<10))
758 #define MV64460_ETH_TX_FIFO_URGENT_THRESHOLD_REG(port)             (0x2474 + (port<<10))
759 #define MV64460_ETH_RX_MINIMAL_FRAME_SIZE_REG(port)                (0x247c + (port<<10))
760 #define MV64460_ETH_RX_DISCARDED_FRAMES_COUNTER(port)              (0x2484 + (port<<10)
761 #define MV64460_ETH_PORT_DEBUG_0_REG(port)                         (0x248c + (port<<10))
762 #define MV64460_ETH_PORT_DEBUG_1_REG(port)                         (0x2490 + (port<<10))
763 #define MV64460_ETH_PORT_INTERNAL_ADDR_ERROR_REG(port)             (0x2494 + (port<<10))
764 #define MV64460_ETH_INTERNAL_USE_REG(port)                         (0x24fc + (port<<10))
765 #define MV64460_ETH_RECEIVE_QUEUE_COMMAND_REG(port)                (0x2680 + (port<<10))
766 #define MV64460_ETH_CURRENT_SERVED_TX_DESC_PTR(port)               (0x2684 + (port<<10))
767 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_0(port)              (0x260c + (port<<10))
768 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_1(port)              (0x261c + (port<<10))
769 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_2(port)              (0x262c + (port<<10))
770 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_3(port)              (0x263c + (port<<10))
771 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_4(port)              (0x264c + (port<<10))
772 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_5(port)              (0x265c + (port<<10))
773 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_6(port)              (0x266c + (port<<10))
774 #define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_7(port)              (0x267c + (port<<10))
775 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_0(port)              (0x26c0 + (port<<10))
776 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_1(port)              (0x26c4 + (port<<10))
777 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_2(port)              (0x26c8 + (port<<10))
778 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_3(port)              (0x26cc + (port<<10))
779 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_4(port)              (0x26d0 + (port<<10))
780 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_5(port)              (0x26d4 + (port<<10))
781 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_6(port)              (0x26d8 + (port<<10))
782 #define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_7(port)              (0x26dc + (port<<10))
783 #define MV64460_ETH_TX_QUEUE_0_TOKEN_BUCKET_COUNT(port)            (0x2700 + (port<<10))
784 #define MV64460_ETH_TX_QUEUE_1_TOKEN_BUCKET_COUNT(port)            (0x2710 + (port<<10))
785 #define MV64460_ETH_TX_QUEUE_2_TOKEN_BUCKET_COUNT(port)            (0x2720 + (port<<10))
786 #define MV64460_ETH_TX_QUEUE_3_TOKEN_BUCKET_COUNT(port)            (0x2730 + (port<<10))
787 #define MV64460_ETH_TX_QUEUE_4_TOKEN_BUCKET_COUNT(port)            (0x2740 + (port<<10))
788 #define MV64460_ETH_TX_QUEUE_5_TOKEN_BUCKET_COUNT(port)            (0x2750 + (port<<10))
789 #define MV64460_ETH_TX_QUEUE_6_TOKEN_BUCKET_COUNT(port)            (0x2760 + (port<<10))
790 #define MV64460_ETH_TX_QUEUE_7_TOKEN_BUCKET_COUNT(port)            (0x2770 + (port<<10))
791 #define MV64460_ETH_TX_QUEUE_0_TOKEN_BUCKET_CONFIG(port)           (0x2704 + (port<<10))
792 #define MV64460_ETH_TX_QUEUE_1_TOKEN_BUCKET_CONFIG(port)           (0x2714 + (port<<10))
793 #define MV64460_ETH_TX_QUEUE_2_TOKEN_BUCKET_CONFIG(port)           (0x2724 + (port<<10))
794 #define MV64460_ETH_TX_QUEUE_3_TOKEN_BUCKET_CONFIG(port)           (0x2734 + (port<<10))
795 #define MV64460_ETH_TX_QUEUE_4_TOKEN_BUCKET_CONFIG(port)           (0x2744 + (port<<10))
796 #define MV64460_ETH_TX_QUEUE_5_TOKEN_BUCKET_CONFIG(port)           (0x2754 + (port<<10))
797 #define MV64460_ETH_TX_QUEUE_6_TOKEN_BUCKET_CONFIG(port)           (0x2764 + (port<<10))
798 #define MV64460_ETH_TX_QUEUE_7_TOKEN_BUCKET_CONFIG(port)           (0x2774 + (port<<10))
799 #define MV64460_ETH_TX_QUEUE_0_ARBITER_CONFIG(port)                (0x2708 + (port<<10))
800 #define MV64460_ETH_TX_QUEUE_1_ARBITER_CONFIG(port)                (0x2718 + (port<<10))
801 #define MV64460_ETH_TX_QUEUE_2_ARBITER_CONFIG(port)                (0x2728 + (port<<10))
802 #define MV64460_ETH_TX_QUEUE_3_ARBITER_CONFIG(port)                (0x2738 + (port<<10))
803 #define MV64460_ETH_TX_QUEUE_4_ARBITER_CONFIG(port)                (0x2748 + (port<<10))
804 #define MV64460_ETH_TX_QUEUE_5_ARBITER_CONFIG(port)                (0x2758 + (port<<10))
805 #define MV64460_ETH_TX_QUEUE_6_ARBITER_CONFIG(port)                (0x2768 + (port<<10))
806 #define MV64460_ETH_TX_QUEUE_7_ARBITER_CONFIG(port)                (0x2778 + (port<<10))
807 #define MV64460_ETH_PORT_TX_TOKEN_BUCKET_COUNT(port)               (0x2780 + (port<<10))
808 #define MV64460_ETH_DA_FILTER_SPECIAL_MULTICAST_TABLE_BASE(port)   (0x3400 + (port<<10))
809 #define MV64460_ETH_DA_FILTER_OTHER_MULTICAST_TABLE_BASE(port)     (0x3500 + (port<<10))
810 #define MV64460_ETH_DA_FILTER_UNICAST_TABLE_BASE(port)             (0x3600 + (port<<10))
811
812 /*******************************************/
813 /*          CUNIT  Registers               */
814 /*******************************************/
815
816          /* Address Decoding Register Map */
817
818 #define MV64460_CUNIT_BASE_ADDR_REG0                                0xf200
819 #define MV64460_CUNIT_BASE_ADDR_REG1                                0xf208
820 #define MV64460_CUNIT_BASE_ADDR_REG2                                0xf210
821 #define MV64460_CUNIT_BASE_ADDR_REG3                                0xf218
822 #define MV64460_CUNIT_SIZE0                                         0xf204
823 #define MV64460_CUNIT_SIZE1                                         0xf20c
824 #define MV64460_CUNIT_SIZE2                                         0xf214
825 #define MV64460_CUNIT_SIZE3                                         0xf21c
826 #define MV64460_CUNIT_HIGH_ADDR_REMAP_REG0                          0xf240
827 #define MV64460_CUNIT_HIGH_ADDR_REMAP_REG1                          0xf244
828 #define MV64460_CUNIT_BASE_ADDR_ENABLE_REG                          0xf250
829 #define MV64460_MPSC0_ACCESS_PROTECTION_REG                         0xf254
830 #define MV64460_MPSC1_ACCESS_PROTECTION_REG                         0xf258
831 #define MV64460_CUNIT_INTERNAL_SPACE_BASE_ADDR_REG                  0xf25C
832
833         /*  Error Report Registers  */
834
835 #define MV64460_CUNIT_INTERRUPT_CAUSE_REG                           0xf310
836 #define MV64460_CUNIT_INTERRUPT_MASK_REG                            0xf314
837 #define MV64460_CUNIT_ERROR_ADDR                                    0xf318
838
839         /*  Cunit Control Registers */
840
841 #define MV64460_CUNIT_ARBITER_CONTROL_REG                           0xf300
842 #define MV64460_CUNIT_CONFIG_REG                                    0xb40c
843 #define MV64460_CUNIT_CRROSBAR_TIMEOUT_REG                          0xf304
844
845         /*  Cunit Debug Registers   */
846
847 #define MV64460_CUNIT_DEBUG_LOW                                     0xf340
848 #define MV64460_CUNIT_DEBUG_HIGH                                    0xf344
849 #define MV64460_CUNIT_MMASK                                         0xf380
850
851         /*  Cunit Base Address Enable Window Bits*/
852 #define MV64460_CUNIT_BASE_ADDR_WIN_0_BIT                        0x0
853 #define MV64460_CUNIT_BASE_ADDR_WIN_1_BIT                        0x1
854 #define MV64460_CUNIT_BASE_ADDR_WIN_2_BIT                        0x2
855 #define MV64460_CUNIT_BASE_ADDR_WIN_3_BIT                        0x3
856
857         /*  MPSCs Clocks Routing Registers  */
858
859 #define MV64460_MPSC_ROUTING_REG                                    0xb400
860 #define MV64460_MPSC_RX_CLOCK_ROUTING_REG                           0xb404
861 #define MV64460_MPSC_TX_CLOCK_ROUTING_REG                           0xb408
862
863         /*  MPSCs Interrupts Registers    */
864
865 #define MV64460_MPSC_CAUSE_REG(port)                               (0xb804 + (port<<3))
866 #define MV64460_MPSC_MASK_REG(port)                                (0xb884 + (port<<3))
867
868 #define MV64460_MPSC_MAIN_CONFIG_LOW(port)                         (0x8000 + (port<<12))
869 #define MV64460_MPSC_MAIN_CONFIG_HIGH(port)                        (0x8004 + (port<<12))
870 #define MV64460_MPSC_PROTOCOL_CONFIG(port)                         (0x8008 + (port<<12))
871 #define MV64460_MPSC_CHANNEL_REG1(port)                            (0x800c + (port<<12))
872 #define MV64460_MPSC_CHANNEL_REG2(port)                            (0x8010 + (port<<12))
873 #define MV64460_MPSC_CHANNEL_REG3(port)                            (0x8014 + (port<<12))
874 #define MV64460_MPSC_CHANNEL_REG4(port)                            (0x8018 + (port<<12))
875 #define MV64460_MPSC_CHANNEL_REG5(port)                            (0x801c + (port<<12))
876 #define MV64460_MPSC_CHANNEL_REG6(port)                            (0x8020 + (port<<12))
877 #define MV64460_MPSC_CHANNEL_REG7(port)                            (0x8024 + (port<<12))
878 #define MV64460_MPSC_CHANNEL_REG8(port)                            (0x8028 + (port<<12))
879 #define MV64460_MPSC_CHANNEL_REG9(port)                            (0x802c + (port<<12))
880 #define MV64460_MPSC_CHANNEL_REG10(port)                           (0x8030 + (port<<12))
881
882         /*  MPSC0 Registers      */
883
884
885 /***************************************/
886 /*          SDMA Registers             */
887 /***************************************/
888
889 #define MV64460_SDMA_CONFIG_REG(channel)                        (0x4000 + (channel<<13))
890 #define MV64460_SDMA_COMMAND_REG(channel)                       (0x4008 + (channel<<13))
891 #define MV64460_SDMA_CURRENT_RX_DESCRIPTOR_POINTER(channel)     (0x4810 + (channel<<13))
892 #define MV64460_SDMA_CURRENT_TX_DESCRIPTOR_POINTER(channel)     (0x4c10 + (channel<<13))
893 #define MV64460_SDMA_FIRST_TX_DESCRIPTOR_POINTER(channel)       (0x4c14 + (channel<<13))
894
895 #define MV64460_SDMA_CAUSE_REG                                      0xb800
896 #define MV64460_SDMA_MASK_REG                                       0xb880
897
898
899 /****************************************/
900 /* SDMA Address Space Targets           */
901 /****************************************/
902
903 #define MV64460_SDMA_DRAM_CS_0_TARGET                               0x0e00
904 #define MV64460_SDMA_DRAM_CS_1_TARGET                               0x0d00
905 #define MV64460_SDMA_DRAM_CS_2_TARGET                               0x0b00
906 #define MV64460_SDMA_DRAM_CS_3_TARGET                               0x0700
907
908 #define MV64460_SDMA_DEV_CS_0_TARGET                                0x1e01
909 #define MV64460_SDMA_DEV_CS_1_TARGET                                0x1d01
910 #define MV64460_SDMA_DEV_CS_2_TARGET                                0x1b01
911 #define MV64460_SDMA_DEV_CS_3_TARGET                                0x1701
912
913 #define MV64460_SDMA_BOOT_CS_TARGET                                 0x0f00
914
915 #define MV64460_SDMA_SRAM_TARGET                                    0x0003
916 #define MV64460_SDMA_60X_BUS_TARGET                                 0x4003
917
918 #define MV64460_PCI_0_TARGET                                        0x0003
919 #define MV64460_PCI_1_TARGET                                        0x0004
920
921
922 /* Devices BAR and size registers */
923
924 #define MV64460_DEV_CS0_BASE_ADDR                                   0x028
925 #define MV64460_DEV_CS0_SIZE                                        0x030
926 #define MV64460_DEV_CS1_BASE_ADDR                                   0x228
927 #define MV64460_DEV_CS1_SIZE                                        0x230
928 #define MV64460_DEV_CS2_BASE_ADDR                                   0x248
929 #define MV64460_DEV_CS2_SIZE                                        0x250
930 #define MV64460_DEV_CS3_BASE_ADDR                                   0x038
931 #define MV64460_DEV_CS3_SIZE                                        0x040
932 #define MV64460_BOOTCS_BASE_ADDR                                    0x238
933 #define MV64460_BOOTCS_SIZE                                         0x240
934
935 /* SDMA Window access protection */
936 #define MV64460_SDMA_WIN_ACCESS_NOT_ALLOWED 0
937 #define MV64460_SDMA_WIN_ACCESS_READ_ONLY 1
938 #define MV64460_SDMA_WIN_ACCESS_FULL 2
939
940 /* BRG Interrupts */
941
942 #define MV64460_BRG_CONFIG_REG(brg)                              (0xb200 + (brg<<3))
943 #define MV64460_BRG_BAUDE_TUNING_REG(brg)                        (0xb204 + (brg<<3))
944 #define MV64460_BRG_CAUSE_REG                                       0xb834
945 #define MV64460_BRG_MASK_REG                                        0xb8b4
946
947 /****************************************/
948 /* DMA Channel Control                  */
949 /****************************************/
950
951 #define MV64460_DMA_CHANNEL0_CONTROL                                0x840
952 #define MV64460_DMA_CHANNEL0_CONTROL_HIGH                           0x880
953 #define MV64460_DMA_CHANNEL1_CONTROL                                0x844
954 #define MV64460_DMA_CHANNEL1_CONTROL_HIGH                           0x884
955 #define MV64460_DMA_CHANNEL2_CONTROL                                0x848
956 #define MV64460_DMA_CHANNEL2_CONTROL_HIGH                           0x888
957 #define MV64460_DMA_CHANNEL3_CONTROL                                0x84C
958 #define MV64460_DMA_CHANNEL3_CONTROL_HIGH                           0x88C
959
960
961 /****************************************/
962 /*           IDMA Registers             */
963 /****************************************/
964
965 #define MV64460_DMA_CHANNEL0_BYTE_COUNT                             0x800
966 #define MV64460_DMA_CHANNEL1_BYTE_COUNT                             0x804
967 #define MV64460_DMA_CHANNEL2_BYTE_COUNT                             0x808
968 #define MV64460_DMA_CHANNEL3_BYTE_COUNT                             0x80C
969 #define MV64460_DMA_CHANNEL0_SOURCE_ADDR                            0x810
970 #define MV64460_DMA_CHANNEL1_SOURCE_ADDR                            0x814
971 #define MV64460_DMA_CHANNEL2_SOURCE_ADDR                            0x818
972 #define MV64460_DMA_CHANNEL3_SOURCE_ADDR                            0x81c
973 #define MV64460_DMA_CHANNEL0_DESTINATION_ADDR                       0x820
974 #define MV64460_DMA_CHANNEL1_DESTINATION_ADDR                       0x824
975 #define MV64460_DMA_CHANNEL2_DESTINATION_ADDR                       0x828
976 #define MV64460_DMA_CHANNEL3_DESTINATION_ADDR                       0x82C
977 #define MV64460_DMA_CHANNEL0_NEXT_DESCRIPTOR_POINTER                0x830
978 #define MV64460_DMA_CHANNEL1_NEXT_DESCRIPTOR_POINTER                0x834
979 #define MV64460_DMA_CHANNEL2_NEXT_DESCRIPTOR_POINTER                0x838
980 #define MV64460_DMA_CHANNEL3_NEXT_DESCRIPTOR_POINTER                0x83C
981 #define MV64460_DMA_CHANNEL0_CURRENT_DESCRIPTOR_POINTER             0x870
982 #define MV64460_DMA_CHANNEL1_CURRENT_DESCRIPTOR_POINTER             0x874
983 #define MV64460_DMA_CHANNEL2_CURRENT_DESCRIPTOR_POINTER             0x878
984 #define MV64460_DMA_CHANNEL3_CURRENT_DESCRIPTOR_POINTER             0x87C
985
986  /*  IDMA Address Decoding Base Address Registers  */
987
988 #define MV64460_DMA_BASE_ADDR_REG0                                  0xa00
989 #define MV64460_DMA_BASE_ADDR_REG1                                  0xa08
990 #define MV64460_DMA_BASE_ADDR_REG2                                  0xa10
991 #define MV64460_DMA_BASE_ADDR_REG3                                  0xa18
992 #define MV64460_DMA_BASE_ADDR_REG4                                  0xa20
993 #define MV64460_DMA_BASE_ADDR_REG5                                  0xa28
994 #define MV64460_DMA_BASE_ADDR_REG6                                  0xa30
995 #define MV64460_DMA_BASE_ADDR_REG7                                  0xa38
996
997  /*  IDMA Address Decoding Size Address Register   */
998
999 #define MV64460_DMA_SIZE_REG0                                       0xa04
1000 #define MV64460_DMA_SIZE_REG1                                       0xa0c
1001 #define MV64460_DMA_SIZE_REG2                                       0xa14
1002 #define MV64460_DMA_SIZE_REG3                                       0xa1c
1003 #define MV64460_DMA_SIZE_REG4                                       0xa24
1004 #define MV64460_DMA_SIZE_REG5                                       0xa2c
1005 #define MV64460_DMA_SIZE_REG6                                       0xa34
1006 #define MV64460_DMA_SIZE_REG7                                       0xa3C
1007
1008  /* IDMA Address Decoding High Address Remap and Access
1009                   Protection Registers                    */
1010
1011 #define MV64460_DMA_HIGH_ADDR_REMAP_REG0                            0xa60
1012 #define MV64460_DMA_HIGH_ADDR_REMAP_REG1                            0xa64
1013 #define MV64460_DMA_HIGH_ADDR_REMAP_REG2                            0xa68
1014 #define MV64460_DMA_HIGH_ADDR_REMAP_REG3                            0xa6C
1015 #define MV64460_DMA_BASE_ADDR_ENABLE_REG                            0xa80
1016 #define MV64460_DMA_CHANNEL0_ACCESS_PROTECTION_REG                  0xa70
1017 #define MV64460_DMA_CHANNEL1_ACCESS_PROTECTION_REG                  0xa74
1018 #define MV64460_DMA_CHANNEL2_ACCESS_PROTECTION_REG                  0xa78
1019 #define MV64460_DMA_CHANNEL3_ACCESS_PROTECTION_REG                  0xa7c
1020 #define MV64460_DMA_ARBITER_CONTROL                                 0x860
1021 #define MV64460_DMA_CROSS_BAR_TIMEOUT                               0x8d0
1022
1023  /*  IDMA Headers Retarget Registers   */
1024
1025 #define MV64460_DMA_HEADERS_RETARGET_CONTROL                        0xa84
1026 #define MV64460_DMA_HEADERS_RETARGET_BASE                           0xa88
1027
1028  /*  IDMA Interrupt Register  */
1029
1030 #define MV64460_DMA_INTERRUPT_CAUSE_REG                             0x8c0
1031 #define MV64460_DMA_INTERRUPT_CAUSE_MASK                            0x8c4
1032 #define MV64460_DMA_ERROR_ADDR                                      0x8c8
1033 #define MV64460_DMA_ERROR_SELECT                                    0x8cc
1034
1035  /*  IDMA Debug Register ( for internal use )    */
1036
1037 #define MV64460_DMA_DEBUG_LOW                                       0x8e0
1038 #define MV64460_DMA_DEBUG_HIGH                                      0x8e4
1039 #define MV64460_DMA_SPARE                                           0xA8C
1040
1041 /****************************************/
1042 /* Timer_Counter                        */
1043 /****************************************/
1044
1045 #define MV64460_TIMER_COUNTER0                                      0x850
1046 #define MV64460_TIMER_COUNTER1                                      0x854
1047 #define MV64460_TIMER_COUNTER2                                      0x858
1048 #define MV64460_TIMER_COUNTER3                                      0x85C
1049 #define MV64460_TIMER_COUNTER_0_3_CONTROL                           0x864
1050 #define MV64460_TIMER_COUNTER_0_3_INTERRUPT_CAUSE                   0x868
1051 #define MV64460_TIMER_COUNTER_0_3_INTERRUPT_MASK                    0x86c
1052
1053 /****************************************/
1054 /*         Watchdog registers           */
1055 /****************************************/
1056
1057 #define MV64460_WATCHDOG_CONFIG_REG                                 0xb410
1058 #define MV64460_WATCHDOG_VALUE_REG                                  0xb414
1059
1060 /****************************************/
1061 /* I2C Registers                        */
1062 /****************************************/
1063
1064 #define MV64460_I2C_SLAVE_ADDR                                      0xc000
1065 #define MV64460_I2C_EXTENDED_SLAVE_ADDR                             0xc010
1066 #define MV64460_I2C_DATA                                            0xc004
1067 #define MV64460_I2C_CONTROL                                         0xc008
1068 #define MV64460_I2C_STATUS_BAUDE_RATE                               0xc00C
1069 #define MV64460_I2C_SOFT_RESET                                      0xc01c
1070
1071 /****************************************/
1072 /* GPP Interface Registers              */
1073 /****************************************/
1074
1075 #define MV64460_GPP_IO_CONTROL                                      0xf100
1076 #define MV64460_GPP_LEVEL_CONTROL                                   0xf110
1077 #define MV64460_GPP_VALUE                                           0xf104
1078 #define MV64460_GPP_INTERRUPT_CAUSE                                 0xf108
1079 #define MV64460_GPP_INTERRUPT_MASK0                                 0xf10c
1080 #define MV64460_GPP_INTERRUPT_MASK1                                 0xf114
1081 #define MV64460_GPP_VALUE_SET                                       0xf118
1082 #define MV64460_GPP_VALUE_CLEAR                                     0xf11c
1083
1084 /****************************************/
1085 /* Interrupt Controller Registers       */
1086 /****************************************/
1087
1088 /****************************************/
1089 /* Interrupts                           */
1090 /****************************************/
1091
1092 #define MV64460_MAIN_INTERRUPT_CAUSE_LOW                            0x004
1093 #define MV64460_MAIN_INTERRUPT_CAUSE_HIGH                           0x00c
1094 #define MV64460_CPU_INTERRUPT0_MASK_LOW                             0x014
1095 #define MV64460_CPU_INTERRUPT0_MASK_HIGH                            0x01c
1096 #define MV64460_CPU_INTERRUPT0_SELECT_CAUSE                         0x024
1097 #define MV64460_CPU_INTERRUPT1_MASK_LOW                             0x034
1098 #define MV64460_CPU_INTERRUPT1_MASK_HIGH                            0x03c
1099 #define MV64460_CPU_INTERRUPT1_SELECT_CAUSE                         0x044
1100 #define MV64460_INTERRUPT0_MASK_0_LOW                               0x054
1101 #define MV64460_INTERRUPT0_MASK_0_HIGH                              0x05c
1102 #define MV64460_INTERRUPT0_SELECT_CAUSE                             0x064
1103 #define MV64460_INTERRUPT1_MASK_0_LOW                               0x074
1104 #define MV64460_INTERRUPT1_MASK_0_HIGH                              0x07c
1105 #define MV64460_INTERRUPT1_SELECT_CAUSE                             0x084
1106
1107 /****************************************/
1108 /*      MPP Interface Registers         */
1109 /****************************************/
1110
1111 #define MV64460_MPP_CONTROL0                                        0xf000
1112 #define MV64460_MPP_CONTROL1                                        0xf004
1113 #define MV64460_MPP_CONTROL2                                        0xf008
1114 #define MV64460_MPP_CONTROL3                                        0xf00c
1115
1116 /****************************************/
1117 /*    Serial Initialization registers   */
1118 /****************************************/
1119
1120 #define MV64460_SERIAL_INIT_LAST_DATA                               0xf324
1121 #define MV64460_SERIAL_INIT_CONTROL                                 0xf328
1122 #define MV64460_SERIAL_INIT_STATUS                                  0xf32c
1123
1124
1125 #endif /* __INCgt64460rh */