wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * include/asm-ppc/mpc5xxx.h |
| 3 | * |
| 4 | * Prototypes, etc. for the Motorola MGT5xxx/MPC5xxx |
| 5 | * embedded cpu chips |
| 6 | * |
| 7 | * 2003 (c) MontaVista, Software, Inc. |
| 8 | * Author: Dale Farnsworth <dfarnsworth@mvista.com> |
| 9 | * |
| 10 | * 2003 (C) Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 11 | * |
| 12 | * See file CREDITS for list of people who contributed to this |
| 13 | * project. |
| 14 | * |
| 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. |
| 19 | * |
| 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. |
| 24 | * |
| 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, |
| 28 | * MA 02111-1307 USA |
| 29 | */ |
| 30 | #ifndef __ASMPPC_MPC5XXX_H |
| 31 | #define __ASMPPC_MPC5XXX_H |
| 32 | |
| 33 | /* Processor name */ |
| 34 | #if defined(CONFIG_MPC5200) |
| 35 | #define CPU_ID_STR "MPC5200" |
| 36 | #elif defined(CONFIG_MGT5100) |
| 37 | #define CPU_ID_STR "MGT5100" |
| 38 | #endif |
| 39 | |
| 40 | /* Exception offsets (PowerPC standard) */ |
| 41 | #define EXC_OFF_SYS_RESET 0x0100 |
| 42 | |
| 43 | /* Internal memory map */ |
| 44 | |
| 45 | #define MPC5XXX_CS0_START (CFG_MBAR + 0x0004) |
| 46 | #define MPC5XXX_CS0_STOP (CFG_MBAR + 0x0008) |
| 47 | #define MPC5XXX_CS1_START (CFG_MBAR + 0x000c) |
| 48 | #define MPC5XXX_CS1_STOP (CFG_MBAR + 0x0010) |
| 49 | #define MPC5XXX_CS2_START (CFG_MBAR + 0x0014) |
| 50 | #define MPC5XXX_CS2_STOP (CFG_MBAR + 0x0018) |
| 51 | #define MPC5XXX_CS3_START (CFG_MBAR + 0x001c) |
| 52 | #define MPC5XXX_CS3_STOP (CFG_MBAR + 0x0020) |
| 53 | #define MPC5XXX_CS4_START (CFG_MBAR + 0x0024) |
| 54 | #define MPC5XXX_CS4_STOP (CFG_MBAR + 0x0028) |
| 55 | #define MPC5XXX_CS5_START (CFG_MBAR + 0x002c) |
| 56 | #define MPC5XXX_CS5_STOP (CFG_MBAR + 0x0030) |
| 57 | #define MPC5XXX_BOOTCS_START (CFG_MBAR + 0x004c) |
| 58 | #define MPC5XXX_BOOTCS_STOP (CFG_MBAR + 0x0050) |
| 59 | #define MPC5XXX_ADDECR (CFG_MBAR + 0x0054) |
| 60 | |
| 61 | #if defined(CONFIG_MGT5100) |
| 62 | #define MPC5XXX_SDRAM_START (CFG_MBAR + 0x0034) |
| 63 | #define MPC5XXX_SDRAM_STOP (CFG_MBAR + 0x0038) |
| 64 | #elif defined(CONFIG_MPC5200) |
| 65 | #define MPC5XXX_CS6_START (CFG_MBAR + 0x0058) |
| 66 | #define MPC5XXX_CS6_STOP (CFG_MBAR + 0x005c) |
| 67 | #define MPC5XXX_CS7_START (CFG_MBAR + 0x0060) |
| 68 | #define MPC5XXX_CS7_STOP (CFG_MBAR + 0x0064) |
| 69 | #define MPC5XXX_SDRAM_CS0CFG (CFG_MBAR + 0x0034) |
| 70 | #define MPC5XXX_SDRAM_CS1CFG (CFG_MBAR + 0x0038) |
| 71 | #endif |
| 72 | |
| 73 | #define MPC5XXX_SDRAM (CFG_MBAR + 0x0100) |
| 74 | #define MPC5XXX_CDM (CFG_MBAR + 0x0200) |
| 75 | #define MPC5XXX_LPB (CFG_MBAR + 0x0300) |
| 76 | #define MPC5XXX_ICTL (CFG_MBAR + 0x0500) |
| 77 | #define MPC5XXX_GPIO (CFG_MBAR + 0x0b00) |
| 78 | #define MPC5XXX_SDMA (CFG_MBAR + 0x1200) |
| 79 | #define MPC5XXX_XLBARB (CFG_MBAR + 0x1f00) |
| 80 | |
| 81 | #if defined(CONFIG_MGT5100) |
| 82 | #define MPC5XXX_PSC1 (CFG_MBAR + 0x2000) |
| 83 | #define MPC5XXX_PSC2 (CFG_MBAR + 0x2400) |
| 84 | #define MPC5XXX_PSC3 (CFG_MBAR + 0x2800) |
| 85 | #elif defined(CONFIG_MPC5200) |
| 86 | #define MPC5XXX_PSC1 (CFG_MBAR + 0x2000) |
| 87 | #define MPC5XXX_PSC2 (CFG_MBAR + 0x2200) |
| 88 | #define MPC5XXX_PSC3 (CFG_MBAR + 0x2400) |
| 89 | #define MPC5XXX_PSC4 (CFG_MBAR + 0x2600) |
| 90 | #define MPC5XXX_PSC5 (CFG_MBAR + 0x2800) |
| 91 | #define MPC5XXX_PSC6 (CFG_MBAR + 0x2c00) |
| 92 | #endif |
| 93 | |
| 94 | #define MPC5XXX_FEC (CFG_MBAR + 0x3000) |
| 95 | |
| 96 | #if defined(CONFIG_MGT5100) |
| 97 | #define MPC5XXX_SRAM (CFG_MBAR + 0x4000) |
| 98 | #define MPC5XXX_SRAM_SIZE (8*1024) |
| 99 | #elif defined(CONFIG_MPC5200) |
| 100 | #define MPC5XXX_SRAM (CFG_MBAR + 0x8000) |
| 101 | #define MPC5XXX_SRAM_SIZE (16*1024) |
| 102 | #endif |
| 103 | |
| 104 | /* SDRAM Controller */ |
| 105 | #define MPC5XXX_SDRAM_MODE (MPC5XXX_SDRAM + 0x0000) |
| 106 | #define MPC5XXX_SDRAM_CTRL (MPC5XXX_SDRAM + 0x0004) |
| 107 | #define MPC5XXX_SDRAM_CONFIG1 (MPC5XXX_SDRAM + 0x0008) |
| 108 | #define MPC5XXX_SDRAM_CONFIG2 (MPC5XXX_SDRAM + 0x000c) |
| 109 | #if defined(CONFIG_MGT5100) |
| 110 | #define MPC5XXX_SDRAM_XLBSEL (MPC5XXX_SDRAM + 0x0010) |
| 111 | #endif |
| 112 | |
| 113 | /* Clock Distribution Module */ |
| 114 | #define MPC5XXX_CDM_JTAGID (MPC5XXX_CDM + 0x0000) |
| 115 | #define MPC5XXX_CDM_PORCFG (MPC5XXX_CDM + 0x0004) |
| 116 | #define MPC5XXX_CDM_CFG (MPC5XXX_CDM + 0x000c) |
| 117 | #define MPC5XXX_CDM_SRESET (MPC5XXX_CDM + 0x0020) |
| 118 | |
| 119 | /* Local Plus Bus interface */ |
| 120 | #define MPC5XXX_CS0_CFG (MPC5XXX_LPB + 0x0000) |
| 121 | #define MPC5XXX_CS1_CFG (MPC5XXX_LPB + 0x0004) |
| 122 | #define MPC5XXX_CS2_CFG (MPC5XXX_LPB + 0x0008) |
| 123 | #define MPC5XXX_CS3_CFG (MPC5XXX_LPB + 0x000c) |
| 124 | #define MPC5XXX_CS4_CFG (MPC5XXX_LPB + 0x0010) |
| 125 | #define MPC5XXX_CS5_CFG (MPC5XXX_LPB + 0x0014) |
| 126 | #define MPC5XXX_BOOTCS_CFG MPC5XXX_CS0_CFG |
| 127 | #define MPC5XXX_CS_CTRL (MPC5XXX_LPB + 0x0018) |
| 128 | #define MPC5XXX_CS_STATUS (MPC5XXX_LPB + 0x001c) |
| 129 | #if defined(CONFIG_MPC5200) |
| 130 | #define MPC5XXX_CS6_CFG (MPC5XXX_LPB + 0x0020) |
| 131 | #define MPC5XXX_CS7_CFG (MPC5XXX_LPB + 0x0024) |
| 132 | #define MPC5XXX_CS_BURST (MPC5XXX_LPB + 0x0028) |
| 133 | #define MPC5XXX_CS_DEADCYCLE (MPC5XXX_LPB + 0x002c) |
| 134 | #endif |
| 135 | |
| 136 | /* GPIO registers */ |
| 137 | #define MPC5XXX_GPS_PORT_CONFIG (MPC5XXX_GPIO + 0x0000) |
| 138 | |
| 139 | /* Interrupt Controller registers */ |
| 140 | #define MPC5XXX_ICTL_PER_MASK (MPC5XXX_ICTL + 0x0000) |
| 141 | #define MPC5XXX_ICTL_PER_PRIO1 (MPC5XXX_ICTL + 0x0004) |
| 142 | #define MPC5XXX_ICTL_PER_PRIO2 (MPC5XXX_ICTL + 0x0008) |
| 143 | #define MPC5XXX_ICTL_PER_PRIO3 (MPC5XXX_ICTL + 0x000c) |
| 144 | #define MPC5XXX_ICTL_EXT (MPC5XXX_ICTL + 0x0010) |
| 145 | #define MPC5XXX_ICTL_CRIT (MPC5XXX_ICTL + 0x0014) |
| 146 | #define MPC5XXX_ICTL_MAIN_PRIO1 (MPC5XXX_ICTL + 0x0018) |
| 147 | #define MPC5XXX_ICTL_MAIN_PRIO2 (MPC5XXX_ICTL + 0x001c) |
| 148 | #define MPC5XXX_ICTL_STS (MPC5XXX_ICTL + 0x0024) |
| 149 | #define MPC5XXX_ICTL_CRIT_STS (MPC5XXX_ICTL + 0x0028) |
| 150 | #define MPC5XXX_ICTL_MAIN_STS (MPC5XXX_ICTL + 0x002c) |
| 151 | #define MPC5XXX_ICTL_PER_STS (MPC5XXX_ICTL + 0x0030) |
| 152 | #define MPC5XXX_ICTL_BUS_STS (MPC5XXX_ICTL + 0x0038) |
| 153 | |
| 154 | /* Programmable Serial Controller (PSC) status register bits */ |
| 155 | #define PSC_SR_CDE 0x0080 |
| 156 | #define PSC_SR_RXRDY 0x0100 |
| 157 | #define PSC_SR_RXFULL 0x0200 |
| 158 | #define PSC_SR_TXRDY 0x0400 |
| 159 | #define PSC_SR_TXEMP 0x0800 |
| 160 | #define PSC_SR_OE 0x1000 |
| 161 | #define PSC_SR_PE 0x2000 |
| 162 | #define PSC_SR_FE 0x4000 |
| 163 | #define PSC_SR_RB 0x8000 |
| 164 | |
| 165 | /* PSC Command values */ |
| 166 | #define PSC_RX_ENABLE 0x0001 |
| 167 | #define PSC_RX_DISABLE 0x0002 |
| 168 | #define PSC_TX_ENABLE 0x0004 |
| 169 | #define PSC_TX_DISABLE 0x0008 |
| 170 | #define PSC_SEL_MODE_REG_1 0x0010 |
| 171 | #define PSC_RST_RX 0x0020 |
| 172 | #define PSC_RST_TX 0x0030 |
| 173 | #define PSC_RST_ERR_STAT 0x0040 |
| 174 | #define PSC_RST_BRK_CHG_INT 0x0050 |
| 175 | #define PSC_START_BRK 0x0060 |
| 176 | #define PSC_STOP_BRK 0x0070 |
| 177 | |
| 178 | /* PSC Rx FIFO status bits */ |
| 179 | #define PSC_RX_FIFO_ERR 0x0040 |
| 180 | #define PSC_RX_FIFO_UF 0x0020 |
| 181 | #define PSC_RX_FIFO_OF 0x0010 |
| 182 | #define PSC_RX_FIFO_FR 0x0008 |
| 183 | #define PSC_RX_FIFO_FULL 0x0004 |
| 184 | #define PSC_RX_FIFO_ALARM 0x0002 |
| 185 | #define PSC_RX_FIFO_EMPTY 0x0001 |
| 186 | |
| 187 | /* PSC interrupt mask bits */ |
| 188 | #define PSC_IMR_TXRDY 0x0100 |
| 189 | #define PSC_IMR_RXRDY 0x0200 |
| 190 | #define PSC_IMR_DB 0x0400 |
| 191 | #define PSC_IMR_IPC 0x8000 |
| 192 | |
| 193 | /* PSC input port change bits */ |
| 194 | #define PSC_IPCR_CTS 0x01 |
| 195 | #define PSC_IPCR_DCD 0x02 |
| 196 | |
| 197 | /* PSC mode fields */ |
| 198 | #define PSC_MODE_5_BITS 0x00 |
| 199 | #define PSC_MODE_6_BITS 0x01 |
| 200 | #define PSC_MODE_7_BITS 0x02 |
| 201 | #define PSC_MODE_8_BITS 0x03 |
| 202 | #define PSC_MODE_PAREVEN 0x00 |
| 203 | #define PSC_MODE_PARODD 0x04 |
| 204 | #define PSC_MODE_PARFORCE 0x08 |
| 205 | #define PSC_MODE_PARNONE 0x10 |
| 206 | #define PSC_MODE_ERR 0x20 |
| 207 | #define PSC_MODE_FFULL 0x40 |
| 208 | #define PSC_MODE_RXRTS 0x80 |
| 209 | |
| 210 | #define PSC_MODE_ONE_STOP_5_BITS 0x00 |
| 211 | #define PSC_MODE_ONE_STOP 0x07 |
| 212 | #define PSC_MODE_TWO_STOP 0x0f |
| 213 | |
| 214 | #ifndef __ASSEMBLY__ |
| 215 | struct mpc5xxx_psc { |
| 216 | volatile u8 mode; /* PSC + 0x00 */ |
| 217 | volatile u8 reserved0[3]; |
| 218 | union { /* PSC + 0x04 */ |
| 219 | volatile u16 status; |
| 220 | volatile u16 clock_select; |
| 221 | } sr_csr; |
| 222 | #define psc_status sr_csr.status |
| 223 | #define psc_clock_select sr_csr.clock_select |
| 224 | volatile u16 reserved1; |
| 225 | volatile u8 command; /* PSC + 0x08 */ |
| 226 | volatile u8 reserved2[3]; |
| 227 | union { /* PSC + 0x0c */ |
| 228 | volatile u8 buffer_8; |
| 229 | volatile u16 buffer_16; |
| 230 | volatile u32 buffer_32; |
| 231 | } buffer; |
| 232 | #define psc_buffer_8 buffer.buffer_8 |
| 233 | #define psc_buffer_16 buffer.buffer_16 |
| 234 | #define psc_buffer_32 buffer.buffer_32 |
| 235 | union { /* PSC + 0x10 */ |
| 236 | volatile u8 ipcr; |
| 237 | volatile u8 acr; |
| 238 | } ipcr_acr; |
| 239 | #define psc_ipcr ipcr_acr.ipcr |
| 240 | #define psc_acr ipcr_acr.acr |
| 241 | volatile u8 reserved3[3]; |
| 242 | union { /* PSC + 0x14 */ |
| 243 | volatile u16 isr; |
| 244 | volatile u16 imr; |
| 245 | } isr_imr; |
| 246 | #define psc_isr isr_imr.isr |
| 247 | #define psc_imr isr_imr.imr |
| 248 | volatile u16 reserved4; |
| 249 | volatile u8 ctur; /* PSC + 0x18 */ |
| 250 | volatile u8 reserved5[3]; |
| 251 | volatile u8 ctlr; /* PSC + 0x1c */ |
| 252 | volatile u8 reserved6[19]; |
| 253 | volatile u8 ivr; /* PSC + 0x30 */ |
| 254 | volatile u8 reserved7[3]; |
| 255 | volatile u8 ip; /* PSC + 0x34 */ |
| 256 | volatile u8 reserved8[3]; |
| 257 | volatile u8 op1; /* PSC + 0x38 */ |
| 258 | volatile u8 reserved9[3]; |
| 259 | volatile u8 op0; /* PSC + 0x3c */ |
| 260 | volatile u8 reserved10[3]; |
| 261 | volatile u8 sicr; /* PSC + 0x40 */ |
| 262 | volatile u8 reserved11[3]; |
| 263 | volatile u8 ircr1; /* PSC + 0x44 */ |
| 264 | volatile u8 reserved12[3]; |
| 265 | volatile u8 ircr2; /* PSC + 0x44 */ |
| 266 | volatile u8 reserved13[3]; |
| 267 | volatile u8 irsdr; /* PSC + 0x4c */ |
| 268 | volatile u8 reserved14[3]; |
| 269 | volatile u8 irmdr; /* PSC + 0x50 */ |
| 270 | volatile u8 reserved15[3]; |
| 271 | volatile u8 irfdr; /* PSC + 0x54 */ |
| 272 | volatile u8 reserved16[3]; |
| 273 | volatile u16 rfnum; /* PSC + 0x58 */ |
| 274 | volatile u16 reserved17; |
| 275 | volatile u16 tfnum; /* PSC + 0x5c */ |
| 276 | volatile u16 reserved18; |
| 277 | volatile u32 rfdata; /* PSC + 0x60 */ |
| 278 | volatile u16 rfstat; /* PSC + 0x64 */ |
| 279 | volatile u16 reserved20; |
| 280 | volatile u8 rfcntl; /* PSC + 0x68 */ |
| 281 | volatile u8 reserved21[5]; |
| 282 | volatile u16 rfalarm; /* PSC + 0x6e */ |
| 283 | volatile u16 reserved22; |
| 284 | volatile u16 rfrptr; /* PSC + 0x72 */ |
| 285 | volatile u16 reserved23; |
| 286 | volatile u16 rfwptr; /* PSC + 0x76 */ |
| 287 | volatile u16 reserved24; |
| 288 | volatile u16 rflrfptr; /* PSC + 0x7a */ |
| 289 | volatile u16 reserved25; |
| 290 | volatile u16 rflwfptr; /* PSC + 0x7e */ |
| 291 | volatile u32 tfdata; /* PSC + 0x80 */ |
| 292 | volatile u16 tfstat; /* PSC + 0x84 */ |
| 293 | volatile u16 reserved26; |
| 294 | volatile u8 tfcntl; /* PSC + 0x88 */ |
| 295 | volatile u8 reserved27[5]; |
| 296 | volatile u16 tfalarm; /* PSC + 0x8e */ |
| 297 | volatile u16 reserved28; |
| 298 | volatile u16 tfrptr; /* PSC + 0x92 */ |
| 299 | volatile u16 reserved29; |
| 300 | volatile u16 tfwptr; /* PSC + 0x96 */ |
| 301 | volatile u16 reserved30; |
| 302 | volatile u16 tflrfptr; /* PSC + 0x9a */ |
| 303 | volatile u16 reserved31; |
| 304 | volatile u16 tflwfptr; /* PSC + 0x9e */ |
| 305 | }; |
| 306 | |
| 307 | struct mpc5xxx_intr { |
| 308 | volatile u32 per_mask; /* INTR + 0x00 */ |
| 309 | volatile u32 per_pri1; /* INTR + 0x04 */ |
| 310 | volatile u32 per_pri2; /* INTR + 0x08 */ |
| 311 | volatile u32 per_pri3; /* INTR + 0x0c */ |
| 312 | volatile u32 ctrl; /* INTR + 0x10 */ |
| 313 | volatile u32 main_mask; /* INTR + 0x14 */ |
| 314 | volatile u32 main_pri1; /* INTR + 0x18 */ |
| 315 | volatile u32 main_pri2; /* INTR + 0x1c */ |
| 316 | volatile u32 reserved1; /* INTR + 0x20 */ |
| 317 | volatile u32 enc_status; /* INTR + 0x24 */ |
| 318 | volatile u32 crit_status; /* INTR + 0x28 */ |
| 319 | volatile u32 main_status; /* INTR + 0x2c */ |
| 320 | volatile u32 per_status; /* INTR + 0x30 */ |
| 321 | volatile u32 reserved2; /* INTR + 0x34 */ |
| 322 | volatile u32 per_error; /* INTR + 0x38 */ |
| 323 | }; |
| 324 | |
| 325 | struct mpc5xxx_gpio { |
| 326 | volatile u32 port_config; /* GPIO + 0x00 */ |
| 327 | volatile u32 simple_gpioe; /* GPIO + 0x04 */ |
| 328 | volatile u32 simple_ode; /* GPIO + 0x08 */ |
| 329 | volatile u32 simple_ddr; /* GPIO + 0x0c */ |
| 330 | volatile u32 simple_dvo; /* GPIO + 0x10 */ |
| 331 | volatile u32 simple_ival; /* GPIO + 0x14 */ |
| 332 | volatile u8 outo_gpioe; /* GPIO + 0x18 */ |
| 333 | volatile u8 reserved1[3]; /* GPIO + 0x19 */ |
| 334 | volatile u8 outo_dvo; /* GPIO + 0x1c */ |
| 335 | volatile u8 reserved2[3]; /* GPIO + 0x1d */ |
| 336 | volatile u8 sint_gpioe; /* GPIO + 0x20 */ |
| 337 | volatile u8 reserved3[3]; /* GPIO + 0x21 */ |
| 338 | volatile u8 sint_ode; /* GPIO + 0x24 */ |
| 339 | volatile u8 reserved4[3]; /* GPIO + 0x25 */ |
| 340 | volatile u8 sint_ddr; /* GPIO + 0x28 */ |
| 341 | volatile u8 reserved5[3]; /* GPIO + 0x29 */ |
| 342 | volatile u8 sint_dvo; /* GPIO + 0x2c */ |
| 343 | volatile u8 reserved6[3]; /* GPIO + 0x2d */ |
| 344 | volatile u8 sint_inten; /* GPIO + 0x30 */ |
| 345 | volatile u8 reserved7[3]; /* GPIO + 0x31 */ |
| 346 | volatile u16 sint_itype; /* GPIO + 0x34 */ |
| 347 | volatile u16 reserved8; /* GPIO + 0x36 */ |
| 348 | volatile u8 gpio_control; /* GPIO + 0x38 */ |
| 349 | volatile u8 reserved9[3]; /* GPIO + 0x39 */ |
| 350 | volatile u8 sint_istat; /* GPIO + 0x3c */ |
| 351 | volatile u8 sint_ival; /* GPIO + 0x3d */ |
| 352 | volatile u8 bus_errs; /* GPIO + 0x3e */ |
| 353 | volatile u8 reserved10; /* GPIO + 0x3f */ |
| 354 | }; |
| 355 | |
| 356 | struct mpc5xxx_sdma { |
| 357 | volatile u32 taskBar; /* SDMA + 0x00 */ |
| 358 | volatile u32 currentPointer; /* SDMA + 0x04 */ |
| 359 | volatile u32 endPointer; /* SDMA + 0x08 */ |
| 360 | volatile u32 variablePointer; /* SDMA + 0x0c */ |
| 361 | |
| 362 | volatile u8 IntVect1; /* SDMA + 0x10 */ |
| 363 | volatile u8 IntVect2; /* SDMA + 0x11 */ |
| 364 | volatile u16 PtdCntrl; /* SDMA + 0x12 */ |
| 365 | |
| 366 | volatile u32 IntPend; /* SDMA + 0x14 */ |
| 367 | volatile u32 IntMask; /* SDMA + 0x18 */ |
| 368 | |
| 369 | volatile u16 tcr_0; /* SDMA + 0x1c */ |
| 370 | volatile u16 tcr_1; /* SDMA + 0x1e */ |
| 371 | volatile u16 tcr_2; /* SDMA + 0x20 */ |
| 372 | volatile u16 tcr_3; /* SDMA + 0x22 */ |
| 373 | volatile u16 tcr_4; /* SDMA + 0x24 */ |
| 374 | volatile u16 tcr_5; /* SDMA + 0x26 */ |
| 375 | volatile u16 tcr_6; /* SDMA + 0x28 */ |
| 376 | volatile u16 tcr_7; /* SDMA + 0x2a */ |
| 377 | volatile u16 tcr_8; /* SDMA + 0x2c */ |
| 378 | volatile u16 tcr_9; /* SDMA + 0x2e */ |
| 379 | volatile u16 tcr_a; /* SDMA + 0x30 */ |
| 380 | volatile u16 tcr_b; /* SDMA + 0x32 */ |
| 381 | volatile u16 tcr_c; /* SDMA + 0x34 */ |
| 382 | volatile u16 tcr_d; /* SDMA + 0x36 */ |
| 383 | volatile u16 tcr_e; /* SDMA + 0x38 */ |
| 384 | volatile u16 tcr_f; /* SDMA + 0x3a */ |
| 385 | |
| 386 | volatile u8 IPR0; /* SDMA + 0x3c */ |
| 387 | volatile u8 IPR1; /* SDMA + 0x3d */ |
| 388 | volatile u8 IPR2; /* SDMA + 0x3e */ |
| 389 | volatile u8 IPR3; /* SDMA + 0x3f */ |
| 390 | volatile u8 IPR4; /* SDMA + 0x40 */ |
| 391 | volatile u8 IPR5; /* SDMA + 0x41 */ |
| 392 | volatile u8 IPR6; /* SDMA + 0x42 */ |
| 393 | volatile u8 IPR7; /* SDMA + 0x43 */ |
| 394 | volatile u8 IPR8; /* SDMA + 0x44 */ |
| 395 | volatile u8 IPR9; /* SDMA + 0x45 */ |
| 396 | volatile u8 IPR10; /* SDMA + 0x46 */ |
| 397 | volatile u8 IPR11; /* SDMA + 0x47 */ |
| 398 | volatile u8 IPR12; /* SDMA + 0x48 */ |
| 399 | volatile u8 IPR13; /* SDMA + 0x49 */ |
| 400 | volatile u8 IPR14; /* SDMA + 0x4a */ |
| 401 | volatile u8 IPR15; /* SDMA + 0x4b */ |
| 402 | volatile u8 IPR16; /* SDMA + 0x4c */ |
| 403 | volatile u8 IPR17; /* SDMA + 0x4d */ |
| 404 | volatile u8 IPR18; /* SDMA + 0x4e */ |
| 405 | volatile u8 IPR19; /* SDMA + 0x4f */ |
| 406 | volatile u8 IPR20; /* SDMA + 0x50 */ |
| 407 | volatile u8 IPR21; /* SDMA + 0x51 */ |
| 408 | volatile u8 IPR22; /* SDMA + 0x52 */ |
| 409 | volatile u8 IPR23; /* SDMA + 0x53 */ |
| 410 | volatile u8 IPR24; /* SDMA + 0x54 */ |
| 411 | volatile u8 IPR25; /* SDMA + 0x55 */ |
| 412 | volatile u8 IPR26; /* SDMA + 0x56 */ |
| 413 | volatile u8 IPR27; /* SDMA + 0x57 */ |
| 414 | volatile u8 IPR28; /* SDMA + 0x58 */ |
| 415 | volatile u8 IPR29; /* SDMA + 0x59 */ |
| 416 | volatile u8 IPR30; /* SDMA + 0x5a */ |
| 417 | volatile u8 IPR31; /* SDMA + 0x5b */ |
| 418 | |
| 419 | volatile u32 res1; /* SDMA + 0x5c */ |
| 420 | volatile u32 res2; /* SDMA + 0x60 */ |
| 421 | volatile u32 res3; /* SDMA + 0x64 */ |
| 422 | volatile u32 MDEDebug; /* SDMA + 0x68 */ |
| 423 | volatile u32 ADSDebug; /* SDMA + 0x6c */ |
| 424 | volatile u32 Value1; /* SDMA + 0x70 */ |
| 425 | volatile u32 Value2; /* SDMA + 0x74 */ |
| 426 | volatile u32 Control; /* SDMA + 0x78 */ |
| 427 | volatile u32 Status; /* SDMA + 0x7c */ |
| 428 | volatile u32 EU00; /* SDMA + 0x80 */ |
| 429 | volatile u32 EU01; /* SDMA + 0x84 */ |
| 430 | volatile u32 EU02; /* SDMA + 0x88 */ |
| 431 | volatile u32 EU03; /* SDMA + 0x8c */ |
| 432 | volatile u32 EU04; /* SDMA + 0x90 */ |
| 433 | volatile u32 EU05; /* SDMA + 0x94 */ |
| 434 | volatile u32 EU06; /* SDMA + 0x98 */ |
| 435 | volatile u32 EU07; /* SDMA + 0x9c */ |
| 436 | volatile u32 EU10; /* SDMA + 0xa0 */ |
| 437 | volatile u32 EU11; /* SDMA + 0xa4 */ |
| 438 | volatile u32 EU12; /* SDMA + 0xa8 */ |
| 439 | volatile u32 EU13; /* SDMA + 0xac */ |
| 440 | volatile u32 EU14; /* SDMA + 0xb0 */ |
| 441 | volatile u32 EU15; /* SDMA + 0xb4 */ |
| 442 | volatile u32 EU16; /* SDMA + 0xb8 */ |
| 443 | volatile u32 EU17; /* SDMA + 0xbc */ |
| 444 | volatile u32 EU20; /* SDMA + 0xc0 */ |
| 445 | volatile u32 EU21; /* SDMA + 0xc4 */ |
| 446 | volatile u32 EU22; /* SDMA + 0xc8 */ |
| 447 | volatile u32 EU23; /* SDMA + 0xcc */ |
| 448 | volatile u32 EU24; /* SDMA + 0xd0 */ |
| 449 | volatile u32 EU25; /* SDMA + 0xd4 */ |
| 450 | volatile u32 EU26; /* SDMA + 0xd8 */ |
| 451 | volatile u32 EU27; /* SDMA + 0xdc */ |
| 452 | volatile u32 EU30; /* SDMA + 0xe0 */ |
| 453 | volatile u32 EU31; /* SDMA + 0xe4 */ |
| 454 | volatile u32 EU32; /* SDMA + 0xe8 */ |
| 455 | volatile u32 EU33; /* SDMA + 0xec */ |
| 456 | volatile u32 EU34; /* SDMA + 0xf0 */ |
| 457 | volatile u32 EU35; /* SDMA + 0xf4 */ |
| 458 | volatile u32 EU36; /* SDMA + 0xf8 */ |
| 459 | volatile u32 EU37; /* SDMA + 0xfc */ |
| 460 | }; |
| 461 | |
| 462 | /* function prototypes */ |
| 463 | void loadtask(int basetask, int tasks); |
| 464 | |
| 465 | #endif /* __ASSEMBLY__ */ |
| 466 | |
| 467 | #endif /* __ASMPPC_MPC5XXX_H */ |