wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1 | /* |
| 2 | * MPC85xx Internal Memory Map |
| 3 | * |
| 4 | * Copyright(c) 2002,2003 Motorola Inc. |
| 5 | * Xianghua Xiao (x.xiao@motorola.com) |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #ifndef __IMMAP_85xx__ |
| 10 | #define __IMMAP_85xx__ |
| 11 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 12 | /* |
| 13 | * Local-Access Registers and ECM Registers(0x0000-0x2000) |
| 14 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 15 | typedef struct ccsr_local_ecm { |
| 16 | uint ccsrbar; /* 0x0 - Control Configuration Status Registers Base Address Register */ |
| 17 | char res1[4]; |
| 18 | uint altcbar; /* 0x8 - Alternate Configuration Base Address Register */ |
| 19 | char res2[4]; |
| 20 | uint altcar; /* 0x10 - Alternate Configuration Attribute Register */ |
| 21 | char res3[12]; |
| 22 | uint bptr; /* 0x20 - Boot Page Translation Register */ |
| 23 | char res4[3044]; |
| 24 | uint lawbar0; /* 0xc08 - Local Access Window 0 Base Address Register */ |
| 25 | char res5[4]; |
| 26 | uint lawar0; /* 0xc10 - Local Access Window 0 Attributes Register */ |
| 27 | char res6[20]; |
| 28 | uint lawbar1; /* 0xc28 - Local Access Window 1 Base Address Register */ |
| 29 | char res7[4]; |
| 30 | uint lawar1; /* 0xc30 - Local Access Window 1 Attributes Register */ |
| 31 | char res8[20]; |
| 32 | uint lawbar2; /* 0xc48 - Local Access Window 2 Base Address Register */ |
| 33 | char res9[4]; |
| 34 | uint lawar2; /* 0xc50 - Local Access Window 2 Attributes Register */ |
| 35 | char res10[20]; |
| 36 | uint lawbar3; /* 0xc68 - Local Access Window 3 Base Address Register */ |
| 37 | char res11[4]; |
| 38 | uint lawar3; /* 0xc70 - Local Access Window 3 Attributes Register */ |
| 39 | char res12[20]; |
| 40 | uint lawbar4; /* 0xc88 - Local Access Window 4 Base Address Register */ |
| 41 | char res13[4]; |
| 42 | uint lawar4; /* 0xc90 - Local Access Window 4 Attributes Register */ |
| 43 | char res14[20]; |
| 44 | uint lawbar5; /* 0xca8 - Local Access Window 5 Base Address Register */ |
| 45 | char res15[4]; |
| 46 | uint lawar5; /* 0xcb0 - Local Access Window 5 Attributes Register */ |
| 47 | char res16[20]; |
| 48 | uint lawbar6; /* 0xcc8 - Local Access Window 6 Base Address Register */ |
| 49 | char res17[4]; |
| 50 | uint lawar6; /* 0xcd0 - Local Access Window 6 Attributes Register */ |
| 51 | char res18[20]; |
| 52 | uint lawbar7; /* 0xce8 - Local Access Window 7 Base Address Register */ |
| 53 | char res19[4]; |
| 54 | uint lawar7; /* 0xcf0 - Local Access Window 7 Attributes Register */ |
| 55 | char res20[780]; |
| 56 | uint eebacr; /* 0x1000 - ECM CCB Address Configuration Register */ |
| 57 | char res21[12]; |
| 58 | uint eebpcr; /* 0x1010 - ECM CCB Port Configuration Register */ |
| 59 | char res22[3564]; |
| 60 | uint eedr; /* 0x1e00 - ECM Error Detect Register */ |
| 61 | char res23[4]; |
| 62 | uint eeer; /* 0x1e08 - ECM Error Enable Register */ |
| 63 | uint eeatr; /* 0x1e0c - ECM Error Attributes Capture Register */ |
| 64 | uint eeadr; /* 0x1e10 - ECM Error Address Capture Register */ |
| 65 | char res24[492]; |
| 66 | } ccsr_local_ecm_t; |
| 67 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 68 | /* |
| 69 | * DDR memory controller registers(0x2000-0x3000) |
| 70 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 71 | typedef struct ccsr_ddr { |
| 72 | uint cs0_bnds; /* 0x2000 - DDR Chip Select 0 Memory Bounds */ |
| 73 | char res1[4]; |
| 74 | uint cs1_bnds; /* 0x2008 - DDR Chip Select 1 Memory Bounds */ |
| 75 | char res2[4]; |
| 76 | uint cs2_bnds; /* 0x2010 - DDR Chip Select 2 Memory Bounds */ |
| 77 | char res3[4]; |
| 78 | uint cs3_bnds; /* 0x2018 - DDR Chip Select 3 Memory Bounds */ |
| 79 | char res4[100]; |
| 80 | uint cs0_config; /* 0x2080 - DDR Chip Select Configuration */ |
| 81 | uint cs1_config; /* 0x2084 - DDR Chip Select Configuration */ |
| 82 | uint cs2_config; /* 0x2088 - DDR Chip Select Configuration */ |
| 83 | uint cs3_config; /* 0x208c - DDR Chip Select Configuration */ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 84 | char res5[112]; |
| 85 | uint ext_refrec; /* 0x2100 - DDR SDRAM Extended Refresh Recovery */ |
| 86 | uint timing_cfg_0; /* 0x2104 - DDR SDRAM Timing Configuration Register 0 */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 87 | uint timing_cfg_1; /* 0x2108 - DDR SDRAM Timing Configuration Register 1 */ |
| 88 | uint timing_cfg_2; /* 0x210c - DDR SDRAM Timing Configuration Register 2 */ |
| 89 | uint sdram_cfg; /* 0x2110 - DDR SDRAM Control Configuration */ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 90 | uint sdram_cfg_2; /* 0x2114 - DDR SDRAM Control Configuration 2 */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 91 | uint sdram_mode; /* 0x2118 - DDR SDRAM Mode Configuration */ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 92 | uint sdram_mode_2; /* 0x211c - DDR SDRAM Mode Configuration 2*/ |
| 93 | uint sdram_md_cntl; /* 0x2120 - DDR SDRAM Mode Control */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 94 | uint sdram_interval; /* 0x2124 - DDR SDRAM Interval Configuration */ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 95 | uint sdram_data_init; /* 0x2128 - DDR SDRAM Data initialization */ |
| 96 | char res6[4]; |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 97 | uint sdram_clk_cntl; /* 0x2130 - DDR SDRAM Clock Control */ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 98 | char res7[20]; |
| 99 | uint init_address; /* 0x2148 - DDR training initialization address */ |
| 100 | uint init_ext_address; /* 0x214C - DDR training initialization extended address */ |
| 101 | char res8_1[2728]; |
| 102 | uint ip_rev1; /* 0x2BF8 - DDR IP Block Revision 1 */ |
| 103 | uint ip_rev2; /* 0x2BFC - DDR IP Block Revision 2 */ |
| 104 | char res8_2[512]; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 105 | uint data_err_inject_hi; /* 0x2e00 - DDR Memory Data Path Error Injection Mask High */ |
| 106 | uint data_err_inject_lo; /* 0x2e04 - DDR Memory Data Path Error Injection Mask Low */ |
| 107 | uint ecc_err_inject; /* 0x2e08 - DDR Memory Data Path Error Injection Mask ECC */ |
| 108 | char res9[20]; |
| 109 | uint capture_data_hi; /* 0x2e20 - DDR Memory Data Path Read Capture High */ |
| 110 | uint capture_data_lo; /* 0x2e24 - DDR Memory Data Path Read Capture Low */ |
| 111 | uint capture_ecc; /* 0x2e28 - DDR Memory Data Path Read Capture ECC */ |
| 112 | char res10[20]; |
| 113 | uint err_detect; /* 0x2e40 - DDR Memory Error Detect */ |
| 114 | uint err_disable; /* 0x2e44 - DDR Memory Error Disable */ |
| 115 | uint err_int_en; /* 0x2e48 - DDR */ |
| 116 | uint capture_attributes; /* 0x2e4c - DDR Memory Error Attributes Capture */ |
| 117 | uint capture_address; /* 0x2e50 - DDR Memory Error Address Capture */ |
| 118 | uint capture_ext_address; /* 0x2e54 - DDR Memory Error Extended Address Capture */ |
| 119 | uint err_sbe; /* 0x2e58 - DDR Memory Single-Bit ECC Error Management */ |
| 120 | char res11[164]; |
| 121 | uint debug_1; /* 0x2f00 */ |
| 122 | uint debug_2; |
| 123 | uint debug_3; |
| 124 | uint debug_4; |
| 125 | char res12[240]; |
| 126 | } ccsr_ddr_t; |
| 127 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 128 | /* |
| 129 | * I2C Registers(0x3000-0x4000) |
| 130 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 131 | typedef struct ccsr_i2c { |
| 132 | u_char i2cadr; /* 0x3000 - I2C Address Register */ |
| 133 | #define MPC85xx_I2CADR_MASK 0xFE |
| 134 | char res1[3]; |
| 135 | u_char i2cfdr; /* 0x3004 - I2C Frequency Divider Register */ |
| 136 | #define MPC85xx_I2CFDR_MASK 0x3F |
| 137 | char res2[3]; |
| 138 | u_char i2ccr; /* 0x3008 - I2C Control Register */ |
| 139 | #define MPC85xx_I2CCR_MEN 0x80 |
| 140 | #define MPC85xx_I2CCR_MIEN 0x40 |
| 141 | #define MPC85xx_I2CCR_MSTA 0x20 |
| 142 | #define MPC85xx_I2CCR_MTX 0x10 |
| 143 | #define MPC85xx_I2CCR_TXAK 0x08 |
| 144 | #define MPC85xx_I2CCR_RSTA 0x04 |
| 145 | #define MPC85xx_I2CCR_BCST 0x01 |
| 146 | char res3[3]; |
| 147 | u_char i2csr; /* 0x300c - I2C Status Register */ |
| 148 | #define MPC85xx_I2CSR_MCF 0x80 |
| 149 | #define MPC85xx_I2CSR_MAAS 0x40 |
| 150 | #define MPC85xx_I2CSR_MBB 0x20 |
| 151 | #define MPC85xx_I2CSR_MAL 0x10 |
| 152 | #define MPC85xx_I2CSR_BCSTM 0x08 |
| 153 | #define MPC85xx_I2CSR_SRW 0x04 |
| 154 | #define MPC85xx_I2CSR_MIF 0x02 |
| 155 | #define MPC85xx_I2CSR_RXAK 0x01 |
| 156 | char res4[3]; |
| 157 | u_char i2cdr; /* 0x3010 - I2C Data Register */ |
| 158 | #define MPC85xx_I2CDR_DATA 0xFF |
| 159 | char res5[3]; |
| 160 | u_char i2cdfsrr; /* 0x3014 - I2C Digital Filtering Sampling Rate Register */ |
| 161 | #define MPC85xx_I2CDFSRR 0x3F |
| 162 | char res6[4075]; |
| 163 | } ccsr_i2c_t; |
| 164 | |
wdenk | 03f5c55 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 165 | #if defined(CONFIG_MPC8540) \ |
| 166 | || defined(CONFIG_MPC8541) \ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 167 | || defined(CONFIG_MPC8548) \ |
wdenk | 03f5c55 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 168 | || defined(CONFIG_MPC8555) |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 169 | /* DUART Registers(0x4000-0x5000) */ |
| 170 | typedef struct ccsr_duart { |
| 171 | char res1[1280]; |
| 172 | u_char urbr1_uthr1_udlb1;/* 0x4500 - URBR1, UTHR1, UDLB1 with the same address offset of 0x04500 */ |
| 173 | u_char uier1_udmb1; /* 0x4501 - UIER1, UDMB1 with the same address offset of 0x04501 */ |
| 174 | u_char uiir1_ufcr1_uafr1;/* 0x4502 - UIIR1, UFCR1, UAFR1 with the same address offset of 0x04502 */ |
| 175 | u_char ulcr1; /* 0x4503 - UART1 Line Control Register */ |
| 176 | u_char umcr1; /* 0x4504 - UART1 Modem Control Register */ |
| 177 | u_char ulsr1; /* 0x4505 - UART1 Line Status Register */ |
| 178 | u_char umsr1; /* 0x4506 - UART1 Modem Status Register */ |
| 179 | u_char uscr1; /* 0x4507 - UART1 Scratch Register */ |
| 180 | char res2[8]; |
| 181 | u_char udsr1; /* 0x4510 - UART1 DMA Status Register */ |
| 182 | char res3[239]; |
| 183 | u_char urbr2_uthr2_udlb2;/* 0x4600 - URBR2, UTHR2, UDLB2 with the same address offset of 0x04600 */ |
| 184 | u_char uier2_udmb2; /* 0x4601 - UIER2, UDMB2 with the same address offset of 0x04601 */ |
| 185 | u_char uiir2_ufcr2_uafr2;/* 0x4602 - UIIR2, UFCR2, UAFR2 with the same address offset of 0x04602 */ |
| 186 | u_char ulcr2; /* 0x4603 - UART2 Line Control Register */ |
| 187 | u_char umcr2; /* 0x4604 - UART2 Modem Control Register */ |
| 188 | u_char ulsr2; /* 0x4605 - UART2 Line Status Register */ |
| 189 | u_char umsr2; /* 0x4606 - UART2 Modem Status Register */ |
| 190 | u_char uscr2; /* 0x4607 - UART2 Scratch Register */ |
| 191 | char res4[8]; |
| 192 | u_char udsr2; /* 0x4610 - UART2 DMA Status Register */ |
| 193 | char res5[2543]; |
| 194 | } ccsr_duart_t; |
| 195 | #else /* MPC8560 uses UART on its CPM */ |
| 196 | typedef struct ccsr_duart { |
| 197 | char res[4096]; |
| 198 | } ccsr_duart_t; |
| 199 | #endif |
| 200 | |
| 201 | /* Local Bus Controller Registers(0x5000-0x6000) */ |
| 202 | /* Omitting OCeaN(0x6000) and Reserved(0x7000) block */ |
| 203 | |
| 204 | typedef struct ccsr_lbc { |
| 205 | uint br0; /* 0x5000 - LBC Base Register 0 */ |
| 206 | uint or0; /* 0x5004 - LBC Options Register 0 */ |
| 207 | uint br1; /* 0x5008 - LBC Base Register 1 */ |
| 208 | uint or1; /* 0x500c - LBC Options Register 1 */ |
| 209 | uint br2; /* 0x5010 - LBC Base Register 2 */ |
| 210 | uint or2; /* 0x5014 - LBC Options Register 2 */ |
| 211 | uint br3; /* 0x5018 - LBC Base Register 3 */ |
| 212 | uint or3; /* 0x501c - LBC Options Register 3 */ |
| 213 | uint br4; /* 0x5020 - LBC Base Register 4 */ |
| 214 | uint or4; /* 0x5024 - LBC Options Register 4 */ |
| 215 | uint br5; /* 0x5028 - LBC Base Register 5 */ |
| 216 | uint or5; /* 0x502c - LBC Options Register 5 */ |
| 217 | uint br6; /* 0x5030 - LBC Base Register 6 */ |
| 218 | uint or6; /* 0x5034 - LBC Options Register 6 */ |
| 219 | uint br7; /* 0x5038 - LBC Base Register 7 */ |
| 220 | uint or7; /* 0x503c - LBC Options Register 7 */ |
| 221 | char res1[40]; |
| 222 | uint mar; /* 0x5068 - LBC UPM Address Register */ |
| 223 | char res2[4]; |
| 224 | uint mamr; /* 0x5070 - LBC UPMA Mode Register */ |
| 225 | uint mbmr; /* 0x5074 - LBC UPMB Mode Register */ |
| 226 | uint mcmr; /* 0x5078 - LBC UPMC Mode Register */ |
| 227 | char res3[8]; |
| 228 | uint mrtpr; /* 0x5084 - LBC Memory Refresh Timer Prescaler Register */ |
| 229 | uint mdr; /* 0x5088 - LBC UPM Data Register */ |
| 230 | char res4[8]; |
| 231 | uint lsdmr; /* 0x5094 - LBC SDRAM Mode Register */ |
| 232 | char res5[8]; |
| 233 | uint lurt; /* 0x50a0 - LBC UPM Refresh Timer */ |
| 234 | uint lsrt; /* 0x50a4 - LBC SDRAM Refresh Timer */ |
| 235 | char res6[8]; |
| 236 | uint ltesr; /* 0x50b0 - LBC Transfer Error Status Register */ |
| 237 | uint ltedr; /* 0x50b4 - LBC Transfer Error Disable Register */ |
| 238 | uint lteir; /* 0x50b8 - LBC Transfer Error Interrupt Register */ |
| 239 | uint lteatr; /* 0x50bc - LBC Transfer Error Attributes Register */ |
| 240 | uint ltear; /* 0x50c0 - LBC Transfer Error Address Register */ |
| 241 | char res7[12]; |
| 242 | uint lbcr; /* 0x50d0 - LBC Configuration Register */ |
| 243 | uint lcrr; /* 0x50d4 - LBC Clock Ratio Register */ |
| 244 | char res8[12072]; |
| 245 | } ccsr_lbc_t; |
| 246 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 247 | /* |
| 248 | * PCI Registers(0x8000-0x9000) |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 249 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 250 | typedef struct ccsr_pcix { |
| 251 | uint cfg_addr; /* 0x8000 - PCIX Configuration Address Register */ |
| 252 | uint cfg_data; /* 0x8004 - PCIX Configuration Data Register */ |
| 253 | uint int_ack; /* 0x8008 - PCIX Interrupt Acknowledge Register */ |
| 254 | char res1[3060]; |
| 255 | uint potar0; /* 0x8c00 - PCIX Outbound Transaction Address Register 0 */ |
| 256 | uint potear0; /* 0x8c04 - PCIX Outbound Translation Extended Address Register 0 */ |
| 257 | uint powbar0; /* 0x8c08 - PCIX Outbound Window Base Address Register 0 */ |
| 258 | uint powbear0; /* 0x8c0c - PCIX Outbound Window Base Extended Address Register 0 */ |
| 259 | uint powar0; /* 0x8c10 - PCIX Outbound Window Attributes Register 0 */ |
| 260 | char res2[12]; |
| 261 | uint potar1; /* 0x8c20 - PCIX Outbound Transaction Address Register 1 */ |
| 262 | uint potear1; /* 0x8c24 - PCIX Outbound Translation Extended Address Register 1 */ |
| 263 | uint powbar1; /* 0x8c28 - PCIX Outbound Window Base Address Register 1 */ |
| 264 | uint powbear1; /* 0x8c2c - PCIX Outbound Window Base Extended Address Register 1 */ |
| 265 | uint powar1; /* 0x8c30 - PCIX Outbound Window Attributes Register 1 */ |
| 266 | char res3[12]; |
| 267 | uint potar2; /* 0x8c40 - PCIX Outbound Transaction Address Register 2 */ |
| 268 | uint potear2; /* 0x8c44 - PCIX Outbound Translation Extended Address Register 2 */ |
| 269 | uint powbar2; /* 0x8c48 - PCIX Outbound Window Base Address Register 2 */ |
| 270 | uint powbear2; /* 0x8c4c - PCIX Outbound Window Base Extended Address Register 2 */ |
| 271 | uint powar2; /* 0x8c50 - PCIX Outbound Window Attributes Register 2 */ |
| 272 | char res4[12]; |
| 273 | uint potar3; /* 0x8c60 - PCIX Outbound Transaction Address Register 3 */ |
| 274 | uint potear3; /* 0x8c64 - PCIX Outbound Translation Extended Address Register 3 */ |
| 275 | uint powbar3; /* 0x8c68 - PCIX Outbound Window Base Address Register 3 */ |
| 276 | uint powbear3; /* 0x8c6c - PCIX Outbound Window Base Extended Address Register 3 */ |
| 277 | uint powar3; /* 0x8c70 - PCIX Outbound Window Attributes Register 3 */ |
| 278 | char res5[12]; |
| 279 | uint potar4; /* 0x8c80 - PCIX Outbound Transaction Address Register 4 */ |
| 280 | uint potear4; /* 0x8c84 - PCIX Outbound Translation Extended Address Register 4 */ |
| 281 | uint powbar4; /* 0x8c88 - PCIX Outbound Window Base Address Register 4 */ |
| 282 | uint powbear4; /* 0x8c8c - PCIX Outbound Window Base Extended Address Register 4 */ |
| 283 | uint powar4; /* 0x8c90 - PCIX Outbound Window Attributes Register 4 */ |
| 284 | char res6[268]; |
| 285 | uint pitar3; /* 0x8da0 - PCIX Inbound Translation Address Register 3 */ |
| 286 | uint pitear3; /* 0x8da4 - PCIX Inbound Translation Extended Address Register 3 */ |
| 287 | uint piwbar3; /* 0x8da8 - PCIX Inbound Window Base Address Register 3 */ |
| 288 | uint piwbear3; /* 0x8dac - PCIX Inbound Window Base Extended Address Register 3 */ |
| 289 | uint piwar3; /* 0x8db0 - PCIX Inbound Window Attributes Register 3 */ |
| 290 | char res7[12]; |
| 291 | uint pitar2; /* 0x8dc0 - PCIX Inbound Translation Address Register 2 */ |
| 292 | uint pitear2; /* 0x8dc4 - PCIX Inbound Translation Extended Address Register 2 */ |
| 293 | uint piwbar2; /* 0x8dc8 - PCIX Inbound Window Base Address Register 2 */ |
| 294 | uint piwbear2; /* 0x8dcc - PCIX Inbound Window Base Extended Address Register 2 */ |
| 295 | uint piwar2; /* 0x8dd0 - PCIX Inbound Window Attributes Register 2 */ |
| 296 | char res8[12]; |
| 297 | uint pitar1; /* 0x8de0 - PCIX Inbound Translation Address Register 1 */ |
| 298 | uint pitear1; /* 0x8de4 - PCIX Inbound Translation Extended Address Register 1 */ |
| 299 | uint piwbar1; /* 0x8de8 - PCIX Inbound Window Base Address Register 1 */ |
| 300 | char res9[4]; |
| 301 | uint piwar1; /* 0x8df0 - PCIX Inbound Window Attributes Register 1 */ |
| 302 | char res10[12]; |
| 303 | uint pedr; /* 0x8e00 - PCIX Error Detect Register */ |
| 304 | uint pecdr; /* 0x8e04 - PCIX Error Capture Disable Register */ |
| 305 | uint peer; /* 0x8e08 - PCIX Error Enable Register */ |
| 306 | uint peattrcr; /* 0x8e0c - PCIX Error Attributes Capture Register */ |
| 307 | uint peaddrcr; /* 0x8e10 - PCIX Error Address Capture Register */ |
| 308 | uint peextaddrcr; /* 0x8e14 - PCIX Error Extended Address Capture Register */ |
| 309 | uint pedlcr; /* 0x8e18 - PCIX Error Data Low Capture Register */ |
| 310 | uint pedhcr; /* 0x8e1c - PCIX Error Error Data High Capture Register */ |
Matthew McClintock | 0874546 | 2006-06-28 10:45:17 -0500 | [diff] [blame^] | 311 | uint gas_timr; /* 0x8e20 - PCIX Gasket Timer Register */ |
| 312 | char res11[476]; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 313 | } ccsr_pcix_t; |
| 314 | |
Matthew McClintock | 0874546 | 2006-06-28 10:45:17 -0500 | [diff] [blame^] | 315 | #define PCIX_COMMAND 0x62 |
| 316 | #define POWAR_EN 0x80000000 |
| 317 | #define POWAR_IO_READ 0x00080000 |
| 318 | #define POWAR_MEM_READ 0x00040000 |
| 319 | #define POWAR_IO_WRITE 0x00008000 |
| 320 | #define POWAR_MEM_WRITE 0x00004000 |
| 321 | #define POWAR_MEM_512M 0x0000001c |
| 322 | #define POWAR_IO_1M 0x00000013 |
| 323 | |
| 324 | #define PIWAR_EN 0x80000000 |
| 325 | #define PIWAR_PF 0x20000000 |
| 326 | #define PIWAR_LOCAL 0x00f00000 |
| 327 | #define PIWAR_READ_SNOOP 0x00050000 |
| 328 | #define PIWAR_WRITE_SNOOP 0x00005000 |
| 329 | #define PIWAR_MEM_2G 0x0000001e |
| 330 | |
| 331 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 332 | /* |
| 333 | * L2 Cache Registers(0x2_0000-0x2_1000) |
| 334 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 335 | typedef struct ccsr_l2cache { |
| 336 | uint l2ctl; /* 0x20000 - L2 configuration register 0 */ |
| 337 | char res1[12]; |
| 338 | uint l2cewar0; /* 0x20010 - L2 cache external write address register 0 */ |
| 339 | char res2[4]; |
| 340 | uint l2cewcr0; /* 0x20018 - L2 cache external write control register 0 */ |
| 341 | char res3[4]; |
| 342 | uint l2cewar1; /* 0x20020 - L2 cache external write address register 1 */ |
| 343 | char res4[4]; |
| 344 | uint l2cewcr1; /* 0x20028 - L2 cache external write control register 1 */ |
| 345 | char res5[4]; |
| 346 | uint l2cewar2; /* 0x20030 - L2 cache external write address register 2 */ |
| 347 | char res6[4]; |
| 348 | uint l2cewcr2; /* 0x20038 - L2 cache external write control register 2 */ |
| 349 | char res7[4]; |
| 350 | uint l2cewar3; /* 0x20040 - L2 cache external write address register 3 */ |
| 351 | char res8[4]; |
| 352 | uint l2cewcr3; /* 0x20048 - L2 cache external write control register 3 */ |
| 353 | char res9[180]; |
| 354 | uint l2srbar0; /* 0x20100 - L2 memory-mapped SRAM base address register 0 */ |
| 355 | char res10[4]; |
| 356 | uint l2srbar1; /* 0x20108 - L2 memory-mapped SRAM base address register 1 */ |
| 357 | char res11[3316]; |
| 358 | uint l2errinjhi; /* 0x20e00 - L2 error injection mask high register */ |
| 359 | uint l2errinjlo; /* 0x20e04 - L2 error injection mask low register */ |
| 360 | uint l2errinjctl; /* 0x20e08 - L2 error injection tag/ECC control register */ |
| 361 | char res12[20]; |
| 362 | uint l2captdatahi; /* 0x20e20 - L2 error data high capture register */ |
| 363 | uint l2captdatalo; /* 0x20e24 - L2 error data low capture register */ |
| 364 | uint l2captecc; /* 0x20e28 - L2 error ECC capture register */ |
| 365 | char res13[20]; |
| 366 | uint l2errdet; /* 0x20e40 - L2 error detect register */ |
| 367 | uint l2errdis; /* 0x20e44 - L2 error disable register */ |
| 368 | uint l2errinten; /* 0x20e48 - L2 error interrupt enable register */ |
| 369 | uint l2errattr; /* 0x20e4c - L2 error attributes capture register */ |
| 370 | uint l2erraddr; /* 0x20e50 - L2 error address capture register */ |
| 371 | char res14[4]; |
| 372 | uint l2errctl; /* 0x20e58 - L2 error control register */ |
| 373 | char res15[420]; |
| 374 | } ccsr_l2cache_t; |
| 375 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 376 | /* |
| 377 | * DMA Registers(0x2_1000-0x2_2000) |
| 378 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 379 | typedef struct ccsr_dma { |
| 380 | char res1[256]; |
| 381 | uint mr0; /* 0x21100 - DMA 0 Mode Register */ |
| 382 | uint sr0; /* 0x21104 - DMA 0 Status Register */ |
| 383 | char res2[4]; |
| 384 | uint clndar0; /* 0x2110c - DMA 0 Current Link Descriptor Address Register */ |
| 385 | uint satr0; /* 0x21110 - DMA 0 Source Attributes Register */ |
| 386 | uint sar0; /* 0x21114 - DMA 0 Source Address Register */ |
| 387 | uint datr0; /* 0x21118 - DMA 0 Destination Attributes Register */ |
| 388 | uint dar0; /* 0x2111c - DMA 0 Destination Address Register */ |
| 389 | uint bcr0; /* 0x21120 - DMA 0 Byte Count Register */ |
| 390 | char res3[4]; |
| 391 | uint nlndar0; /* 0x21128 - DMA 0 Next Link Descriptor Address Register */ |
| 392 | char res4[8]; |
| 393 | uint clabdar0; /* 0x21134 - DMA 0 Current List - Alternate Base Descriptor Address Register */ |
| 394 | char res5[4]; |
| 395 | uint nlsdar0; /* 0x2113c - DMA 0 Next List Descriptor Address Register */ |
| 396 | uint ssr0; /* 0x21140 - DMA 0 Source Stride Register */ |
| 397 | uint dsr0; /* 0x21144 - DMA 0 Destination Stride Register */ |
| 398 | char res6[56]; |
| 399 | uint mr1; /* 0x21180 - DMA 1 Mode Register */ |
| 400 | uint sr1; /* 0x21184 - DMA 1 Status Register */ |
| 401 | char res7[4]; |
| 402 | uint clndar1; /* 0x2118c - DMA 1 Current Link Descriptor Address Register */ |
| 403 | uint satr1; /* 0x21190 - DMA 1 Source Attributes Register */ |
| 404 | uint sar1; /* 0x21194 - DMA 1 Source Address Register */ |
| 405 | uint datr1; /* 0x21198 - DMA 1 Destination Attributes Register */ |
| 406 | uint dar1; /* 0x2119c - DMA 1 Destination Address Register */ |
| 407 | uint bcr1; /* 0x211a0 - DMA 1 Byte Count Register */ |
| 408 | char res8[4]; |
| 409 | uint nlndar1; /* 0x211a8 - DMA 1 Next Link Descriptor Address Register */ |
| 410 | char res9[8]; |
| 411 | uint clabdar1; /* 0x211b4 - DMA 1 Current List - Alternate Base Descriptor Address Register */ |
| 412 | char res10[4]; |
| 413 | uint nlsdar1; /* 0x211bc - DMA 1 Next List Descriptor Address Register */ |
| 414 | uint ssr1; /* 0x211c0 - DMA 1 Source Stride Register */ |
| 415 | uint dsr1; /* 0x211c4 - DMA 1 Destination Stride Register */ |
| 416 | char res11[56]; |
| 417 | uint mr2; /* 0x21200 - DMA 2 Mode Register */ |
| 418 | uint sr2; /* 0x21204 - DMA 2 Status Register */ |
| 419 | char res12[4]; |
| 420 | uint clndar2; /* 0x2120c - DMA 2 Current Link Descriptor Address Register */ |
| 421 | uint satr2; /* 0x21210 - DMA 2 Source Attributes Register */ |
| 422 | uint sar2; /* 0x21214 - DMA 2 Source Address Register */ |
| 423 | uint datr2; /* 0x21218 - DMA 2 Destination Attributes Register */ |
| 424 | uint dar2; /* 0x2121c - DMA 2 Destination Address Register */ |
| 425 | uint bcr2; /* 0x21220 - DMA 2 Byte Count Register */ |
| 426 | char res13[4]; |
| 427 | uint nlndar2; /* 0x21228 - DMA 2 Next Link Descriptor Address Register */ |
| 428 | char res14[8]; |
| 429 | uint clabdar2; /* 0x21234 - DMA 2 Current List - Alternate Base Descriptor Address Register */ |
| 430 | char res15[4]; |
| 431 | uint nlsdar2; /* 0x2123c - DMA 2 Next List Descriptor Address Register */ |
| 432 | uint ssr2; /* 0x21240 - DMA 2 Source Stride Register */ |
| 433 | uint dsr2; /* 0x21244 - DMA 2 Destination Stride Register */ |
| 434 | char res16[56]; |
| 435 | uint mr3; /* 0x21280 - DMA 3 Mode Register */ |
| 436 | uint sr3; /* 0x21284 - DMA 3 Status Register */ |
| 437 | char res17[4]; |
| 438 | uint clndar3; /* 0x2128c - DMA 3 Current Link Descriptor Address Register */ |
| 439 | uint satr3; /* 0x21290 - DMA 3 Source Attributes Register */ |
| 440 | uint sar3; /* 0x21294 - DMA 3 Source Address Register */ |
| 441 | uint datr3; /* 0x21298 - DMA 3 Destination Attributes Register */ |
| 442 | uint dar3; /* 0x2129c - DMA 3 Destination Address Register */ |
| 443 | uint bcr3; /* 0x212a0 - DMA 3 Byte Count Register */ |
| 444 | char res18[4]; |
| 445 | uint nlndar3; /* 0x212a8 - DMA 3 Next Link Descriptor Address Register */ |
| 446 | char res19[8]; |
| 447 | uint clabdar3; /* 0x212b4 - DMA 3 Current List - Alternate Base Descriptor Address Register */ |
| 448 | char res20[4]; |
| 449 | uint nlsdar3; /* 0x212bc - DMA 3 Next List Descriptor Address Register */ |
| 450 | uint ssr3; /* 0x212c0 - DMA 3 Source Stride Register */ |
| 451 | uint dsr3; /* 0x212c4 - DMA 3 Destination Stride Register */ |
| 452 | char res21[56]; |
| 453 | uint dgsr; /* 0x21300 - DMA General Status Register */ |
| 454 | char res22[11516]; |
| 455 | } ccsr_dma_t; |
| 456 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 457 | /* |
| 458 | * tsec1 tsec2: 24000-26000 |
| 459 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 460 | typedef struct ccsr_tsec { |
| 461 | char res1[16]; |
| 462 | uint ievent; /* 0x24010 - Interrupt Event Register */ |
| 463 | uint imask; /* 0x24014 - Interrupt Mask Register */ |
| 464 | uint edis; /* 0x24018 - Error Disabled Register */ |
| 465 | char res2[4]; |
| 466 | uint ecntrl; /* 0x24020 - Ethernet Control Register */ |
| 467 | uint minflr; /* 0x24024 - Minimum Frame Length Register */ |
| 468 | uint ptv; /* 0x24028 - Pause Time Value Register */ |
| 469 | uint dmactrl; /* 0x2402c - DMA Control Register */ |
| 470 | uint tbipa; /* 0x24030 - TBI PHY Address Register */ |
| 471 | char res3[88]; |
| 472 | uint fifo_tx_thr; /* 0x2408c - FIFO transmit threshold register */ |
| 473 | char res4[8]; |
| 474 | uint fifo_tx_starve; /* 0x24098 - FIFO transmit starve register */ |
| 475 | uint fifo_tx_starve_shutoff; /* 0x2409c - FIFO transmit starve shutoff register */ |
| 476 | char res5[96]; |
| 477 | uint tctrl; /* 0x24100 - Transmit Control Register */ |
| 478 | uint tstat; /* 0x24104 - Transmit Status Register */ |
| 479 | char res6[4]; |
| 480 | uint tbdlen; /* 0x2410c - Transmit Buffer Descriptor Data Length Register */ |
| 481 | char res7[16]; |
| 482 | uint ctbptrh; /* 0x24120 - Current Transmit Buffer Descriptor Pointer High Register */ |
| 483 | uint ctbptr; /* 0x24124 - Current Transmit Buffer Descriptor Pointer Register */ |
| 484 | char res8[88]; |
| 485 | uint tbptrh; /* 0x24180 - Transmit Buffer Descriptor Pointer High Register */ |
| 486 | uint tbptr; /* 0x24184 - Transmit Buffer Descriptor Pointer Low Register */ |
| 487 | char res9[120]; |
| 488 | uint tbaseh; /* 0x24200 - Transmit Descriptor Base Address High Register */ |
| 489 | uint tbase; /* 0x24204 - Transmit Descriptor Base Address Register */ |
| 490 | char res10[168]; |
| 491 | uint ostbd; /* 0x242b0 - Out-of-Sequence Transmit Buffer Descriptor Register */ |
| 492 | uint ostbdp; /* 0x242b4 - Out-of-Sequence Transmit Data Buffer Pointer Register */ |
| 493 | uint os32tbdp; /* 0x242b8 - Out-of-Sequence 32 Bytes Transmit Data Buffer Pointer Low Register */ |
| 494 | uint os32iptrh; /* 0x242bc - Out-of-Sequence 32 Bytes Transmit Insert Pointer High Register */ |
| 495 | uint os32iptrl; /* 0x242c0 - Out-of-Sequence 32 Bytes Transmit Insert Pointer Low Register */ |
| 496 | uint os32tbdr; /* 0x242c4 - Out-of-Sequence 32 Bytes Transmit Reserved Register */ |
| 497 | uint os32iil; /* 0x242c8 - Out-of-Sequence 32 Bytes Transmit Insert Index/Length Register */ |
| 498 | char res11[52]; |
| 499 | uint rctrl; /* 0x24300 - Receive Control Register */ |
| 500 | uint rstat; /* 0x24304 - Receive Status Register */ |
| 501 | char res12[4]; |
| 502 | uint rbdlen; /* 0x2430c - RxBD Data Length Register */ |
| 503 | char res13[16]; |
| 504 | uint crbptrh; /* 0x24320 - Current Receive Buffer Descriptor Pointer High */ |
| 505 | uint crbptr; /* 0x24324 - Current Receive Buffer Descriptor Pointer */ |
| 506 | char res14[24]; |
| 507 | uint mrblr; /* 0x24340 - Maximum Receive Buffer Length Register */ |
| 508 | uint mrblr2r3; /* 0x24344 - Maximum Receive Buffer Length R2R3 Register */ |
| 509 | char res15[56]; |
| 510 | uint rbptrh; /* 0x24380 - Receive Buffer Descriptor Pointer High 0 */ |
| 511 | uint rbptr; /* 0x24384 - Receive Buffer Descriptor Pointer */ |
| 512 | uint rbptrh1; /* 0x24388 - Receive Buffer Descriptor Pointer High 1 */ |
| 513 | uint rbptrl1; /* 0x2438c - Receive Buffer Descriptor Pointer Low 1 */ |
| 514 | uint rbptrh2; /* 0x24390 - Receive Buffer Descriptor Pointer High 2 */ |
| 515 | uint rbptrl2; /* 0x24394 - Receive Buffer Descriptor Pointer Low 2 */ |
| 516 | uint rbptrh3; /* 0x24398 - Receive Buffer Descriptor Pointer High 3 */ |
| 517 | uint rbptrl3; /* 0x2439c - Receive Buffer Descriptor Pointer Low 3 */ |
| 518 | char res16[96]; |
| 519 | uint rbaseh; /* 0x24400 - Receive Descriptor Base Address High 0 */ |
| 520 | uint rbase; /* 0x24404 - Receive Descriptor Base Address */ |
| 521 | uint rbaseh1; /* 0x24408 - Receive Descriptor Base Address High 1 */ |
| 522 | uint rbasel1; /* 0x2440c - Receive Descriptor Base Address Low 1 */ |
| 523 | uint rbaseh2; /* 0x24410 - Receive Descriptor Base Address High 2 */ |
| 524 | uint rbasel2; /* 0x24414 - Receive Descriptor Base Address Low 2 */ |
| 525 | uint rbaseh3; /* 0x24418 - Receive Descriptor Base Address High 3 */ |
| 526 | uint rbasel3; /* 0x2441c - Receive Descriptor Base Address Low 3 */ |
| 527 | char res17[224]; |
| 528 | uint maccfg1; /* 0x24500 - MAC Configuration 1 Register */ |
| 529 | uint maccfg2; /* 0x24504 - MAC Configuration 2 Register */ |
| 530 | uint ipgifg; /* 0x24508 - Inter Packet Gap/Inter Frame Gap Register */ |
| 531 | uint hafdup; /* 0x2450c - Half Duplex Register */ |
| 532 | uint maxfrm; /* 0x24510 - Maximum Frame Length Register */ |
| 533 | char res18[12]; |
| 534 | uint miimcfg; /* 0x24520 - MII Management Configuration Register */ |
| 535 | uint miimcom; /* 0x24524 - MII Management Command Register */ |
| 536 | uint miimadd; /* 0x24528 - MII Management Address Register */ |
| 537 | uint miimcon; /* 0x2452c - MII Management Control Register */ |
| 538 | uint miimstat; /* 0x24530 - MII Management Status Register */ |
| 539 | uint miimind; /* 0x24534 - MII Management Indicator Register */ |
| 540 | char res19[4]; |
| 541 | uint ifstat; /* 0x2453c - Interface Status Register */ |
| 542 | uint macstnaddr1; /* 0x24540 - Station Address Part 1 Register */ |
| 543 | uint macstnaddr2; /* 0x24544 - Station Address Part 2 Register */ |
| 544 | char res20[312]; |
| 545 | uint tr64; /* 0x24680 - Transmit and Receive 64-byte Frame Counter */ |
| 546 | uint tr127; /* 0x24684 - Transmit and Receive 65-127 byte Frame Counter */ |
| 547 | uint tr255; /* 0x24688 - Transmit and Receive 128-255 byte Frame Counter */ |
| 548 | uint tr511; /* 0x2468c - Transmit and Receive 256-511 byte Frame Counter */ |
| 549 | uint tr1k; /* 0x24690 - Transmit and Receive 512-1023 byte Frame Counter */ |
| 550 | uint trmax; /* 0x24694 - Transmit and Receive 1024-1518 byte Frame Counter */ |
| 551 | uint trmgv; /* 0x24698 - Transmit and Receive 1519-1522 byte Good VLAN Frame */ |
| 552 | uint rbyt; /* 0x2469c - Receive Byte Counter */ |
| 553 | uint rpkt; /* 0x246a0 - Receive Packet Counter */ |
| 554 | uint rfcs; /* 0x246a4 - Receive FCS Error Counter */ |
| 555 | uint rmca; /* 0x246a8 - Receive Multicast Packet Counter */ |
| 556 | uint rbca; /* 0x246ac - Receive Broadcast Packet Counter */ |
| 557 | uint rxcf; /* 0x246b0 - Receive Control Frame Packet Counter */ |
| 558 | uint rxpf; /* 0x246b4 - Receive Pause Frame Packet Counter */ |
| 559 | uint rxuo; /* 0x246b8 - Receive Unknown OP Code Counter */ |
| 560 | uint raln; /* 0x246bc - Receive Alignment Error Counter */ |
| 561 | uint rflr; /* 0x246c0 - Receive Frame Length Error Counter */ |
| 562 | uint rcde; /* 0x246c4 - Receive Code Error Counter */ |
| 563 | uint rcse; /* 0x246c8 - Receive Carrier Sense Error Counter */ |
| 564 | uint rund; /* 0x246cc - Receive Undersize Packet Counter */ |
| 565 | uint rovr; /* 0x246d0 - Receive Oversize Packet Counter */ |
| 566 | uint rfrg; /* 0x246d4 - Receive Fragments Counter */ |
| 567 | uint rjbr; /* 0x246d8 - Receive Jabber Counter */ |
| 568 | uint rdrp; /* 0x246dc - Receive Drop Counter */ |
| 569 | uint tbyt; /* 0x246e0 - Transmit Byte Counter Counter */ |
| 570 | uint tpkt; /* 0x246e4 - Transmit Packet Counter */ |
| 571 | uint tmca; /* 0x246e8 - Transmit Multicast Packet Counter */ |
| 572 | uint tbca; /* 0x246ec - Transmit Broadcast Packet Counter */ |
| 573 | uint txpf; /* 0x246f0 - Transmit Pause Control Frame Counter */ |
| 574 | uint tdfr; /* 0x246f4 - Transmit Deferral Packet Counter */ |
| 575 | uint tedf; /* 0x246f8 - Transmit Excessive Deferral Packet Counter */ |
| 576 | uint tscl; /* 0x246fc - Transmit Single Collision Packet Counter */ |
| 577 | uint tmcl; /* 0x24700 - Transmit Multiple Collision Packet Counter */ |
| 578 | uint tlcl; /* 0x24704 - Transmit Late Collision Packet Counter */ |
| 579 | uint txcl; /* 0x24708 - Transmit Excessive Collision Packet Counter */ |
| 580 | uint tncl; /* 0x2470c - Transmit Total Collision Counter */ |
| 581 | char res21[4]; |
| 582 | uint tdrp; /* 0x24714 - Transmit Drop Frame Counter */ |
| 583 | uint tjbr; /* 0x24718 - Transmit Jabber Frame Counter */ |
| 584 | uint tfcs; /* 0x2471c - Transmit FCS Error Counter */ |
| 585 | uint txcf; /* 0x24720 - Transmit Control Frame Counter */ |
| 586 | uint tovr; /* 0x24724 - Transmit Oversize Frame Counter */ |
| 587 | uint tund; /* 0x24728 - Transmit Undersize Frame Counter */ |
| 588 | uint tfrg; /* 0x2472c - Transmit Fragments Frame Counter */ |
| 589 | uint car1; /* 0x24730 - Carry Register One */ |
| 590 | uint car2; /* 0x24734 - Carry Register Two */ |
| 591 | uint cam1; /* 0x24738 - Carry Mask Register One */ |
| 592 | uint cam2; /* 0x2473c - Carry Mask Register Two */ |
| 593 | char res22[192]; |
| 594 | uint iaddr0; /* 0x24800 - Indivdual address register 0 */ |
| 595 | uint iaddr1; /* 0x24804 - Indivdual address register 1 */ |
| 596 | uint iaddr2; /* 0x24808 - Indivdual address register 2 */ |
| 597 | uint iaddr3; /* 0x2480c - Indivdual address register 3 */ |
| 598 | uint iaddr4; /* 0x24810 - Indivdual address register 4 */ |
| 599 | uint iaddr5; /* 0x24814 - Indivdual address register 5 */ |
| 600 | uint iaddr6; /* 0x24818 - Indivdual address register 6 */ |
| 601 | uint iaddr7; /* 0x2481c - Indivdual address register 7 */ |
| 602 | char res23[96]; |
| 603 | uint gaddr0; /* 0x24880 - Global address register 0 */ |
| 604 | uint gaddr1; /* 0x24884 - Global address register 1 */ |
| 605 | uint gaddr2; /* 0x24888 - Global address register 2 */ |
| 606 | uint gaddr3; /* 0x2488c - Global address register 3 */ |
| 607 | uint gaddr4; /* 0x24890 - Global address register 4 */ |
| 608 | uint gaddr5; /* 0x24894 - Global address register 5 */ |
| 609 | uint gaddr6; /* 0x24898 - Global address register 6 */ |
| 610 | uint gaddr7; /* 0x2489c - Global address register 7 */ |
| 611 | char res24[96]; |
| 612 | uint pmd0; /* 0x24900 - Pattern Match Data Register */ |
| 613 | char res25[4]; |
| 614 | uint pmask0; /* 0x24908 - Pattern Mask Register */ |
| 615 | char res26[4]; |
| 616 | uint pcntrl0; /* 0x24910 - Pattern Match Control Register */ |
| 617 | char res27[4]; |
| 618 | uint pattrb0; /* 0x24918 - Pattern Match Attributes Register */ |
| 619 | uint pattrbeli0; /* 0x2491c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 620 | uint pmd1; /* 0x24920 - Pattern Match Data Register */ |
| 621 | char res28[4]; |
| 622 | uint pmask1; /* 0x24928 - Pattern Mask Register */ |
| 623 | char res29[4]; |
| 624 | uint pcntrl1; /* 0x24930 - Pattern Match Control Register */ |
| 625 | char res30[4]; |
| 626 | uint pattrb1; /* 0x24938 - Pattern Match Attributes Register */ |
| 627 | uint pattrbeli1; /* 0x2493c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 628 | uint pmd2; /* 0x24940 - Pattern Match Data Register */ |
| 629 | char res31[4]; |
| 630 | uint pmask2; /* 0x24948 - Pattern Mask Register */ |
| 631 | char res32[4]; |
| 632 | uint pcntrl2; /* 0x24950 - Pattern Match Control Register */ |
| 633 | char res33[4]; |
| 634 | uint pattrb2; /* 0x24958 - Pattern Match Attributes Register */ |
| 635 | uint pattrbeli2; /* 0x2495c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 636 | uint pmd3; /* 0x24960 - Pattern Match Data Register */ |
| 637 | char res34[4]; |
| 638 | uint pmask3; /* 0x24968 - Pattern Mask Register */ |
| 639 | char res35[4]; |
| 640 | uint pcntrl3; /* 0x24970 - Pattern Match Control Register */ |
| 641 | char res36[4]; |
| 642 | uint pattrb3; /* 0x24978 - Pattern Match Attributes Register */ |
| 643 | uint pattrbeli3; /* 0x2497c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 644 | uint pmd4; /* 0x24980 - Pattern Match Data Register */ |
| 645 | char res37[4]; |
| 646 | uint pmask4; /* 0x24988 - Pattern Mask Register */ |
| 647 | char res38[4]; |
| 648 | uint pcntrl4; /* 0x24990 - Pattern Match Control Register */ |
| 649 | char res39[4]; |
| 650 | uint pattrb4; /* 0x24998 - Pattern Match Attributes Register */ |
| 651 | uint pattrbeli4; /* 0x2499c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 652 | uint pmd5; /* 0x249a0 - Pattern Match Data Register */ |
| 653 | char res40[4]; |
| 654 | uint pmask5; /* 0x249a8 - Pattern Mask Register */ |
| 655 | char res41[4]; |
| 656 | uint pcntrl5; /* 0x249b0 - Pattern Match Control Register */ |
| 657 | char res42[4]; |
| 658 | uint pattrb5; /* 0x249b8 - Pattern Match Attributes Register */ |
| 659 | uint pattrbeli5; /* 0x249bc - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 660 | uint pmd6; /* 0x249c0 - Pattern Match Data Register */ |
| 661 | char res43[4]; |
| 662 | uint pmask6; /* 0x249c8 - Pattern Mask Register */ |
| 663 | char res44[4]; |
| 664 | uint pcntrl6; /* 0x249d0 - Pattern Match Control Register */ |
| 665 | char res45[4]; |
| 666 | uint pattrb6; /* 0x249d8 - Pattern Match Attributes Register */ |
| 667 | uint pattrbeli6; /* 0x249dc - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 668 | uint pmd7; /* 0x249e0 - Pattern Match Data Register */ |
| 669 | char res46[4]; |
| 670 | uint pmask7; /* 0x249e8 - Pattern Mask Register */ |
| 671 | char res47[4]; |
| 672 | uint pcntrl7; /* 0x249f0 - Pattern Match Control Register */ |
| 673 | char res48[4]; |
| 674 | uint pattrb7; /* 0x249f8 - Pattern Match Attributes Register */ |
| 675 | uint pattrbeli7; /* 0x249fc - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 676 | uint pmd8; /* 0x24a00 - Pattern Match Data Register */ |
| 677 | char res49[4]; |
| 678 | uint pmask8; /* 0x24a08 - Pattern Mask Register */ |
| 679 | char res50[4]; |
| 680 | uint pcntrl8; /* 0x24a10 - Pattern Match Control Register */ |
| 681 | char res51[4]; |
| 682 | uint pattrb8; /* 0x24a18 - Pattern Match Attributes Register */ |
| 683 | uint pattrbeli8; /* 0x24a1c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 684 | uint pmd9; /* 0x24a20 - Pattern Match Data Register */ |
| 685 | char res52[4]; |
| 686 | uint pmask9; /* 0x24a28 - Pattern Mask Register */ |
| 687 | char res53[4]; |
| 688 | uint pcntrl9; /* 0x24a30 - Pattern Match Control Register */ |
| 689 | char res54[4]; |
| 690 | uint pattrb9; /* 0x24a38 - Pattern Match Attributes Register */ |
| 691 | uint pattrbeli9; /* 0x24a3c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 692 | uint pmd10; /* 0x24a40 - Pattern Match Data Register */ |
| 693 | char res55[4]; |
| 694 | uint pmask10; /* 0x24a48 - Pattern Mask Register */ |
| 695 | char res56[4]; |
| 696 | uint pcntrl10; /* 0x24a50 - Pattern Match Control Register */ |
| 697 | char res57[4]; |
| 698 | uint pattrb10; /* 0x24a58 - Pattern Match Attributes Register */ |
| 699 | uint pattrbeli10; /* 0x24a5c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 700 | uint pmd11; /* 0x24a60 - Pattern Match Data Register */ |
| 701 | char res58[4]; |
| 702 | uint pmask11; /* 0x24a68 - Pattern Mask Register */ |
| 703 | char res59[4]; |
| 704 | uint pcntrl11; /* 0x24a70 - Pattern Match Control Register */ |
| 705 | char res60[4]; |
| 706 | uint pattrb11; /* 0x24a78 - Pattern Match Attributes Register */ |
| 707 | uint pattrbeli11; /* 0x24a7c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 708 | uint pmd12; /* 0x24a80 - Pattern Match Data Register */ |
| 709 | char res61[4]; |
| 710 | uint pmask12; /* 0x24a88 - Pattern Mask Register */ |
| 711 | char res62[4]; |
| 712 | uint pcntrl12; /* 0x24a90 - Pattern Match Control Register */ |
| 713 | char res63[4]; |
| 714 | uint pattrb12; /* 0x24a98 - Pattern Match Attributes Register */ |
| 715 | uint pattrbeli12; /* 0x24a9c - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 716 | uint pmd13; /* 0x24aa0 - Pattern Match Data Register */ |
| 717 | char res64[4]; |
| 718 | uint pmask13; /* 0x24aa8 - Pattern Mask Register */ |
| 719 | char res65[4]; |
| 720 | uint pcntrl13; /* 0x24ab0 - Pattern Match Control Register */ |
| 721 | char res66[4]; |
| 722 | uint pattrb13; /* 0x24ab8 - Pattern Match Attributes Register */ |
| 723 | uint pattrbeli13; /* 0x24abc - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 724 | uint pmd14; /* 0x24ac0 - Pattern Match Data Register */ |
| 725 | char res67[4]; |
| 726 | uint pmask14; /* 0x24ac8 - Pattern Mask Register */ |
| 727 | char res68[4]; |
| 728 | uint pcntrl14; /* 0x24ad0 - Pattern Match Control Register */ |
| 729 | char res69[4]; |
| 730 | uint pattrb14; /* 0x24ad8 - Pattern Match Attributes Register */ |
| 731 | uint pattrbeli14; /* 0x24adc - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 732 | uint pmd15; /* 0x24ae0 - Pattern Match Data Register */ |
| 733 | char res70[4]; |
| 734 | uint pmask15; /* 0x24ae8 - Pattern Mask Register */ |
| 735 | char res71[4]; |
| 736 | uint pcntrl15; /* 0x24af0 - Pattern Match Control Register */ |
| 737 | char res72[4]; |
| 738 | uint pattrb15; /* 0x24af8 - Pattern Match Attributes Register */ |
| 739 | uint pattrbeli15; /* 0x24afc - Pattern Match Attributes Extract Length and Extract Index Register */ |
| 740 | char res73[248]; |
| 741 | uint attr; /* 0x24bf8 - Attributes Register */ |
| 742 | uint attreli; /* 0x24bfc - Attributes Extract Length and Extract Index Register */ |
| 743 | char res74[1024]; |
| 744 | } ccsr_tsec_t; |
| 745 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 746 | /* |
| 747 | * PIC Registers(0x2_6000-0x4_0000-0x8_0000) |
| 748 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 749 | typedef struct ccsr_pic { |
| 750 | char res0[106496]; /* 0x26000-0x40000 */ |
| 751 | char res1[64]; |
| 752 | uint ipidr0; /* 0x40040 - Interprocessor Interrupt Dispatch Register 0 */ |
| 753 | char res2[12]; |
| 754 | uint ipidr1; /* 0x40050 - Interprocessor Interrupt Dispatch Register 1 */ |
| 755 | char res3[12]; |
| 756 | uint ipidr2; /* 0x40060 - Interprocessor Interrupt Dispatch Register 2 */ |
| 757 | char res4[12]; |
| 758 | uint ipidr3; /* 0x40070 - Interprocessor Interrupt Dispatch Register 3 */ |
| 759 | char res5[12]; |
| 760 | uint ctpr; /* 0x40080 - Current Task Priority Register */ |
| 761 | char res6[12]; |
| 762 | uint whoami; /* 0x40090 - Who Am I Register */ |
| 763 | char res7[12]; |
| 764 | uint iack; /* 0x400a0 - Interrupt Acknowledge Register */ |
| 765 | char res8[12]; |
| 766 | uint eoi; /* 0x400b0 - End Of Interrupt Register */ |
| 767 | char res9[3916]; |
| 768 | uint frr; /* 0x41000 - Feature Reporting Register */ |
| 769 | char res10[28]; |
| 770 | uint gcr; /* 0x41020 - Global Configuration Register */ |
wdenk | 343117b | 2005-05-13 22:49:36 +0000 | [diff] [blame] | 771 | #define MPC85xx_PICGCR_RST 0x80000000 |
| 772 | #define MPC85xx_PICGCR_M 0x20000000 |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 773 | char res11[92]; |
| 774 | uint vir; /* 0x41080 - Vendor Identification Register */ |
| 775 | char res12[12]; |
| 776 | uint pir; /* 0x41090 - Processor Initialization Register */ |
| 777 | char res13[12]; |
| 778 | uint ipivpr0; /* 0x410a0 - IPI Vector/Priority Register 0 */ |
| 779 | char res14[12]; |
| 780 | uint ipivpr1; /* 0x410b0 - IPI Vector/Priority Register 1 */ |
| 781 | char res15[12]; |
| 782 | uint ipivpr2; /* 0x410c0 - IPI Vector/Priority Register 2 */ |
| 783 | char res16[12]; |
| 784 | uint ipivpr3; /* 0x410d0 - IPI Vector/Priority Register 3 */ |
| 785 | char res17[12]; |
| 786 | uint svr; /* 0x410e0 - Spurious Vector Register */ |
| 787 | char res18[12]; |
| 788 | uint tfrr; /* 0x410f0 - Timer Frequency Reporting Register */ |
| 789 | char res19[12]; |
| 790 | uint gtccr0; /* 0x41100 - Global Timer Current Count Register 0 */ |
| 791 | char res20[12]; |
| 792 | uint gtbcr0; /* 0x41110 - Global Timer Base Count Register 0 */ |
| 793 | char res21[12]; |
| 794 | uint gtvpr0; /* 0x41120 - Global Timer Vector/Priority Register 0 */ |
| 795 | char res22[12]; |
| 796 | uint gtdr0; /* 0x41130 - Global Timer Destination Register 0 */ |
| 797 | char res23[12]; |
| 798 | uint gtccr1; /* 0x41140 - Global Timer Current Count Register 1 */ |
| 799 | char res24[12]; |
| 800 | uint gtbcr1; /* 0x41150 - Global Timer Base Count Register 1 */ |
| 801 | char res25[12]; |
| 802 | uint gtvpr1; /* 0x41160 - Global Timer Vector/Priority Register 1 */ |
| 803 | char res26[12]; |
| 804 | uint gtdr1; /* 0x41170 - Global Timer Destination Register 1 */ |
| 805 | char res27[12]; |
| 806 | uint gtccr2; /* 0x41180 - Global Timer Current Count Register 2 */ |
| 807 | char res28[12]; |
| 808 | uint gtbcr2; /* 0x41190 - Global Timer Base Count Register 2 */ |
| 809 | char res29[12]; |
| 810 | uint gtvpr2; /* 0x411a0 - Global Timer Vector/Priority Register 2 */ |
| 811 | char res30[12]; |
| 812 | uint gtdr2; /* 0x411b0 - Global Timer Destination Register 2 */ |
| 813 | char res31[12]; |
| 814 | uint gtccr3; /* 0x411c0 - Global Timer Current Count Register 3 */ |
| 815 | char res32[12]; |
| 816 | uint gtbcr3; /* 0x411d0 - Global Timer Base Count Register 3 */ |
| 817 | char res33[12]; |
| 818 | uint gtvpr3; /* 0x411e0 - Global Timer Vector/Priority Register 3 */ |
| 819 | char res34[12]; |
| 820 | uint gtdr3; /* 0x411f0 - Global Timer Destination Register 3 */ |
| 821 | char res35[268]; |
| 822 | uint tcr; /* 0x41300 - Timer Control Register */ |
| 823 | char res36[12]; |
| 824 | uint irqsr0; /* 0x41310 - IRQ_OUT Summary Register 0 */ |
| 825 | char res37[12]; |
| 826 | uint irqsr1; /* 0x41320 - IRQ_OUT Summary Register 1 */ |
| 827 | char res38[12]; |
| 828 | uint cisr0; /* 0x41330 - Critical Interrupt Summary Register 0 */ |
| 829 | char res39[12]; |
| 830 | uint cisr1; /* 0x41340 - Critical Interrupt Summary Register 1 */ |
| 831 | char res40[188]; |
| 832 | uint msgr0; /* 0x41400 - Message Register 0 */ |
| 833 | char res41[12]; |
| 834 | uint msgr1; /* 0x41410 - Message Register 1 */ |
| 835 | char res42[12]; |
| 836 | uint msgr2; /* 0x41420 - Message Register 2 */ |
| 837 | char res43[12]; |
| 838 | uint msgr3; /* 0x41430 - Message Register 3 */ |
| 839 | char res44[204]; |
| 840 | uint mer; /* 0x41500 - Message Enable Register */ |
| 841 | char res45[12]; |
| 842 | uint msr; /* 0x41510 - Message Status Register */ |
| 843 | char res46[60140]; |
| 844 | uint eivpr0; /* 0x50000 - External Interrupt Vector/Priority Register 0 */ |
| 845 | char res47[12]; |
| 846 | uint eidr0; /* 0x50010 - External Interrupt Destination Register 0 */ |
| 847 | char res48[12]; |
| 848 | uint eivpr1; /* 0x50020 - External Interrupt Vector/Priority Register 1 */ |
| 849 | char res49[12]; |
| 850 | uint eidr1; /* 0x50030 - External Interrupt Destination Register 1 */ |
| 851 | char res50[12]; |
| 852 | uint eivpr2; /* 0x50040 - External Interrupt Vector/Priority Register 2 */ |
| 853 | char res51[12]; |
| 854 | uint eidr2; /* 0x50050 - External Interrupt Destination Register 2 */ |
| 855 | char res52[12]; |
| 856 | uint eivpr3; /* 0x50060 - External Interrupt Vector/Priority Register 3 */ |
| 857 | char res53[12]; |
| 858 | uint eidr3; /* 0x50070 - External Interrupt Destination Register 3 */ |
| 859 | char res54[12]; |
| 860 | uint eivpr4; /* 0x50080 - External Interrupt Vector/Priority Register 4 */ |
| 861 | char res55[12]; |
| 862 | uint eidr4; /* 0x50090 - External Interrupt Destination Register 4 */ |
| 863 | char res56[12]; |
| 864 | uint eivpr5; /* 0x500a0 - External Interrupt Vector/Priority Register 5 */ |
| 865 | char res57[12]; |
| 866 | uint eidr5; /* 0x500b0 - External Interrupt Destination Register 5 */ |
| 867 | char res58[12]; |
| 868 | uint eivpr6; /* 0x500c0 - External Interrupt Vector/Priority Register 6 */ |
| 869 | char res59[12]; |
| 870 | uint eidr6; /* 0x500d0 - External Interrupt Destination Register 6 */ |
| 871 | char res60[12]; |
| 872 | uint eivpr7; /* 0x500e0 - External Interrupt Vector/Priority Register 7 */ |
| 873 | char res61[12]; |
| 874 | uint eidr7; /* 0x500f0 - External Interrupt Destination Register 7 */ |
| 875 | char res62[12]; |
| 876 | uint eivpr8; /* 0x50100 - External Interrupt Vector/Priority Register 8 */ |
| 877 | char res63[12]; |
| 878 | uint eidr8; /* 0x50110 - External Interrupt Destination Register 8 */ |
| 879 | char res64[12]; |
| 880 | uint eivpr9; /* 0x50120 - External Interrupt Vector/Priority Register 9 */ |
| 881 | char res65[12]; |
| 882 | uint eidr9; /* 0x50130 - External Interrupt Destination Register 9 */ |
| 883 | char res66[12]; |
| 884 | uint eivpr10; /* 0x50140 - External Interrupt Vector/Priority Register 10 */ |
| 885 | char res67[12]; |
| 886 | uint eidr10; /* 0x50150 - External Interrupt Destination Register 10 */ |
| 887 | char res68[12]; |
| 888 | uint eivpr11; /* 0x50160 - External Interrupt Vector/Priority Register 11 */ |
| 889 | char res69[12]; |
| 890 | uint eidr11; /* 0x50170 - External Interrupt Destination Register 11 */ |
| 891 | char res70[140]; |
| 892 | uint iivpr0; /* 0x50200 - Internal Interrupt Vector/Priority Register 0 */ |
| 893 | char res71[12]; |
| 894 | uint iidr0; /* 0x50210 - Internal Interrupt Destination Register 0 */ |
| 895 | char res72[12]; |
| 896 | uint iivpr1; /* 0x50220 - Internal Interrupt Vector/Priority Register 1 */ |
| 897 | char res73[12]; |
| 898 | uint iidr1; /* 0x50230 - Internal Interrupt Destination Register 1 */ |
| 899 | char res74[12]; |
| 900 | uint iivpr2; /* 0x50240 - Internal Interrupt Vector/Priority Register 2 */ |
| 901 | char res75[12]; |
| 902 | uint iidr2; /* 0x50250 - Internal Interrupt Destination Register 2 */ |
| 903 | char res76[12]; |
| 904 | uint iivpr3; /* 0x50260 - Internal Interrupt Vector/Priority Register 3 */ |
| 905 | char res77[12]; |
| 906 | uint iidr3; /* 0x50270 - Internal Interrupt Destination Register 3 */ |
| 907 | char res78[12]; |
| 908 | uint iivpr4; /* 0x50280 - Internal Interrupt Vector/Priority Register 4 */ |
| 909 | char res79[12]; |
| 910 | uint iidr4; /* 0x50290 - Internal Interrupt Destination Register 4 */ |
| 911 | char res80[12]; |
| 912 | uint iivpr5; /* 0x502a0 - Internal Interrupt Vector/Priority Register 5 */ |
| 913 | char res81[12]; |
| 914 | uint iidr5; /* 0x502b0 - Internal Interrupt Destination Register 5 */ |
| 915 | char res82[12]; |
| 916 | uint iivpr6; /* 0x502c0 - Internal Interrupt Vector/Priority Register 6 */ |
| 917 | char res83[12]; |
| 918 | uint iidr6; /* 0x502d0 - Internal Interrupt Destination Register 6 */ |
| 919 | char res84[12]; |
| 920 | uint iivpr7; /* 0x502e0 - Internal Interrupt Vector/Priority Register 7 */ |
| 921 | char res85[12]; |
| 922 | uint iidr7; /* 0x502f0 - Internal Interrupt Destination Register 7 */ |
| 923 | char res86[12]; |
| 924 | uint iivpr8; /* 0x50300 - Internal Interrupt Vector/Priority Register 8 */ |
| 925 | char res87[12]; |
| 926 | uint iidr8; /* 0x50310 - Internal Interrupt Destination Register 8 */ |
| 927 | char res88[12]; |
| 928 | uint iivpr9; /* 0x50320 - Internal Interrupt Vector/Priority Register 9 */ |
| 929 | char res89[12]; |
| 930 | uint iidr9; /* 0x50330 - Internal Interrupt Destination Register 9 */ |
| 931 | char res90[12]; |
| 932 | uint iivpr10; /* 0x50340 - Internal Interrupt Vector/Priority Register 10 */ |
| 933 | char res91[12]; |
| 934 | uint iidr10; /* 0x50350 - Internal Interrupt Destination Register 10 */ |
| 935 | char res92[12]; |
| 936 | uint iivpr11; /* 0x50360 - Internal Interrupt Vector/Priority Register 11 */ |
| 937 | char res93[12]; |
| 938 | uint iidr11; /* 0x50370 - Internal Interrupt Destination Register 11 */ |
| 939 | char res94[12]; |
| 940 | uint iivpr12; /* 0x50380 - Internal Interrupt Vector/Priority Register 12 */ |
| 941 | char res95[12]; |
| 942 | uint iidr12; /* 0x50390 - Internal Interrupt Destination Register 12 */ |
| 943 | char res96[12]; |
| 944 | uint iivpr13; /* 0x503a0 - Internal Interrupt Vector/Priority Register 13 */ |
| 945 | char res97[12]; |
| 946 | uint iidr13; /* 0x503b0 - Internal Interrupt Destination Register 13 */ |
| 947 | char res98[12]; |
| 948 | uint iivpr14; /* 0x503c0 - Internal Interrupt Vector/Priority Register 14 */ |
| 949 | char res99[12]; |
| 950 | uint iidr14; /* 0x503d0 - Internal Interrupt Destination Register 14 */ |
| 951 | char res100[12]; |
| 952 | uint iivpr15; /* 0x503e0 - Internal Interrupt Vector/Priority Register 15 */ |
| 953 | char res101[12]; |
| 954 | uint iidr15; /* 0x503f0 - Internal Interrupt Destination Register 15 */ |
| 955 | char res102[12]; |
| 956 | uint iivpr16; /* 0x50400 - Internal Interrupt Vector/Priority Register 16 */ |
| 957 | char res103[12]; |
| 958 | uint iidr16; /* 0x50410 - Internal Interrupt Destination Register 16 */ |
| 959 | char res104[12]; |
| 960 | uint iivpr17; /* 0x50420 - Internal Interrupt Vector/Priority Register 17 */ |
| 961 | char res105[12]; |
| 962 | uint iidr17; /* 0x50430 - Internal Interrupt Destination Register 17 */ |
| 963 | char res106[12]; |
| 964 | uint iivpr18; /* 0x50440 - Internal Interrupt Vector/Priority Register 18 */ |
| 965 | char res107[12]; |
| 966 | uint iidr18; /* 0x50450 - Internal Interrupt Destination Register 18 */ |
| 967 | char res108[12]; |
| 968 | uint iivpr19; /* 0x50460 - Internal Interrupt Vector/Priority Register 19 */ |
| 969 | char res109[12]; |
| 970 | uint iidr19; /* 0x50470 - Internal Interrupt Destination Register 19 */ |
| 971 | char res110[12]; |
| 972 | uint iivpr20; /* 0x50480 - Internal Interrupt Vector/Priority Register 20 */ |
| 973 | char res111[12]; |
| 974 | uint iidr20; /* 0x50490 - Internal Interrupt Destination Register 20 */ |
| 975 | char res112[12]; |
| 976 | uint iivpr21; /* 0x504a0 - Internal Interrupt Vector/Priority Register 21 */ |
| 977 | char res113[12]; |
| 978 | uint iidr21; /* 0x504b0 - Internal Interrupt Destination Register 21 */ |
| 979 | char res114[12]; |
| 980 | uint iivpr22; /* 0x504c0 - Internal Interrupt Vector/Priority Register 22 */ |
| 981 | char res115[12]; |
| 982 | uint iidr22; /* 0x504d0 - Internal Interrupt Destination Register 22 */ |
| 983 | char res116[12]; |
| 984 | uint iivpr23; /* 0x504e0 - Internal Interrupt Vector/Priority Register 23 */ |
| 985 | char res117[12]; |
| 986 | uint iidr23; /* 0x504f0 - Internal Interrupt Destination Register 23 */ |
| 987 | char res118[12]; |
| 988 | uint iivpr24; /* 0x50500 - Internal Interrupt Vector/Priority Register 24 */ |
| 989 | char res119[12]; |
| 990 | uint iidr24; /* 0x50510 - Internal Interrupt Destination Register 24 */ |
| 991 | char res120[12]; |
| 992 | uint iivpr25; /* 0x50520 - Internal Interrupt Vector/Priority Register 25 */ |
| 993 | char res121[12]; |
| 994 | uint iidr25; /* 0x50530 - Internal Interrupt Destination Register 25 */ |
| 995 | char res122[12]; |
| 996 | uint iivpr26; /* 0x50540 - Internal Interrupt Vector/Priority Register 26 */ |
| 997 | char res123[12]; |
| 998 | uint iidr26; /* 0x50550 - Internal Interrupt Destination Register 26 */ |
| 999 | char res124[12]; |
| 1000 | uint iivpr27; /* 0x50560 - Internal Interrupt Vector/Priority Register 27 */ |
| 1001 | char res125[12]; |
| 1002 | uint iidr27; /* 0x50570 - Internal Interrupt Destination Register 27 */ |
| 1003 | char res126[12]; |
| 1004 | uint iivpr28; /* 0x50580 - Internal Interrupt Vector/Priority Register 28 */ |
| 1005 | char res127[12]; |
| 1006 | uint iidr28; /* 0x50590 - Internal Interrupt Destination Register 28 */ |
| 1007 | char res128[12]; |
| 1008 | uint iivpr29; /* 0x505a0 - Internal Interrupt Vector/Priority Register 29 */ |
| 1009 | char res129[12]; |
| 1010 | uint iidr29; /* 0x505b0 - Internal Interrupt Destination Register 29 */ |
| 1011 | char res130[12]; |
| 1012 | uint iivpr30; /* 0x505c0 - Internal Interrupt Vector/Priority Register 30 */ |
| 1013 | char res131[12]; |
| 1014 | uint iidr30; /* 0x505d0 - Internal Interrupt Destination Register 30 */ |
| 1015 | char res132[12]; |
| 1016 | uint iivpr31; /* 0x505e0 - Internal Interrupt Vector/Priority Register 31 */ |
| 1017 | char res133[12]; |
| 1018 | uint iidr31; /* 0x505f0 - Internal Interrupt Destination Register 31 */ |
| 1019 | char res134[4108]; |
| 1020 | uint mivpr0; /* 0x51600 - Messaging Interrupt Vector/Priority Register 0 */ |
| 1021 | char res135[12]; |
| 1022 | uint midr0; /* 0x51610 - Messaging Interrupt Destination Register 0 */ |
| 1023 | char res136[12]; |
| 1024 | uint mivpr1; /* 0x51620 - Messaging Interrupt Vector/Priority Register 1 */ |
| 1025 | char res137[12]; |
| 1026 | uint midr1; /* 0x51630 - Messaging Interrupt Destination Register 1 */ |
| 1027 | char res138[12]; |
| 1028 | uint mivpr2; /* 0x51640 - Messaging Interrupt Vector/Priority Register 2 */ |
| 1029 | char res139[12]; |
| 1030 | uint midr2; /* 0x51650 - Messaging Interrupt Destination Register 2 */ |
| 1031 | char res140[12]; |
| 1032 | uint mivpr3; /* 0x51660 - Messaging Interrupt Vector/Priority Register 3 */ |
| 1033 | char res141[12]; |
| 1034 | uint midr3; /* 0x51670 - Messaging Interrupt Destination Register 3 */ |
| 1035 | char res142[59852]; |
| 1036 | uint ipi0dr0; /* 0x60040 - Processor 0 Interprocessor Interrupt Dispatch Register 0 */ |
| 1037 | char res143[12]; |
| 1038 | uint ipi0dr1; /* 0x60050 - Processor 0 Interprocessor Interrupt Dispatch Register 1 */ |
| 1039 | char res144[12]; |
| 1040 | uint ipi0dr2; /* 0x60060 - Processor 0 Interprocessor Interrupt Dispatch Register 2 */ |
| 1041 | char res145[12]; |
| 1042 | uint ipi0dr3; /* 0x60070 - Processor 0 Interprocessor Interrupt Dispatch Register 3 */ |
| 1043 | char res146[12]; |
| 1044 | uint ctpr0; /* 0x60080 - Current Task Priority Register for Processor 0 */ |
| 1045 | char res147[12]; |
| 1046 | uint whoami0; /* 0x60090 - Who Am I Register for Processor 0 */ |
| 1047 | char res148[12]; |
| 1048 | uint iack0; /* 0x600a0 - Interrupt Acknowledge Register for Processor 0 */ |
| 1049 | char res149[12]; |
| 1050 | uint eoi0; /* 0x600b0 - End Of Interrupt Register for Processor 0 */ |
| 1051 | char res150[130892]; |
| 1052 | } ccsr_pic_t; |
| 1053 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 1054 | /* |
| 1055 | * CPM Block(0x8_0000-0xc_0000) |
| 1056 | */ |
Jon Loeliger | 9c4c5ae | 2005-07-23 10:37:35 -0500 | [diff] [blame] | 1057 | #ifndef CONFIG_CPM2 |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1058 | typedef struct ccsr_cpm { |
| 1059 | char res[262144]; |
| 1060 | } ccsr_cpm_t; |
| 1061 | #else |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 1062 | /* |
| 1063 | * 0x8000-0x8ffff:DPARM |
| 1064 | * 0x9000-0x90bff: General SIU |
| 1065 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1066 | typedef struct ccsr_cpm_siu { |
| 1067 | char res1[80]; |
| 1068 | uint smaer; |
| 1069 | uint smser; |
| 1070 | uint smevr; |
| 1071 | char res2[4]; |
| 1072 | uint lmaer; |
| 1073 | uint lmser; |
| 1074 | uint lmevr; |
| 1075 | char res3[2964]; |
| 1076 | } ccsr_cpm_siu_t; |
| 1077 | |
| 1078 | /* 0x90c00-0x90cff: Interrupt Controller */ |
| 1079 | typedef struct ccsr_cpm_intctl { |
| 1080 | ushort sicr; |
| 1081 | char res1[2]; |
| 1082 | uint sivec; |
| 1083 | uint sipnrh; |
| 1084 | uint sipnrl; |
| 1085 | uint siprr; |
| 1086 | uint scprrh; |
| 1087 | uint scprrl; |
| 1088 | uint simrh; |
| 1089 | uint simrl; |
| 1090 | uint siexr; |
| 1091 | char res2[88]; |
| 1092 | uint sccr; |
| 1093 | char res3[124]; |
| 1094 | } ccsr_cpm_intctl_t; |
| 1095 | |
| 1096 | /* 0x90d00-0x90d7f: input/output port */ |
| 1097 | typedef struct ccsr_cpm_iop { |
| 1098 | uint pdira; |
| 1099 | uint ppara; |
| 1100 | uint psora; |
| 1101 | uint podra; |
| 1102 | uint pdata; |
| 1103 | char res1[12]; |
| 1104 | uint pdirb; |
| 1105 | uint pparb; |
| 1106 | uint psorb; |
| 1107 | uint podrb; |
| 1108 | uint pdatb; |
| 1109 | char res2[12]; |
| 1110 | uint pdirc; |
| 1111 | uint pparc; |
| 1112 | uint psorc; |
| 1113 | uint podrc; |
| 1114 | uint pdatc; |
| 1115 | char res3[12]; |
| 1116 | uint pdird; |
| 1117 | uint ppard; |
| 1118 | uint psord; |
| 1119 | uint podrd; |
| 1120 | uint pdatd; |
| 1121 | char res4[12]; |
| 1122 | } ccsr_cpm_iop_t; |
| 1123 | |
| 1124 | /* 0x90d80-0x91017: CPM timers */ |
| 1125 | typedef struct ccsr_cpm_timer { |
| 1126 | u_char tgcr1; |
| 1127 | char res1[3]; |
| 1128 | u_char tgcr2; |
| 1129 | char res2[11]; |
| 1130 | ushort tmr1; |
| 1131 | ushort tmr2; |
| 1132 | ushort trr1; |
| 1133 | ushort trr2; |
| 1134 | ushort tcr1; |
| 1135 | ushort tcr2; |
| 1136 | ushort tcn1; |
| 1137 | ushort tcn2; |
| 1138 | ushort tmr3; |
| 1139 | ushort tmr4; |
| 1140 | ushort trr3; |
| 1141 | ushort trr4; |
| 1142 | ushort tcr3; |
| 1143 | ushort tcr4; |
| 1144 | ushort tcn3; |
| 1145 | ushort tcn4; |
| 1146 | ushort ter1; |
| 1147 | ushort ter2; |
| 1148 | ushort ter3; |
| 1149 | ushort ter4; |
| 1150 | char res3[608]; |
| 1151 | } ccsr_cpm_timer_t; |
| 1152 | |
| 1153 | /* 0x91018-0x912ff: SDMA */ |
| 1154 | typedef struct ccsr_cpm_sdma { |
| 1155 | uchar sdsr; |
| 1156 | char res1[3]; |
| 1157 | uchar sdmr; |
| 1158 | char res2[739]; |
| 1159 | } ccsr_cpm_sdma_t; |
| 1160 | |
| 1161 | /* 0x91300-0x9131f: FCC1 */ |
| 1162 | typedef struct ccsr_cpm_fcc1 { |
| 1163 | uint gfmr; |
| 1164 | uint fpsmr; |
| 1165 | ushort ftodr; |
| 1166 | char res1[2]; |
| 1167 | ushort fdsr; |
| 1168 | char res2[2]; |
| 1169 | ushort fcce; |
| 1170 | char res3[2]; |
| 1171 | ushort fccm; |
| 1172 | char res4[2]; |
| 1173 | u_char fccs; |
| 1174 | char res5[3]; |
| 1175 | u_char ftirr_phy[4]; |
| 1176 | } ccsr_cpm_fcc1_t; |
| 1177 | |
| 1178 | /* 0x91320-0x9133f: FCC2 */ |
| 1179 | typedef struct ccsr_cpm_fcc2 { |
| 1180 | uint gfmr; |
| 1181 | uint fpsmr; |
| 1182 | ushort ftodr; |
| 1183 | char res1[2]; |
| 1184 | ushort fdsr; |
| 1185 | char res2[2]; |
| 1186 | ushort fcce; |
| 1187 | char res3[2]; |
| 1188 | ushort fccm; |
| 1189 | char res4[2]; |
| 1190 | u_char fccs; |
| 1191 | char res5[3]; |
| 1192 | u_char ftirr_phy[4]; |
| 1193 | } ccsr_cpm_fcc2_t; |
| 1194 | |
| 1195 | /* 0x91340-0x9137f: FCC3 */ |
| 1196 | typedef struct ccsr_cpm_fcc3 { |
| 1197 | uint gfmr; |
| 1198 | uint fpsmr; |
| 1199 | ushort ftodr; |
| 1200 | char res1[2]; |
| 1201 | ushort fdsr; |
| 1202 | char res2[2]; |
| 1203 | ushort fcce; |
| 1204 | char res3[2]; |
| 1205 | ushort fccm; |
| 1206 | char res4[2]; |
| 1207 | u_char fccs; |
| 1208 | char res5[3]; |
| 1209 | char res[36]; |
| 1210 | } ccsr_cpm_fcc3_t; |
| 1211 | |
| 1212 | /* 0x91380-0x9139f: FCC1 extended */ |
| 1213 | typedef struct ccsr_cpm_fcc1_ext { |
| 1214 | uint firper; |
| 1215 | uint firer; |
| 1216 | uint firsr_h; |
| 1217 | uint firsr_l; |
| 1218 | u_char gfemr; |
| 1219 | char res[15]; |
| 1220 | |
| 1221 | } ccsr_cpm_fcc1_ext_t; |
| 1222 | |
| 1223 | /* 0x913a0-0x913cf: FCC2 extended */ |
| 1224 | typedef struct ccsr_cpm_fcc2_ext { |
| 1225 | uint firper; |
| 1226 | uint firer; |
| 1227 | uint firsr_h; |
| 1228 | uint firsr_l; |
| 1229 | u_char gfemr; |
| 1230 | char res[31]; |
| 1231 | } ccsr_cpm_fcc2_ext_t; |
| 1232 | |
| 1233 | /* 0x913d0-0x913ff: FCC3 extended */ |
| 1234 | typedef struct ccsr_cpm_fcc3_ext { |
| 1235 | u_char gfemr; |
| 1236 | char res[47]; |
| 1237 | } ccsr_cpm_fcc3_ext_t; |
| 1238 | |
| 1239 | /* 0x91400-0x915ef: TC layers */ |
| 1240 | typedef struct ccsr_cpm_tmp1 { |
| 1241 | char res[496]; |
| 1242 | } ccsr_cpm_tmp1_t; |
| 1243 | |
| 1244 | /* 0x915f0-0x9185f: BRGs:5,6,7,8 */ |
| 1245 | typedef struct ccsr_cpm_brg2 { |
| 1246 | uint brgc5; |
| 1247 | uint brgc6; |
| 1248 | uint brgc7; |
| 1249 | uint brgc8; |
| 1250 | char res[608]; |
| 1251 | } ccsr_cpm_brg2_t; |
| 1252 | |
| 1253 | /* 0x91860-0x919bf: I2C */ |
| 1254 | typedef struct ccsr_cpm_i2c { |
| 1255 | u_char i2mod; |
| 1256 | char res1[3]; |
| 1257 | u_char i2add; |
| 1258 | char res2[3]; |
| 1259 | u_char i2brg; |
| 1260 | char res3[3]; |
| 1261 | u_char i2com; |
| 1262 | char res4[3]; |
| 1263 | u_char i2cer; |
| 1264 | char res5[3]; |
| 1265 | u_char i2cmr; |
| 1266 | char res6[331]; |
| 1267 | } ccsr_cpm_i2c_t; |
| 1268 | |
| 1269 | /* 0x919c0-0x919ef: CPM core */ |
| 1270 | typedef struct ccsr_cpm_cp { |
| 1271 | uint cpcr; |
| 1272 | uint rccr; |
| 1273 | char res1[14]; |
| 1274 | ushort rter; |
| 1275 | char res2[2]; |
| 1276 | ushort rtmr; |
| 1277 | ushort rtscr; |
| 1278 | char res3[2]; |
| 1279 | uint rtsr; |
| 1280 | char res4[12]; |
| 1281 | } ccsr_cpm_cp_t; |
| 1282 | |
| 1283 | /* 0x919f0-0x919ff: BRGs:1,2,3,4 */ |
| 1284 | typedef struct ccsr_cpm_brg1 { |
| 1285 | uint brgc1; |
| 1286 | uint brgc2; |
| 1287 | uint brgc3; |
| 1288 | uint brgc4; |
| 1289 | } ccsr_cpm_brg1_t; |
| 1290 | |
| 1291 | /* 0x91a00-0x91a9f: SCC1-SCC4 */ |
| 1292 | typedef struct ccsr_cpm_scc { |
| 1293 | uint gsmrl; |
| 1294 | uint gsmrh; |
| 1295 | ushort psmr; |
| 1296 | char res1[2]; |
| 1297 | ushort todr; |
| 1298 | ushort dsr; |
| 1299 | ushort scce; |
| 1300 | char res2[2]; |
| 1301 | ushort sccm; |
| 1302 | char res3; |
| 1303 | u_char sccs; |
| 1304 | char res4[8]; |
| 1305 | } ccsr_cpm_scc_t; |
| 1306 | |
| 1307 | /* 0x91a80-0x91a9f */ |
| 1308 | typedef struct ccsr_cpm_tmp2 { |
| 1309 | char res[32]; |
| 1310 | } ccsr_cpm_tmp2_t; |
| 1311 | |
| 1312 | /* 0x91aa0-0x91aff: SPI */ |
| 1313 | typedef struct ccsr_cpm_spi { |
| 1314 | ushort spmode; |
| 1315 | char res1[4]; |
| 1316 | u_char spie; |
| 1317 | char res2[3]; |
| 1318 | u_char spim; |
| 1319 | char res3[2]; |
| 1320 | u_char spcom; |
| 1321 | char res4[82]; |
| 1322 | } ccsr_cpm_spi_t; |
| 1323 | |
| 1324 | /* 0x91b00-0x91b1f: CPM MUX */ |
| 1325 | typedef struct ccsr_cpm_mux { |
| 1326 | u_char cmxsi1cr; |
| 1327 | char res1; |
| 1328 | u_char cmxsi2cr; |
| 1329 | char res2; |
| 1330 | uint cmxfcr; |
| 1331 | uint cmxscr; |
| 1332 | char res3[2]; |
| 1333 | ushort cmxuar; |
| 1334 | char res4[16]; |
| 1335 | } ccsr_cpm_mux_t; |
| 1336 | |
| 1337 | /* 0x91b20-0xbffff: SI,MCC,etc */ |
| 1338 | typedef struct ccsr_cpm_tmp3 { |
| 1339 | char res[58592]; |
| 1340 | } ccsr_cpm_tmp3_t; |
| 1341 | |
| 1342 | typedef struct ccsr_cpm_iram { |
| 1343 | unsigned long iram[8192]; |
| 1344 | char res[98304]; |
| 1345 | } ccsr_cpm_iram_t; |
| 1346 | |
| 1347 | typedef struct ccsr_cpm { |
| 1348 | /* Some references are into the unique and known dpram spaces, |
| 1349 | * others are from the generic base. |
| 1350 | */ |
| 1351 | #define im_dprambase im_dpram1 |
| 1352 | u_char im_dpram1[16*1024]; |
| 1353 | char res1[16*1024]; |
| 1354 | u_char im_dpram2[16*1024]; |
| 1355 | char res2[16*1024]; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1356 | ccsr_cpm_siu_t im_cpm_siu; /* SIU Configuration */ |
| 1357 | ccsr_cpm_intctl_t im_cpm_intctl; /* Interrupt Controller */ |
| 1358 | ccsr_cpm_iop_t im_cpm_iop; /* IO Port control/status */ |
| 1359 | ccsr_cpm_timer_t im_cpm_timer; /* CPM timers */ |
| 1360 | ccsr_cpm_sdma_t im_cpm_sdma; /* SDMA control/status */ |
| 1361 | ccsr_cpm_fcc1_t im_cpm_fcc1; |
| 1362 | ccsr_cpm_fcc2_t im_cpm_fcc2; |
| 1363 | ccsr_cpm_fcc3_t im_cpm_fcc3; |
| 1364 | ccsr_cpm_fcc1_ext_t im_cpm_fcc1_ext; |
| 1365 | ccsr_cpm_fcc2_ext_t im_cpm_fcc2_ext; |
| 1366 | ccsr_cpm_fcc3_ext_t im_cpm_fcc3_ext; |
| 1367 | ccsr_cpm_tmp1_t im_cpm_tmp1; |
| 1368 | ccsr_cpm_brg2_t im_cpm_brg2; |
| 1369 | ccsr_cpm_i2c_t im_cpm_i2c; |
| 1370 | ccsr_cpm_cp_t im_cpm_cp; |
| 1371 | ccsr_cpm_brg1_t im_cpm_brg1; |
| 1372 | ccsr_cpm_scc_t im_cpm_scc[4]; |
| 1373 | ccsr_cpm_tmp2_t im_cpm_tmp2; |
| 1374 | ccsr_cpm_spi_t im_cpm_spi; |
| 1375 | ccsr_cpm_mux_t im_cpm_mux; |
| 1376 | ccsr_cpm_tmp3_t im_cpm_tmp3; |
| 1377 | ccsr_cpm_iram_t im_cpm_iram; |
| 1378 | } ccsr_cpm_t; |
| 1379 | #endif |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1380 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 1381 | /* |
| 1382 | * RapidIO Registers(0xc_0000-0xe_0000) |
| 1383 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1384 | typedef struct ccsr_rio { |
| 1385 | uint didcar; /* 0xc0000 - Device Identity Capability Register */ |
| 1386 | uint dicar; /* 0xc0004 - Device Information Capability Register */ |
| 1387 | uint aidcar; /* 0xc0008 - Assembly Identity Capability Register */ |
| 1388 | uint aicar; /* 0xc000c - Assembly Information Capability Register */ |
| 1389 | uint pefcar; /* 0xc0010 - Processing Element Features Capability Register */ |
| 1390 | uint spicar; /* 0xc0014 - Switch Port Information Capability Register */ |
| 1391 | uint socar; /* 0xc0018 - Source Operations Capability Register */ |
| 1392 | uint docar; /* 0xc001c - Destination Operations Capability Register */ |
| 1393 | char res1[32]; |
| 1394 | uint msr; /* 0xc0040 - Mailbox Command And Status Register */ |
| 1395 | uint pwdcsr; /* 0xc0044 - Port-Write and Doorbell Command And Status Register */ |
| 1396 | char res2[4]; |
| 1397 | uint pellccsr; /* 0xc004c - Processing Element Logic Layer Control Command and Status Register */ |
| 1398 | char res3[12]; |
| 1399 | uint lcsbacsr; /* 0xc005c - Local Configuration Space Base Address Command and Status Register */ |
| 1400 | uint bdidcsr; /* 0xc0060 - Base Device ID Command and Status Register */ |
| 1401 | char res4[4]; |
| 1402 | uint hbdidlcsr; /* 0xc0068 - Host Base Device ID Lock Command and Status Register */ |
| 1403 | uint ctcsr; /* 0xc006c - Component Tag Command and Status Register */ |
| 1404 | char res5[144]; |
| 1405 | uint pmbh0csr; /* 0xc0100 - 8/16 LP-LVDS Port Maintenance Block Header 0 Command and Status Register */ |
| 1406 | char res6[28]; |
| 1407 | uint pltoccsr; /* 0xc0120 - Port Link Time-out Control Command and Status Register */ |
| 1408 | uint prtoccsr; /* 0xc0124 - Port Response Time-out Control Command and Status Register */ |
| 1409 | char res7[20]; |
| 1410 | uint pgccsr; /* 0xc013c - Port General Command and Status Register */ |
| 1411 | uint plmreqcsr; /* 0xc0140 - Port Link Maintenance Request Command and Status Register */ |
| 1412 | uint plmrespcsr; /* 0xc0144 - Port Link Maintenance Response Command and Status Register */ |
| 1413 | uint plascsr; /* 0xc0148 - Port Local Ackid Status Command and Status Register */ |
| 1414 | char res8[12]; |
| 1415 | uint pescsr; /* 0xc0158 - Port Error and Status Command and Status Register */ |
| 1416 | uint pccsr; /* 0xc015c - Port Control Command and Status Register */ |
| 1417 | char res9[65184]; |
| 1418 | uint cr; /* 0xd0000 - Port Control Command and Status Register */ |
| 1419 | char res10[12]; |
| 1420 | uint pcr; /* 0xd0010 - Port Configuration Register */ |
| 1421 | uint peir; /* 0xd0014 - Port Error Injection Register */ |
| 1422 | char res11[3048]; |
| 1423 | uint rowtar0; /* 0xd0c00 - RapidIO Outbound Window Translation Address Register 0 */ |
| 1424 | char res12[12]; |
| 1425 | uint rowar0; /* 0xd0c10 - RapidIO Outbound Attributes Register 0 */ |
| 1426 | char res13[12]; |
| 1427 | uint rowtar1; /* 0xd0c20 - RapidIO Outbound Window Translation Address Register 1 */ |
| 1428 | char res14[4]; |
| 1429 | uint rowbar1; /* 0xd0c28 - RapidIO Outbound Window Base Address Register 1 */ |
| 1430 | char res15[4]; |
| 1431 | uint rowar1; /* 0xd0c30 - RapidIO Outbound Attributes Register 1 */ |
| 1432 | char res16[12]; |
| 1433 | uint rowtar2; /* 0xd0c40 - RapidIO Outbound Window Translation Address Register 2 */ |
| 1434 | char res17[4]; |
| 1435 | uint rowbar2; /* 0xd0c48 - RapidIO Outbound Window Base Address Register 2 */ |
| 1436 | char res18[4]; |
| 1437 | uint rowar2; /* 0xd0c50 - RapidIO Outbound Attributes Register 2 */ |
| 1438 | char res19[12]; |
| 1439 | uint rowtar3; /* 0xd0c60 - RapidIO Outbound Window Translation Address Register 3 */ |
| 1440 | char res20[4]; |
| 1441 | uint rowbar3; /* 0xd0c68 - RapidIO Outbound Window Base Address Register 3 */ |
| 1442 | char res21[4]; |
| 1443 | uint rowar3; /* 0xd0c70 - RapidIO Outbound Attributes Register 3 */ |
| 1444 | char res22[12]; |
| 1445 | uint rowtar4; /* 0xd0c80 - RapidIO Outbound Window Translation Address Register 4 */ |
| 1446 | char res23[4]; |
| 1447 | uint rowbar4; /* 0xd0c88 - RapidIO Outbound Window Base Address Register 4 */ |
| 1448 | char res24[4]; |
| 1449 | uint rowar4; /* 0xd0c90 - RapidIO Outbound Attributes Register 4 */ |
| 1450 | char res25[12]; |
| 1451 | uint rowtar5; /* 0xd0ca0 - RapidIO Outbound Window Translation Address Register 5 */ |
| 1452 | char res26[4]; |
| 1453 | uint rowbar5; /* 0xd0ca8 - RapidIO Outbound Window Base Address Register 5 */ |
| 1454 | char res27[4]; |
| 1455 | uint rowar5; /* 0xd0cb0 - RapidIO Outbound Attributes Register 5 */ |
| 1456 | char res28[12]; |
| 1457 | uint rowtar6; /* 0xd0cc0 - RapidIO Outbound Window Translation Address Register 6 */ |
| 1458 | char res29[4]; |
| 1459 | uint rowbar6; /* 0xd0cc8 - RapidIO Outbound Window Base Address Register 6 */ |
| 1460 | char res30[4]; |
| 1461 | uint rowar6; /* 0xd0cd0 - RapidIO Outbound Attributes Register 6 */ |
| 1462 | char res31[12]; |
| 1463 | uint rowtar7; /* 0xd0ce0 - RapidIO Outbound Window Translation Address Register 7 */ |
| 1464 | char res32[4]; |
| 1465 | uint rowbar7; /* 0xd0ce8 - RapidIO Outbound Window Base Address Register 7 */ |
| 1466 | char res33[4]; |
| 1467 | uint rowar7; /* 0xd0cf0 - RapidIO Outbound Attributes Register 7 */ |
| 1468 | char res34[12]; |
| 1469 | uint rowtar8; /* 0xd0d00 - RapidIO Outbound Window Translation Address Register 8 */ |
| 1470 | char res35[4]; |
| 1471 | uint rowbar8; /* 0xd0d08 - RapidIO Outbound Window Base Address Register 8 */ |
| 1472 | char res36[4]; |
| 1473 | uint rowar8; /* 0xd0d10 - RapidIO Outbound Attributes Register 8 */ |
| 1474 | char res37[76]; |
| 1475 | uint riwtar4; /* 0xd0d60 - RapidIO Inbound Window Translation Address Register 4 */ |
| 1476 | char res38[4]; |
| 1477 | uint riwbar4; /* 0xd0d68 - RapidIO Inbound Window Base Address Register 4 */ |
| 1478 | char res39[4]; |
| 1479 | uint riwar4; /* 0xd0d70 - RapidIO Inbound Attributes Register 4 */ |
| 1480 | char res40[12]; |
| 1481 | uint riwtar3; /* 0xd0d80 - RapidIO Inbound Window Translation Address Register 3 */ |
| 1482 | char res41[4]; |
| 1483 | uint riwbar3; /* 0xd0d88 - RapidIO Inbound Window Base Address Register 3 */ |
| 1484 | char res42[4]; |
| 1485 | uint riwar3; /* 0xd0d90 - RapidIO Inbound Attributes Register 3 */ |
| 1486 | char res43[12]; |
| 1487 | uint riwtar2; /* 0xd0da0 - RapidIO Inbound Window Translation Address Register 2 */ |
| 1488 | char res44[4]; |
| 1489 | uint riwbar2; /* 0xd0da8 - RapidIO Inbound Window Base Address Register 2 */ |
| 1490 | char res45[4]; |
| 1491 | uint riwar2; /* 0xd0db0 - RapidIO Inbound Attributes Register 2 */ |
| 1492 | char res46[12]; |
| 1493 | uint riwtar1; /* 0xd0dc0 - RapidIO Inbound Window Translation Address Register 1 */ |
| 1494 | char res47[4]; |
| 1495 | uint riwbar1; /* 0xd0dc8 - RapidIO Inbound Window Base Address Register 1 */ |
| 1496 | char res48[4]; |
| 1497 | uint riwar1; /* 0xd0dd0 - RapidIO Inbound Attributes Register 1 */ |
| 1498 | char res49[12]; |
| 1499 | uint riwtar0; /* 0xd0de0 - RapidIO Inbound Window Translation Address Register 0 */ |
| 1500 | char res50[12]; |
| 1501 | uint riwar0; /* 0xd0df0 - RapidIO Inbound Attributes Register 0 */ |
| 1502 | char res51[12]; |
| 1503 | uint pnfedr; /* 0xd0e00 - Port Notification/Fatal Error Detect Register */ |
| 1504 | uint pnfedir; /* 0xd0e04 - Port Notification/Fatal Error Detect Register */ |
| 1505 | uint pnfeier; /* 0xd0e08 - Port Notification/Fatal Error Interrupt Enable Register */ |
| 1506 | uint pecr; /* 0xd0e0c - Port Error Control Register */ |
| 1507 | uint pepcsr0; /* 0xd0e10 - Port Error Packet/Control Symbol Register 0 */ |
| 1508 | uint pepr1; /* 0xd0e14 - Port Error Packet Register 1 */ |
| 1509 | uint pepr2; /* 0xd0e18 - Port Error Packet Register 2 */ |
| 1510 | char res52[4]; |
| 1511 | uint predr; /* 0xd0e20 - Port Recoverable Error Detect Register */ |
| 1512 | char res53[4]; |
| 1513 | uint pertr; /* 0xd0e28 - Port Error Recovery Threshold Register */ |
| 1514 | uint prtr; /* 0xd0e2c - Port Retry Threshold Register */ |
| 1515 | char res54[464]; |
| 1516 | uint omr; /* 0xd1000 - Outbound Mode Register */ |
| 1517 | uint osr; /* 0xd1004 - Outbound Status Register */ |
| 1518 | uint eodqtpar; /* 0xd1008 - Extended Outbound Descriptor Queue Tail Pointer Address Register */ |
| 1519 | uint odqtpar; /* 0xd100c - Outbound Descriptor Queue Tail Pointer Address Register */ |
| 1520 | uint eosar; /* 0xd1010 - Extended Outbound Unit Source Address Register */ |
| 1521 | uint osar; /* 0xd1014 - Outbound Unit Source Address Register */ |
| 1522 | uint odpr; /* 0xd1018 - Outbound Destination Port Register */ |
| 1523 | uint odatr; /* 0xd101c - Outbound Destination Attributes Register */ |
| 1524 | uint odcr; /* 0xd1020 - Outbound Doubleword Count Register */ |
| 1525 | uint eodqhpar; /* 0xd1024 - Extended Outbound Descriptor Queue Head Pointer Address Register */ |
| 1526 | uint odqhpar; /* 0xd1028 - Outbound Descriptor Queue Head Pointer Address Register */ |
| 1527 | char res55[52]; |
| 1528 | uint imr; /* 0xd1060 - Outbound Mode Register */ |
| 1529 | uint isr; /* 0xd1064 - Inbound Status Register */ |
| 1530 | uint eidqtpar; /* 0xd1068 - Extended Inbound Descriptor Queue Tail Pointer Address Register */ |
| 1531 | uint idqtpar; /* 0xd106c - Inbound Descriptor Queue Tail Pointer Address Register */ |
| 1532 | uint eifqhpar; /* 0xd1070 - Extended Inbound Frame Queue Head Pointer Address Register */ |
| 1533 | uint ifqhpar; /* 0xd1074 - Inbound Frame Queue Head Pointer Address Register */ |
| 1534 | char res56[1000]; |
| 1535 | uint dmr; /* 0xd1460 - Doorbell Mode Register */ |
| 1536 | uint dsr; /* 0xd1464 - Doorbell Status Register */ |
| 1537 | uint edqtpar; /* 0xd1468 - Extended Doorbell Queue Tail Pointer Address Register */ |
| 1538 | uint dqtpar; /* 0xd146c - Doorbell Queue Tail Pointer Address Register */ |
| 1539 | uint edqhpar; /* 0xd1470 - Extended Doorbell Queue Head Pointer Address Register */ |
| 1540 | uint dqhpar; /* 0xd1474 - Doorbell Queue Head Pointer Address Register */ |
| 1541 | char res57[104]; |
| 1542 | uint pwmr; /* 0xd14e0 - Port-Write Mode Register */ |
| 1543 | uint pwsr; /* 0xd14e4 - Port-Write Status Register */ |
| 1544 | uint epwqbar; /* 0xd14e8 - Extended Port-Write Queue Base Address Register */ |
| 1545 | uint pwqbar; /* 0xd14ec - Port-Write Queue Base Address Register */ |
| 1546 | char res58[60176]; |
| 1547 | } ccsr_rio_t; |
| 1548 | |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 1549 | /* |
| 1550 | * Global Utilities Register Block(0xe_0000-0xf_ffff) |
| 1551 | */ |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1552 | typedef struct ccsr_gur { |
| 1553 | uint porpllsr; /* 0xe0000 - POR PLL ratio status register */ |
| 1554 | uint porbmsr; /* 0xe0004 - POR boot mode status register */ |
| 1555 | uint porimpscr; /* 0xe0008 - POR I/O impedance status and control register */ |
| 1556 | uint pordevsr; /* 0xe000c - POR I/O device status regsiter */ |
| 1557 | uint pordbgmsr; /* 0xe0010 - POR debug mode status register */ |
| 1558 | char res1[12]; |
| 1559 | uint gpporcr; /* 0xe0020 - General-purpose POR configuration register */ |
| 1560 | char res2[12]; |
| 1561 | uint gpiocr; /* 0xe0030 - GPIO control register */ |
| 1562 | char res3[12]; |
| 1563 | uint gpoutdr; /* 0xe0040 - General-purpose output data register */ |
| 1564 | char res4[12]; |
| 1565 | uint gpindr; /* 0xe0050 - General-purpose input data register */ |
| 1566 | char res5[12]; |
| 1567 | uint pmuxcr; /* 0xe0060 - Alternate function signal multiplex control */ |
| 1568 | char res6[12]; |
| 1569 | uint devdisr; /* 0xe0070 - Device disable control */ |
| 1570 | char res7[12]; |
| 1571 | uint powmgtcsr; /* 0xe0080 - Power management status and control register */ |
| 1572 | char res8[12]; |
| 1573 | uint mcpsumr; /* 0xe0090 - Machine check summary register */ |
| 1574 | char res9[12]; |
| 1575 | uint pvr; /* 0xe00a0 - Processor version register */ |
| 1576 | uint svr; /* 0xe00a4 - System version register */ |
| 1577 | char res10[3416]; |
| 1578 | uint clkocr; /* 0xe0e00 - Clock out select register */ |
| 1579 | char res11[12]; |
| 1580 | uint ddrdllcr; /* 0xe0e10 - DDR DLL control register */ |
| 1581 | char res12[12]; |
| 1582 | uint lbcdllcr; /* 0xe0e20 - LBC DLL control register */ |
Jon Loeliger | d9b94f2 | 2005-07-25 14:05:07 -0500 | [diff] [blame] | 1583 | char res13[248]; |
| 1584 | uint lbiuiplldcr0; /* 0xe0f1c -- LBIU PLL Debug Reg 0 */ |
| 1585 | uint lbiuiplldcr1; /* 0xe0f20 -- LBIU PLL Debug Reg 1 */ |
| 1586 | uint ddrioovcr; /* 0xe0f24 - DDR IO Override Control */ |
| 1587 | uint res14; /* 0xe0f28 */ |
| 1588 | uint tsec34ioovcr; /* 0xe0f2c - eTSEC 3/4 IO override control */ |
| 1589 | char res15[61651]; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1590 | } ccsr_gur_t; |
| 1591 | |
Matthew McClintock | 0874546 | 2006-06-28 10:45:17 -0500 | [diff] [blame^] | 1592 | #define PORDEVSR_PCI (0x00800000) /* PCI Mode */ |
| 1593 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1594 | typedef struct immap { |
| 1595 | ccsr_local_ecm_t im_local_ecm; |
| 1596 | ccsr_ddr_t im_ddr; |
| 1597 | ccsr_i2c_t im_i2c; |
| 1598 | ccsr_duart_t im_duart; |
| 1599 | ccsr_lbc_t im_lbc; |
| 1600 | ccsr_pcix_t im_pcix; |
Matthew McClintock | 0874546 | 2006-06-28 10:45:17 -0500 | [diff] [blame^] | 1601 | ccsr_pcix_t im_pcix2; |
| 1602 | char reserved[90112]; |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1603 | ccsr_l2cache_t im_l2cache; |
| 1604 | ccsr_dma_t im_dma; |
| 1605 | ccsr_tsec_t im_tsec1; |
| 1606 | ccsr_tsec_t im_tsec2; |
| 1607 | ccsr_pic_t im_pic; |
| 1608 | ccsr_cpm_t im_cpm; |
| 1609 | ccsr_rio_t im_rio; |
| 1610 | ccsr_gur_t im_gur; |
| 1611 | } immap_t; |
| 1612 | |
| 1613 | extern immap_t *immr; |
| 1614 | |
| 1615 | #endif /*__IMMAP_85xx__*/ |