2 * include/asm-ppc/mpc5xxx.h
4 * Prototypes, etc. for the Motorola MGT5xxx/MPC5xxx
7 * 2003 (c) MontaVista, Software, Inc.
8 * Author: Dale Farnsworth <dfarnsworth@mvista.com>
10 * 2003 (C) Wolfgang Denk, DENX Software Engineering, wd@denx.de.
12 * See file CREDITS for list of people who contributed to this
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30 #ifndef __ASMPPC_MPC5XXX_H
31 #define __ASMPPC_MPC5XXX_H
34 #if defined(CONFIG_MPC5200)
35 #define CPU_ID_STR "MPC5200"
36 #elif defined(CONFIG_MGT5100)
37 #define CPU_ID_STR "MGT5100"
40 /* Exception offsets (PowerPC standard) */
41 #define EXC_OFF_SYS_RESET 0x0100
43 /* useful macros for manipulating CSx_START/STOP */
44 #if defined(CONFIG_MGT5100)
45 #define START_REG(start) ((start) >> 15)
46 #define STOP_REG(start, size) (((start) + (size) - 1) >> 15)
47 #elif defined(CONFIG_MPC5200)
48 #define START_REG(start) ((start) >> 16)
49 #define STOP_REG(start, size) (((start) + (size) - 1) >> 16)
52 /* Internal memory map */
54 #define MPC5XXX_CS0_START (CFG_MBAR + 0x0004)
55 #define MPC5XXX_CS0_STOP (CFG_MBAR + 0x0008)
56 #define MPC5XXX_CS1_START (CFG_MBAR + 0x000c)
57 #define MPC5XXX_CS1_STOP (CFG_MBAR + 0x0010)
58 #define MPC5XXX_CS2_START (CFG_MBAR + 0x0014)
59 #define MPC5XXX_CS2_STOP (CFG_MBAR + 0x0018)
60 #define MPC5XXX_CS3_START (CFG_MBAR + 0x001c)
61 #define MPC5XXX_CS3_STOP (CFG_MBAR + 0x0020)
62 #define MPC5XXX_CS4_START (CFG_MBAR + 0x0024)
63 #define MPC5XXX_CS4_STOP (CFG_MBAR + 0x0028)
64 #define MPC5XXX_CS5_START (CFG_MBAR + 0x002c)
65 #define MPC5XXX_CS5_STOP (CFG_MBAR + 0x0030)
66 #define MPC5XXX_BOOTCS_START (CFG_MBAR + 0x004c)
67 #define MPC5XXX_BOOTCS_STOP (CFG_MBAR + 0x0050)
68 #define MPC5XXX_ADDECR (CFG_MBAR + 0x0054)
70 #if defined(CONFIG_MGT5100)
71 #define MPC5XXX_SDRAM_START (CFG_MBAR + 0x0034)
72 #define MPC5XXX_SDRAM_STOP (CFG_MBAR + 0x0038)
73 #define MPC5XXX_PCI1_START (CFG_MBAR + 0x003c)
74 #define MPC5XXX_PCI1_STOP (CFG_MBAR + 0x0040)
75 #define MPC5XXX_PCI2_START (CFG_MBAR + 0x0044)
76 #define MPC5XXX_PCI2_STOP (CFG_MBAR + 0x0048)
77 #elif defined(CONFIG_MPC5200)
78 #define MPC5XXX_CS6_START (CFG_MBAR + 0x0058)
79 #define MPC5XXX_CS6_STOP (CFG_MBAR + 0x005c)
80 #define MPC5XXX_CS7_START (CFG_MBAR + 0x0060)
81 #define MPC5XXX_CS7_STOP (CFG_MBAR + 0x0064)
82 #define MPC5XXX_SDRAM_CS0CFG (CFG_MBAR + 0x0034)
83 #define MPC5XXX_SDRAM_CS1CFG (CFG_MBAR + 0x0038)
86 #define MPC5XXX_SDRAM (CFG_MBAR + 0x0100)
87 #define MPC5XXX_CDM (CFG_MBAR + 0x0200)
88 #define MPC5XXX_LPB (CFG_MBAR + 0x0300)
89 #define MPC5XXX_ICTL (CFG_MBAR + 0x0500)
90 #define MPC5XXX_GPT (CFG_MBAR + 0x0600)
91 #define MPC5XXX_GPIO (CFG_MBAR + 0x0b00)
92 #define MPC5XXX_PCI (CFG_MBAR + 0x0d00)
93 #define MPC5XXX_SDMA (CFG_MBAR + 0x1200)
94 #define MPC5XXX_XLBARB (CFG_MBAR + 0x1f00)
96 #if defined(CONFIG_MGT5100)
97 #define MPC5XXX_PSC1 (CFG_MBAR + 0x2000)
98 #define MPC5XXX_PSC2 (CFG_MBAR + 0x2400)
99 #define MPC5XXX_PSC3 (CFG_MBAR + 0x2800)
100 #elif defined(CONFIG_MPC5200)
101 #define MPC5XXX_PSC1 (CFG_MBAR + 0x2000)
102 #define MPC5XXX_PSC2 (CFG_MBAR + 0x2200)
103 #define MPC5XXX_PSC3 (CFG_MBAR + 0x2400)
104 #define MPC5XXX_PSC4 (CFG_MBAR + 0x2600)
105 #define MPC5XXX_PSC5 (CFG_MBAR + 0x2800)
106 #define MPC5XXX_PSC6 (CFG_MBAR + 0x2c00)
109 #define MPC5XXX_FEC (CFG_MBAR + 0x3000)
111 #define MPC5XXX_I2C1 (CFG_MBAR + 0x3D00)
112 #define MPC5XXX_I2C2 (CFG_MBAR + 0x3D40)
114 #if defined(CONFIG_MGT5100)
115 #define MPC5XXX_SRAM (CFG_MBAR + 0x4000)
116 #define MPC5XXX_SRAM_SIZE (8*1024)
117 #elif defined(CONFIG_MPC5200)
118 #define MPC5XXX_SRAM (CFG_MBAR + 0x8000)
119 #define MPC5XXX_SRAM_SIZE (16*1024)
122 /* SDRAM Controller */
123 #define MPC5XXX_SDRAM_MODE (MPC5XXX_SDRAM + 0x0000)
124 #define MPC5XXX_SDRAM_CTRL (MPC5XXX_SDRAM + 0x0004)
125 #define MPC5XXX_SDRAM_CONFIG1 (MPC5XXX_SDRAM + 0x0008)
126 #define MPC5XXX_SDRAM_CONFIG2 (MPC5XXX_SDRAM + 0x000c)
127 #if defined(CONFIG_MGT5100)
128 #define MPC5XXX_SDRAM_XLBSEL (MPC5XXX_SDRAM + 0x0010)
131 /* Clock Distribution Module */
132 #define MPC5XXX_CDM_JTAGID (MPC5XXX_CDM + 0x0000)
133 #define MPC5XXX_CDM_PORCFG (MPC5XXX_CDM + 0x0004)
134 #define MPC5XXX_CDM_CFG (MPC5XXX_CDM + 0x000c)
135 #define MPC5XXX_CDM_SRESET (MPC5XXX_CDM + 0x0020)
137 /* Local Plus Bus interface */
138 #define MPC5XXX_CS0_CFG (MPC5XXX_LPB + 0x0000)
139 #define MPC5XXX_CS1_CFG (MPC5XXX_LPB + 0x0004)
140 #define MPC5XXX_CS2_CFG (MPC5XXX_LPB + 0x0008)
141 #define MPC5XXX_CS3_CFG (MPC5XXX_LPB + 0x000c)
142 #define MPC5XXX_CS4_CFG (MPC5XXX_LPB + 0x0010)
143 #define MPC5XXX_CS5_CFG (MPC5XXX_LPB + 0x0014)
144 #define MPC5XXX_BOOTCS_CFG MPC5XXX_CS0_CFG
145 #define MPC5XXX_CS_CTRL (MPC5XXX_LPB + 0x0018)
146 #define MPC5XXX_CS_STATUS (MPC5XXX_LPB + 0x001c)
147 #if defined(CONFIG_MPC5200)
148 #define MPC5XXX_CS6_CFG (MPC5XXX_LPB + 0x0020)
149 #define MPC5XXX_CS7_CFG (MPC5XXX_LPB + 0x0024)
150 #define MPC5XXX_CS_BURST (MPC5XXX_LPB + 0x0028)
151 #define MPC5XXX_CS_DEADCYCLE (MPC5XXX_LPB + 0x002c)
154 #if defined(CONFIG_MPC5200)
155 /* XLB Arbiter registers */
156 #define MPC5XXX_XLBARB_CFG (MPC5XXX_XLBARB + 0x40)
157 #define MPC5XXX_XLBARB_MPRIEN (MPC5XXX_XLBARB + 0x64)
158 #define MPC5XXX_XLBARB_MPRIVAL (MPC5XXX_XLBARB + 0x68)
162 #define MPC5XXX_GPS_PORT_CONFIG (MPC5XXX_GPIO + 0x0000)
165 #define MPC5XXX_PCI_CMD (MPC5XXX_PCI + 0x04)
166 #define MPC5XXX_PCI_CFG (MPC5XXX_PCI + 0x0c)
167 #define MPC5XXX_PCI_BAR0 (MPC5XXX_PCI + 0x10)
168 #define MPC5XXX_PCI_BAR1 (MPC5XXX_PCI + 0x14)
169 #if defined(CONFIG_MGT5100)
170 #define MPC5XXX_PCI_CTRL (MPC5XXX_PCI + 0x68)
171 #define MPC5XXX_PCI_VALMSKR (MPC5XXX_PCI + 0x6c)
172 #define MPC5XXX_PCI_VALMSKW (MPC5XXX_PCI + 0x70)
173 #define MPC5XXX_PCI_SUBW1 (MPC5XXX_PCI + 0x74)
174 #define MPC5XXX_PCI_SUBW2 (MPC5XXX_PCI + 0x78)
175 #define MPC5XXX_PCI_WINCOMMAND (MPC5XXX_PCI + 0x7c)
176 #elif defined(CONFIG_MPC5200)
177 #define MPC5XXX_PCI_GSCR (MPC5XXX_PCI + 0x60)
178 #define MPC5XXX_PCI_TBATR0 (MPC5XXX_PCI + 0x64)
179 #define MPC5XXX_PCI_TBATR1 (MPC5XXX_PCI + 0x68)
180 #define MPC5XXX_PCI_TCR (MPC5XXX_PCI + 0x6c)
181 #define MPC5XXX_PCI_IW0BTAR (MPC5XXX_PCI + 0x70)
182 #define MPC5XXX_PCI_IW1BTAR (MPC5XXX_PCI + 0x74)
183 #define MPC5XXX_PCI_IW2BTAR (MPC5XXX_PCI + 0x78)
184 #define MPC5XXX_PCI_IWCR (MPC5XXX_PCI + 0x80)
185 #define MPC5XXX_PCI_ICR (MPC5XXX_PCI + 0x84)
186 #define MPC5XXX_PCI_ISR (MPC5XXX_PCI + 0x88)
187 #define MPC5XXX_PCI_ARB (MPC5XXX_PCI + 0x8c)
188 #define MPC5XXX_PCI_CAR (MPC5XXX_PCI + 0xf8)
191 /* Interrupt Controller registers */
192 #define MPC5XXX_ICTL_PER_MASK (MPC5XXX_ICTL + 0x0000)
193 #define MPC5XXX_ICTL_PER_PRIO1 (MPC5XXX_ICTL + 0x0004)
194 #define MPC5XXX_ICTL_PER_PRIO2 (MPC5XXX_ICTL + 0x0008)
195 #define MPC5XXX_ICTL_PER_PRIO3 (MPC5XXX_ICTL + 0x000c)
196 #define MPC5XXX_ICTL_EXT (MPC5XXX_ICTL + 0x0010)
197 #define MPC5XXX_ICTL_CRIT (MPC5XXX_ICTL + 0x0014)
198 #define MPC5XXX_ICTL_MAIN_PRIO1 (MPC5XXX_ICTL + 0x0018)
199 #define MPC5XXX_ICTL_MAIN_PRIO2 (MPC5XXX_ICTL + 0x001c)
200 #define MPC5XXX_ICTL_STS (MPC5XXX_ICTL + 0x0024)
201 #define MPC5XXX_ICTL_CRIT_STS (MPC5XXX_ICTL + 0x0028)
202 #define MPC5XXX_ICTL_MAIN_STS (MPC5XXX_ICTL + 0x002c)
203 #define MPC5XXX_ICTL_PER_STS (MPC5XXX_ICTL + 0x0030)
204 #define MPC5XXX_ICTL_BUS_STS (MPC5XXX_ICTL + 0x0038)
206 /* General Purpose Timers registers */
207 #define MPC5XXX_GPT0_ENABLE (MPC5XXX_GPT + 0x0)
208 #define MPC5XXX_GPT0_COUNTER (MPC5XXX_GPT + 0x4)
210 /* I2Cn control register bits */
215 #define I2C_TXAK 0x08
216 #define I2C_RSTA 0x04
217 #define I2C_INIT_MASK (I2C_EN | I2C_STA | I2C_TX | I2C_RSTA)
219 /* I2Cn status register bits */
226 #define I2C_RXAK 0x01
228 /* Programmable Serial Controller (PSC) status register bits */
229 #define PSC_SR_CDE 0x0080
230 #define PSC_SR_RXRDY 0x0100
231 #define PSC_SR_RXFULL 0x0200
232 #define PSC_SR_TXRDY 0x0400
233 #define PSC_SR_TXEMP 0x0800
234 #define PSC_SR_OE 0x1000
235 #define PSC_SR_PE 0x2000
236 #define PSC_SR_FE 0x4000
237 #define PSC_SR_RB 0x8000
239 /* PSC Command values */
240 #define PSC_RX_ENABLE 0x0001
241 #define PSC_RX_DISABLE 0x0002
242 #define PSC_TX_ENABLE 0x0004
243 #define PSC_TX_DISABLE 0x0008
244 #define PSC_SEL_MODE_REG_1 0x0010
245 #define PSC_RST_RX 0x0020
246 #define PSC_RST_TX 0x0030
247 #define PSC_RST_ERR_STAT 0x0040
248 #define PSC_RST_BRK_CHG_INT 0x0050
249 #define PSC_START_BRK 0x0060
250 #define PSC_STOP_BRK 0x0070
252 /* PSC Rx FIFO status bits */
253 #define PSC_RX_FIFO_ERR 0x0040
254 #define PSC_RX_FIFO_UF 0x0020
255 #define PSC_RX_FIFO_OF 0x0010
256 #define PSC_RX_FIFO_FR 0x0008
257 #define PSC_RX_FIFO_FULL 0x0004
258 #define PSC_RX_FIFO_ALARM 0x0002
259 #define PSC_RX_FIFO_EMPTY 0x0001
261 /* PSC interrupt mask bits */
262 #define PSC_IMR_TXRDY 0x0100
263 #define PSC_IMR_RXRDY 0x0200
264 #define PSC_IMR_DB 0x0400
265 #define PSC_IMR_IPC 0x8000
267 /* PSC input port change bits */
268 #define PSC_IPCR_CTS 0x01
269 #define PSC_IPCR_DCD 0x02
271 /* PSC mode fields */
272 #define PSC_MODE_5_BITS 0x00
273 #define PSC_MODE_6_BITS 0x01
274 #define PSC_MODE_7_BITS 0x02
275 #define PSC_MODE_8_BITS 0x03
276 #define PSC_MODE_PAREVEN 0x00
277 #define PSC_MODE_PARODD 0x04
278 #define PSC_MODE_PARFORCE 0x08
279 #define PSC_MODE_PARNONE 0x10
280 #define PSC_MODE_ERR 0x20
281 #define PSC_MODE_FFULL 0x40
282 #define PSC_MODE_RXRTS 0x80
284 #define PSC_MODE_ONE_STOP_5_BITS 0x00
285 #define PSC_MODE_ONE_STOP 0x07
286 #define PSC_MODE_TWO_STOP 0x0f
290 volatile u8 mode; /* PSC + 0x00 */
291 volatile u8 reserved0[3];
292 union { /* PSC + 0x04 */
294 volatile u16 clock_select;
296 #define psc_status sr_csr.status
297 #define psc_clock_select sr_csr.clock_select
298 volatile u16 reserved1;
299 volatile u8 command; /* PSC + 0x08 */
300 volatile u8 reserved2[3];
301 union { /* PSC + 0x0c */
302 volatile u8 buffer_8;
303 volatile u16 buffer_16;
304 volatile u32 buffer_32;
306 #define psc_buffer_8 buffer.buffer_8
307 #define psc_buffer_16 buffer.buffer_16
308 #define psc_buffer_32 buffer.buffer_32
309 union { /* PSC + 0x10 */
313 #define psc_ipcr ipcr_acr.ipcr
314 #define psc_acr ipcr_acr.acr
315 volatile u8 reserved3[3];
316 union { /* PSC + 0x14 */
320 #define psc_isr isr_imr.isr
321 #define psc_imr isr_imr.imr
322 volatile u16 reserved4;
323 volatile u8 ctur; /* PSC + 0x18 */
324 volatile u8 reserved5[3];
325 volatile u8 ctlr; /* PSC + 0x1c */
326 volatile u8 reserved6[19];
327 volatile u8 ivr; /* PSC + 0x30 */
328 volatile u8 reserved7[3];
329 volatile u8 ip; /* PSC + 0x34 */
330 volatile u8 reserved8[3];
331 volatile u8 op1; /* PSC + 0x38 */
332 volatile u8 reserved9[3];
333 volatile u8 op0; /* PSC + 0x3c */
334 volatile u8 reserved10[3];
335 volatile u8 sicr; /* PSC + 0x40 */
336 volatile u8 reserved11[3];
337 volatile u8 ircr1; /* PSC + 0x44 */
338 volatile u8 reserved12[3];
339 volatile u8 ircr2; /* PSC + 0x44 */
340 volatile u8 reserved13[3];
341 volatile u8 irsdr; /* PSC + 0x4c */
342 volatile u8 reserved14[3];
343 volatile u8 irmdr; /* PSC + 0x50 */
344 volatile u8 reserved15[3];
345 volatile u8 irfdr; /* PSC + 0x54 */
346 volatile u8 reserved16[3];
347 volatile u16 rfnum; /* PSC + 0x58 */
348 volatile u16 reserved17;
349 volatile u16 tfnum; /* PSC + 0x5c */
350 volatile u16 reserved18;
351 volatile u32 rfdata; /* PSC + 0x60 */
352 volatile u16 rfstat; /* PSC + 0x64 */
353 volatile u16 reserved20;
354 volatile u8 rfcntl; /* PSC + 0x68 */
355 volatile u8 reserved21[5];
356 volatile u16 rfalarm; /* PSC + 0x6e */
357 volatile u16 reserved22;
358 volatile u16 rfrptr; /* PSC + 0x72 */
359 volatile u16 reserved23;
360 volatile u16 rfwptr; /* PSC + 0x76 */
361 volatile u16 reserved24;
362 volatile u16 rflrfptr; /* PSC + 0x7a */
363 volatile u16 reserved25;
364 volatile u16 rflwfptr; /* PSC + 0x7e */
365 volatile u32 tfdata; /* PSC + 0x80 */
366 volatile u16 tfstat; /* PSC + 0x84 */
367 volatile u16 reserved26;
368 volatile u8 tfcntl; /* PSC + 0x88 */
369 volatile u8 reserved27[5];
370 volatile u16 tfalarm; /* PSC + 0x8e */
371 volatile u16 reserved28;
372 volatile u16 tfrptr; /* PSC + 0x92 */
373 volatile u16 reserved29;
374 volatile u16 tfwptr; /* PSC + 0x96 */
375 volatile u16 reserved30;
376 volatile u16 tflrfptr; /* PSC + 0x9a */
377 volatile u16 reserved31;
378 volatile u16 tflwfptr; /* PSC + 0x9e */
381 struct mpc5xxx_intr {
382 volatile u32 per_mask; /* INTR + 0x00 */
383 volatile u32 per_pri1; /* INTR + 0x04 */
384 volatile u32 per_pri2; /* INTR + 0x08 */
385 volatile u32 per_pri3; /* INTR + 0x0c */
386 volatile u32 ctrl; /* INTR + 0x10 */
387 volatile u32 main_mask; /* INTR + 0x14 */
388 volatile u32 main_pri1; /* INTR + 0x18 */
389 volatile u32 main_pri2; /* INTR + 0x1c */
390 volatile u32 reserved1; /* INTR + 0x20 */
391 volatile u32 enc_status; /* INTR + 0x24 */
392 volatile u32 crit_status; /* INTR + 0x28 */
393 volatile u32 main_status; /* INTR + 0x2c */
394 volatile u32 per_status; /* INTR + 0x30 */
395 volatile u32 reserved2; /* INTR + 0x34 */
396 volatile u32 per_error; /* INTR + 0x38 */
399 struct mpc5xxx_gpio {
400 volatile u32 port_config; /* GPIO + 0x00 */
401 volatile u32 simple_gpioe; /* GPIO + 0x04 */
402 volatile u32 simple_ode; /* GPIO + 0x08 */
403 volatile u32 simple_ddr; /* GPIO + 0x0c */
404 volatile u32 simple_dvo; /* GPIO + 0x10 */
405 volatile u32 simple_ival; /* GPIO + 0x14 */
406 volatile u8 outo_gpioe; /* GPIO + 0x18 */
407 volatile u8 reserved1[3]; /* GPIO + 0x19 */
408 volatile u8 outo_dvo; /* GPIO + 0x1c */
409 volatile u8 reserved2[3]; /* GPIO + 0x1d */
410 volatile u8 sint_gpioe; /* GPIO + 0x20 */
411 volatile u8 reserved3[3]; /* GPIO + 0x21 */
412 volatile u8 sint_ode; /* GPIO + 0x24 */
413 volatile u8 reserved4[3]; /* GPIO + 0x25 */
414 volatile u8 sint_ddr; /* GPIO + 0x28 */
415 volatile u8 reserved5[3]; /* GPIO + 0x29 */
416 volatile u8 sint_dvo; /* GPIO + 0x2c */
417 volatile u8 reserved6[3]; /* GPIO + 0x2d */
418 volatile u8 sint_inten; /* GPIO + 0x30 */
419 volatile u8 reserved7[3]; /* GPIO + 0x31 */
420 volatile u16 sint_itype; /* GPIO + 0x34 */
421 volatile u16 reserved8; /* GPIO + 0x36 */
422 volatile u8 gpio_control; /* GPIO + 0x38 */
423 volatile u8 reserved9[3]; /* GPIO + 0x39 */
424 volatile u8 sint_istat; /* GPIO + 0x3c */
425 volatile u8 sint_ival; /* GPIO + 0x3d */
426 volatile u8 bus_errs; /* GPIO + 0x3e */
427 volatile u8 reserved10; /* GPIO + 0x3f */
430 struct mpc5xxx_sdma {
431 volatile u32 taskBar; /* SDMA + 0x00 */
432 volatile u32 currentPointer; /* SDMA + 0x04 */
433 volatile u32 endPointer; /* SDMA + 0x08 */
434 volatile u32 variablePointer; /* SDMA + 0x0c */
436 volatile u8 IntVect1; /* SDMA + 0x10 */
437 volatile u8 IntVect2; /* SDMA + 0x11 */
438 volatile u16 PtdCntrl; /* SDMA + 0x12 */
440 volatile u32 IntPend; /* SDMA + 0x14 */
441 volatile u32 IntMask; /* SDMA + 0x18 */
443 volatile u16 tcr_0; /* SDMA + 0x1c */
444 volatile u16 tcr_1; /* SDMA + 0x1e */
445 volatile u16 tcr_2; /* SDMA + 0x20 */
446 volatile u16 tcr_3; /* SDMA + 0x22 */
447 volatile u16 tcr_4; /* SDMA + 0x24 */
448 volatile u16 tcr_5; /* SDMA + 0x26 */
449 volatile u16 tcr_6; /* SDMA + 0x28 */
450 volatile u16 tcr_7; /* SDMA + 0x2a */
451 volatile u16 tcr_8; /* SDMA + 0x2c */
452 volatile u16 tcr_9; /* SDMA + 0x2e */
453 volatile u16 tcr_a; /* SDMA + 0x30 */
454 volatile u16 tcr_b; /* SDMA + 0x32 */
455 volatile u16 tcr_c; /* SDMA + 0x34 */
456 volatile u16 tcr_d; /* SDMA + 0x36 */
457 volatile u16 tcr_e; /* SDMA + 0x38 */
458 volatile u16 tcr_f; /* SDMA + 0x3a */
460 volatile u8 IPR0; /* SDMA + 0x3c */
461 volatile u8 IPR1; /* SDMA + 0x3d */
462 volatile u8 IPR2; /* SDMA + 0x3e */
463 volatile u8 IPR3; /* SDMA + 0x3f */
464 volatile u8 IPR4; /* SDMA + 0x40 */
465 volatile u8 IPR5; /* SDMA + 0x41 */
466 volatile u8 IPR6; /* SDMA + 0x42 */
467 volatile u8 IPR7; /* SDMA + 0x43 */
468 volatile u8 IPR8; /* SDMA + 0x44 */
469 volatile u8 IPR9; /* SDMA + 0x45 */
470 volatile u8 IPR10; /* SDMA + 0x46 */
471 volatile u8 IPR11; /* SDMA + 0x47 */
472 volatile u8 IPR12; /* SDMA + 0x48 */
473 volatile u8 IPR13; /* SDMA + 0x49 */
474 volatile u8 IPR14; /* SDMA + 0x4a */
475 volatile u8 IPR15; /* SDMA + 0x4b */
476 volatile u8 IPR16; /* SDMA + 0x4c */
477 volatile u8 IPR17; /* SDMA + 0x4d */
478 volatile u8 IPR18; /* SDMA + 0x4e */
479 volatile u8 IPR19; /* SDMA + 0x4f */
480 volatile u8 IPR20; /* SDMA + 0x50 */
481 volatile u8 IPR21; /* SDMA + 0x51 */
482 volatile u8 IPR22; /* SDMA + 0x52 */
483 volatile u8 IPR23; /* SDMA + 0x53 */
484 volatile u8 IPR24; /* SDMA + 0x54 */
485 volatile u8 IPR25; /* SDMA + 0x55 */
486 volatile u8 IPR26; /* SDMA + 0x56 */
487 volatile u8 IPR27; /* SDMA + 0x57 */
488 volatile u8 IPR28; /* SDMA + 0x58 */
489 volatile u8 IPR29; /* SDMA + 0x59 */
490 volatile u8 IPR30; /* SDMA + 0x5a */
491 volatile u8 IPR31; /* SDMA + 0x5b */
493 volatile u32 res1; /* SDMA + 0x5c */
494 volatile u32 res2; /* SDMA + 0x60 */
495 volatile u32 res3; /* SDMA + 0x64 */
496 volatile u32 MDEDebug; /* SDMA + 0x68 */
497 volatile u32 ADSDebug; /* SDMA + 0x6c */
498 volatile u32 Value1; /* SDMA + 0x70 */
499 volatile u32 Value2; /* SDMA + 0x74 */
500 volatile u32 Control; /* SDMA + 0x78 */
501 volatile u32 Status; /* SDMA + 0x7c */
502 volatile u32 EU00; /* SDMA + 0x80 */
503 volatile u32 EU01; /* SDMA + 0x84 */
504 volatile u32 EU02; /* SDMA + 0x88 */
505 volatile u32 EU03; /* SDMA + 0x8c */
506 volatile u32 EU04; /* SDMA + 0x90 */
507 volatile u32 EU05; /* SDMA + 0x94 */
508 volatile u32 EU06; /* SDMA + 0x98 */
509 volatile u32 EU07; /* SDMA + 0x9c */
510 volatile u32 EU10; /* SDMA + 0xa0 */
511 volatile u32 EU11; /* SDMA + 0xa4 */
512 volatile u32 EU12; /* SDMA + 0xa8 */
513 volatile u32 EU13; /* SDMA + 0xac */
514 volatile u32 EU14; /* SDMA + 0xb0 */
515 volatile u32 EU15; /* SDMA + 0xb4 */
516 volatile u32 EU16; /* SDMA + 0xb8 */
517 volatile u32 EU17; /* SDMA + 0xbc */
518 volatile u32 EU20; /* SDMA + 0xc0 */
519 volatile u32 EU21; /* SDMA + 0xc4 */
520 volatile u32 EU22; /* SDMA + 0xc8 */
521 volatile u32 EU23; /* SDMA + 0xcc */
522 volatile u32 EU24; /* SDMA + 0xd0 */
523 volatile u32 EU25; /* SDMA + 0xd4 */
524 volatile u32 EU26; /* SDMA + 0xd8 */
525 volatile u32 EU27; /* SDMA + 0xdc */
526 volatile u32 EU30; /* SDMA + 0xe0 */
527 volatile u32 EU31; /* SDMA + 0xe4 */
528 volatile u32 EU32; /* SDMA + 0xe8 */
529 volatile u32 EU33; /* SDMA + 0xec */
530 volatile u32 EU34; /* SDMA + 0xf0 */
531 volatile u32 EU35; /* SDMA + 0xf4 */
532 volatile u32 EU36; /* SDMA + 0xf8 */
533 volatile u32 EU37; /* SDMA + 0xfc */
537 volatile u32 madr; /* I2Cn + 0x00 */
538 volatile u32 mfdr; /* I2Cn + 0x04 */
539 volatile u32 mcr; /* I2Cn + 0x08 */
540 volatile u32 msr; /* I2Cn + 0x0C */
541 volatile u32 mdr; /* I2Cn + 0x10 */
544 /* function prototypes */
545 void loadtask(int basetask, int tasks);
547 #endif /* __ASSEMBLY__ */
549 #endif /* __ASMPPC_MPC5XXX_H */