xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/immap_86xx.h (revision 6b29a395b62965eef6b5065d3a526a8588a92038)
1a47a12beSStefan Roese /*
2a47a12beSStefan Roese  * MPC86xx Internal Memory Map
3a47a12beSStefan Roese  *
456551362SKumar Gala  * Copyright 2004, 2011 Freescale Semiconductor
5a47a12beSStefan Roese  * Jeff Brown (Jeffrey@freescale.com)
6a47a12beSStefan Roese  * Srikanth Srinivasan (srikanth.srinivasan@freescale.com)
7a47a12beSStefan Roese  *
8a47a12beSStefan Roese  */
9a47a12beSStefan Roese 
10a47a12beSStefan Roese #ifndef __IMMAP_86xx__
11a47a12beSStefan Roese #define __IMMAP_86xx__
12a47a12beSStefan Roese 
139a17eb5bSYork Sun #include <fsl_immap.h>
14a47a12beSStefan Roese #include <asm/types.h>
15a47a12beSStefan Roese #include <asm/fsl_dma.h>
16f51cdaf1SBecky Bruce #include <asm/fsl_lbc.h>
17a47a12beSStefan Roese #include <asm/fsl_i2c.h>
18a47a12beSStefan Roese 
19a47a12beSStefan Roese /* Local-Access Registers and MCM Registers(0x0000-0x2000) */
20a47a12beSStefan Roese typedef struct ccsr_local_mcm {
21a47a12beSStefan Roese 	uint	ccsrbar;	/* 0x0 - Control Configuration Status Registers Base Address Register */
22a47a12beSStefan Roese 	char	res1[4];
23a47a12beSStefan Roese 	uint	altcbar;	/* 0x8 - Alternate Configuration Base Address Register */
24a47a12beSStefan Roese 	char	res2[4];
25a47a12beSStefan Roese 	uint	altcar;		/* 0x10 - Alternate Configuration Attribute Register */
26a47a12beSStefan Roese 	char	res3[12];
27a47a12beSStefan Roese 	uint	bptr;		/* 0x20 - Boot Page Translation Register */
28a47a12beSStefan Roese 	char	res4[3044];
29a47a12beSStefan Roese 	uint	lawbar0;	/* 0xc08 - Local Access Window 0 Base Address Register */
30a47a12beSStefan Roese 	char	res5[4];
31a47a12beSStefan Roese 	uint	lawar0;		/* 0xc10 - Local Access Window 0 Attributes Register */
32a47a12beSStefan Roese 	char	res6[20];
33a47a12beSStefan Roese 	uint	lawbar1;	/* 0xc28 - Local Access Window 1 Base Address Register */
34a47a12beSStefan Roese 	char	res7[4];
35a47a12beSStefan Roese 	uint	lawar1;		/* 0xc30 - Local Access Window 1 Attributes Register */
36a47a12beSStefan Roese 	char	res8[20];
37a47a12beSStefan Roese 	uint	lawbar2;	/* 0xc48 - Local Access Window 2 Base Address Register */
38a47a12beSStefan Roese 	char	res9[4];
39a47a12beSStefan Roese 	uint	lawar2;		/* 0xc50 - Local Access Window 2 Attributes Register */
40a47a12beSStefan Roese 	char	res10[20];
41a47a12beSStefan Roese 	uint	lawbar3;	/* 0xc68 - Local Access Window 3 Base Address Register */
42a47a12beSStefan Roese 	char	res11[4];
43a47a12beSStefan Roese 	uint	lawar3;		/* 0xc70 - Local Access Window 3 Attributes Register */
44a47a12beSStefan Roese 	char	res12[20];
45a47a12beSStefan Roese 	uint	lawbar4;	/* 0xc88 - Local Access Window 4 Base Address Register */
46a47a12beSStefan Roese 	char	res13[4];
47a47a12beSStefan Roese 	uint	lawar4;		/* 0xc90 - Local Access Window 4 Attributes Register */
48a47a12beSStefan Roese 	char	res14[20];
49a47a12beSStefan Roese 	uint	lawbar5;	/* 0xca8 - Local Access Window 5 Base Address Register */
50a47a12beSStefan Roese 	char	res15[4];
51a47a12beSStefan Roese 	uint	lawar5;		/* 0xcb0 - Local Access Window 5 Attributes Register */
52a47a12beSStefan Roese 	char	res16[20];
53a47a12beSStefan Roese 	uint	lawbar6;	/* 0xcc8 - Local Access Window 6 Base Address Register */
54a47a12beSStefan Roese 	char	res17[4];
55a47a12beSStefan Roese 	uint	lawar6;		/* 0xcd0 - Local Access Window 6 Attributes Register */
56a47a12beSStefan Roese 	char	res18[20];
57a47a12beSStefan Roese 	uint	lawbar7;	/* 0xce8 - Local Access Window 7 Base Address Register */
58a47a12beSStefan Roese 	char	res19[4];
59a47a12beSStefan Roese 	uint	lawar7;		/* 0xcf0 - Local Access Window 7 Attributes Register */
60a47a12beSStefan Roese 	char	res20[20];
61a47a12beSStefan Roese 	uint	lawbar8;	/* 0xd08 - Local Access Window 8 Base Address Register */
62a47a12beSStefan Roese 	char	res21[4];
63a47a12beSStefan Roese 	uint	lawar8;		/* 0xd10 - Local Access Window 8 Attributes Register */
64a47a12beSStefan Roese 	char	res22[20];
65a47a12beSStefan Roese 	uint	lawbar9;	/* 0xd28 - Local Access Window 9 Base Address Register */
66a47a12beSStefan Roese 	char	res23[4];
67a47a12beSStefan Roese 	uint	lawar9;		/* 0xd30 - Local Access Window 9 Attributes Register */
68a47a12beSStefan Roese 	char	res24[716];
69a47a12beSStefan Roese 	uint	abcr;		/* 0x1000 - MCM CCB Address Configuration Register */
70a47a12beSStefan Roese 	char	res25[4];
71a47a12beSStefan Roese 	uint    dbcr;           /* 0x1008 - MCM MPX data bus Configuration Register */
72a47a12beSStefan Roese 	char	res26[4];
73a47a12beSStefan Roese 	uint	pcr;		/* 0x1010 - MCM CCB Port Configuration Register */
74a47a12beSStefan Roese 	char	res27[44];
75a47a12beSStefan Roese 	uint	hpmr0;		/* 0x1040 - MCM HPM Threshold Count Register 0 */
76a47a12beSStefan Roese 	uint	hpmr1;		/* 0x1044 - MCM HPM Threshold Count Register 1 */
77a47a12beSStefan Roese 	uint	hpmr2;		/* 0x1048 - MCM HPM Threshold Count Register 2 */
78a47a12beSStefan Roese 	uint	hpmr3;		/* 0x104c - MCM HPM Threshold Count Register 3 */
79a47a12beSStefan Roese 	char	res28[16];
80a47a12beSStefan Roese 	uint	hpmr4;		/* 0x1060 - MCM HPM Threshold Count Register 4 */
81a47a12beSStefan Roese 	uint	hpmr5;		/* 0x1064 - MCM HPM Threshold Count Register 5 */
82a47a12beSStefan Roese 	uint	hpmccr;		/* 0x1068 - MCM HPM Cycle Count Register */
83a47a12beSStefan Roese 	char	res29[3476];
84a47a12beSStefan Roese 	uint	edr;		/* 0x1e00 - MCM Error Detect Register */
85a47a12beSStefan Roese 	char	res30[4];
86a47a12beSStefan Roese 	uint	eer;		/* 0x1e08 - MCM Error Enable Register */
87a47a12beSStefan Roese 	uint	eatr;		/* 0x1e0c - MCM Error Attributes Capture Register */
88a47a12beSStefan Roese 	uint	eladr;		/* 0x1e10 - MCM Error Low Address Capture Register */
89a47a12beSStefan Roese 	uint	ehadr;		/* 0x1e14 - MCM Error High Address Capture Register */
90a47a12beSStefan Roese 	char	res31[488];
91a47a12beSStefan Roese } ccsr_local_mcm_t;
92a47a12beSStefan Roese 
93a47a12beSStefan Roese /* Daul I2C Registers(0x3000-0x4000) */
94a47a12beSStefan Roese typedef struct ccsr_i2c {
95ec2c81c5Smario.six@gdsys.cc 	struct fsl_i2c_base	i2c[2];
96ec2c81c5Smario.six@gdsys.cc 	u8	res[4096 - 2 * sizeof(struct fsl_i2c_base)];
97a47a12beSStefan Roese } ccsr_i2c_t;
98a47a12beSStefan Roese 
99a47a12beSStefan Roese /* DUART Registers(0x4000-0x5000) */
100a47a12beSStefan Roese typedef struct ccsr_duart {
101a47a12beSStefan Roese 	char	res1[1280];
102a47a12beSStefan Roese 	u_char	urbr1_uthr1_udlb1;/* 0x4500 - URBR1, UTHR1, UDLB1 with the same address offset of 0x04500 */
103a47a12beSStefan Roese 	u_char	uier1_udmb1;	/* 0x4501 - UIER1, UDMB1 with the same address offset of 0x04501 */
104a47a12beSStefan Roese 	u_char	uiir1_ufcr1_uafr1;/* 0x4502 - UIIR1, UFCR1, UAFR1 with the same address offset of 0x04502 */
105a47a12beSStefan Roese 	u_char	ulcr1;		/* 0x4503 - UART1 Line Control Register */
106a47a12beSStefan Roese 	u_char	umcr1;		/* 0x4504 - UART1 Modem Control Register */
107a47a12beSStefan Roese 	u_char	ulsr1;		/* 0x4505 - UART1 Line Status Register */
108a47a12beSStefan Roese 	u_char	umsr1;		/* 0x4506 - UART1 Modem Status Register */
109a47a12beSStefan Roese 	u_char	uscr1;		/* 0x4507 - UART1 Scratch Register */
110a47a12beSStefan Roese 	char	res2[8];
111a47a12beSStefan Roese 	u_char	udsr1;		/* 0x4510 - UART1 DMA Status Register */
112a47a12beSStefan Roese 	char	res3[239];
113a47a12beSStefan Roese 	u_char	urbr2_uthr2_udlb2;/* 0x4600 - URBR2, UTHR2, UDLB2 with the same address offset of 0x04600 */
114a47a12beSStefan Roese 	u_char	uier2_udmb2;	/* 0x4601 - UIER2, UDMB2 with the same address offset of 0x04601 */
115a47a12beSStefan Roese 	u_char	uiir2_ufcr2_uafr2;/* 0x4602 - UIIR2, UFCR2, UAFR2 with the same address offset of 0x04602 */
116a47a12beSStefan Roese 	u_char	ulcr2;		/* 0x4603 - UART2 Line Control Register */
117a47a12beSStefan Roese 	u_char	umcr2;		/* 0x4604 - UART2 Modem Control Register */
118a47a12beSStefan Roese 	u_char	ulsr2;		/* 0x4605 - UART2 Line Status Register */
119a47a12beSStefan Roese 	u_char	umsr2;		/* 0x4606 - UART2 Modem Status Register */
120a47a12beSStefan Roese 	u_char	uscr2;		/* 0x4607 - UART2 Scratch Register */
121a47a12beSStefan Roese 	char	res4[8];
122a47a12beSStefan Roese 	u_char	udsr2;		/* 0x4610 - UART2 DMA Status Register */
123a47a12beSStefan Roese 	char	res5[2543];
124a47a12beSStefan Roese } ccsr_duart_t;
125a47a12beSStefan Roese 
126a47a12beSStefan Roese /* PCI Express Registers(0x8000-0x9000) and (0x9000-0xA000) */
127a47a12beSStefan Roese typedef struct ccsr_pex {
128a47a12beSStefan Roese 	uint	cfg_addr;	/* 0x8000 - PEX Configuration Address Register */
129a47a12beSStefan Roese 	uint	cfg_data;	/* 0x8004 - PEX Configuration Data Register */
130a47a12beSStefan Roese 	char	res1[4];
131a47a12beSStefan Roese 	uint	out_comp_to;	/* 0x800C - PEX Outbound Completion Timeout Register */
132a47a12beSStefan Roese 	char	res2[16];
133a47a12beSStefan Roese 	uint	pme_msg_det;	/* 0x8020 - PEX PME & message detect register */
134a47a12beSStefan Roese 	uint    pme_msg_int_en;	/* 0x8024 - PEX PME & message interrupt enable register */
135a47a12beSStefan Roese 	uint    pme_msg_dis;	/* 0x8028 - PEX PME & message disable register */
136a47a12beSStefan Roese 	uint    pm_command;	/* 0x802c - PEX PM Command register */
137a47a12beSStefan Roese 	char	res3[3016];
138a47a12beSStefan Roese 	uint    block_rev1;	/* 0x8bf8 - PEX Block Revision register 1 */
139a47a12beSStefan Roese 	uint    block_rev2;	/* 0x8bfc - PEX Block Revision register 2 */
140a47a12beSStefan Roese 	uint	potar0;	        /* 0x8c00 - PEX Outbound Transaction Address Register 0 */
141a47a12beSStefan Roese 	uint	potear0;	/* 0x8c04 - PEX Outbound Translation Extended Address Register 0 */
142a47a12beSStefan Roese 	char	res4[8];
143a47a12beSStefan Roese 	uint	powar0;	        /* 0x8c10 - PEX Outbound Window Attributes Register 0 */
144a47a12beSStefan Roese 	char	res5[12];
145a47a12beSStefan Roese 	uint	potar1;	        /* 0x8c20 - PEX Outbound Transaction Address Register 1 */
146a47a12beSStefan Roese 	uint	potear1;	/* 0x8c24 - PEX Outbound Translation Extended Address Register 1 */
147a47a12beSStefan Roese 	uint	powbar1;	/* 0x8c28 - PEX Outbound Window Base Address Register 1 */
148a47a12beSStefan Roese 	char	res6[4];
149a47a12beSStefan Roese 	uint	powar1;	        /* 0x8c30 - PEX Outbound Window Attributes Register 1 */
150a47a12beSStefan Roese 	char	res7[12];
151a47a12beSStefan Roese 	uint	potar2;	        /* 0x8c40 - PEX Outbound Transaction Address Register 2 */
152a47a12beSStefan Roese 	uint	potear2;	/* 0x8c44 - PEX Outbound Translation Extended Address Register 2 */
153a47a12beSStefan Roese 	uint	powbar2;	/* 0x8c48 - PEX Outbound Window Base Address Register 2 */
154a47a12beSStefan Roese 	char	res8[4];
155a47a12beSStefan Roese 	uint	powar2;	        /* 0x8c50 - PEX Outbound Window Attributes Register 2 */
156a47a12beSStefan Roese 	char	res9[12];
157a47a12beSStefan Roese 	uint	potar3;	        /* 0x8c60 - PEX Outbound Transaction Address Register 3 */
158a47a12beSStefan Roese 	uint	potear3;	/* 0x8c64 - PEX Outbound Translation Extended Address Register 3 */
159a47a12beSStefan Roese 	uint	powbar3;	/* 0x8c68 - PEX Outbound Window Base Address Register 3 */
160a47a12beSStefan Roese 	char	res10[4];
161a47a12beSStefan Roese 	uint	powar3;	        /* 0x8c70 - PEX Outbound Window Attributes Register 3 */
162a47a12beSStefan Roese 	char	res11[12];
163a47a12beSStefan Roese 	uint	potar4;	        /* 0x8c80 - PEX Outbound Transaction Address Register 4 */
164a47a12beSStefan Roese 	uint	potear4;	/* 0x8c84 - PEX Outbound Translation Extended Address Register 4 */
165a47a12beSStefan Roese 	uint	powbar4;	/* 0x8c88 - PEX Outbound Window Base Address Register 4 */
166a47a12beSStefan Roese 	char	res12[4];
167a47a12beSStefan Roese 	uint	powar4;	        /* 0x8c90 - PEX Outbound Window Attributes Register 4 */
168a47a12beSStefan Roese 	char	res13[12];
169a47a12beSStefan Roese 	char	res14[256];
170a47a12beSStefan Roese 	uint	pitar3;	        /* 0x8da0 - PEX Inbound Translation Address Register 3  */
171a47a12beSStefan Roese 	char	res15[4];
172a47a12beSStefan Roese 	uint	piwbar3;	/* 0x8da8 - PEX Inbound Window Base Address Register 3 */
173a47a12beSStefan Roese 	uint	piwbear3;	/* 0x8dac - PEX Inbound Window Base Extended Address Register 3 */
174a47a12beSStefan Roese 	uint	piwar3;	        /* 0x8db0 - PEX Inbound Window Attributes Register 3 */
175a47a12beSStefan Roese 	char	res16[12];
176a47a12beSStefan Roese 	uint	pitar2;	        /* 0x8dc0 - PEX Inbound Translation Address Register 2  */
177a47a12beSStefan Roese 	char	res17[4];
178a47a12beSStefan Roese 	uint	piwbar2;	/* 0x8dc8 - PEX Inbound Window Base Address Register 2 */
179a47a12beSStefan Roese 	uint	piwbear2;	/* 0x8dcc - PEX Inbound Window Base Extended Address Register 2 */
180a47a12beSStefan Roese 	uint	piwar2;	        /* 0x8dd0 - PEX Inbound Window Attributes Register 2 */
181a47a12beSStefan Roese 	char	res18[12];
182a47a12beSStefan Roese 	uint	pitar1;	        /* 0x8de0 - PEX Inbound Translation Address Register 1  */
183a47a12beSStefan Roese 	char	res19[4];
184a47a12beSStefan Roese 	uint	piwbar1;	/* 0x8de8 - PEX Inbound Window Base Address Register 1 */
185a47a12beSStefan Roese 	uint	piwbear1;
186a47a12beSStefan Roese 	uint	piwar1;	        /* 0x8df0 - PEX Inbound Window Attributes Register 1 */
187a47a12beSStefan Roese 	char	res20[12];
188a47a12beSStefan Roese 	uint	pedr;		/* 0x8e00 - PEX Error Detect Register */
189a47a12beSStefan Roese 	char    res21[4];
190a47a12beSStefan Roese 	uint	peer;		/* 0x8e08 - PEX Error Interrupt Enable Register */
191a47a12beSStefan Roese 	char    res22[4];
192a47a12beSStefan Roese 	uint	pecdr;		/* 0x8e10 - PEX Error Disable Register */
193a47a12beSStefan Roese 	char    res23[12];
194a47a12beSStefan Roese 	uint	peer_stat;	/* 0x8e20 - PEX Error Capture Status Register */
195a47a12beSStefan Roese 	char    res24[4];
196a47a12beSStefan Roese 	uint	perr_cap0;	/* 0x8e28 - PEX Error Capture Register 0 */
197a47a12beSStefan Roese 	uint	perr_cap1;	/* 0x8e2c - PEX Error Capture Register 1 */
198a47a12beSStefan Roese 	uint	perr_cap2;	/* 0x8e30 - PEX Error Capture Register 2 */
199a47a12beSStefan Roese 	uint	perr_cap3;	/* 0x8e34 - PEX Error Capture Register 3 */
200a47a12beSStefan Roese 	char	res25[452];
201a47a12beSStefan Roese 	char    res26[4];
202a47a12beSStefan Roese } ccsr_pex_t;
203a47a12beSStefan Roese 
204a47a12beSStefan Roese /* Hyper Transport Register Block (0xA000-0xB000) */
205a47a12beSStefan Roese typedef struct ccsr_ht {
206a47a12beSStefan Roese 	uint    hcfg_addr;      /* 0xa000 - HT Configuration Address register */
207a47a12beSStefan Roese 	uint    hcfg_data;      /* 0xa004 - HT Configuration Data register */
208a47a12beSStefan Roese 	char	res1[3064];
209a47a12beSStefan Roese 	uint    howtar0;        /* 0xac00 - HT Outbound Window 0 Translation register */
210a47a12beSStefan Roese 	char	res2[12];
211a47a12beSStefan Roese 	uint    howar0;         /* 0xac10 - HT Outbound Window 0 Attributes register */
212a47a12beSStefan Roese 	char	res3[12];
213a47a12beSStefan Roese 	uint    howtar1;        /* 0xac20 - HT Outbound Window 1 Translation register */
214a47a12beSStefan Roese 	char	res4[4];
215a47a12beSStefan Roese 	uint    howbar1;        /* 0xac28 - HT Outbound Window 1 Base Address register */
216a47a12beSStefan Roese 	char	res5[4];
217a47a12beSStefan Roese 	uint    howar1;         /* 0xac30 - HT Outbound Window 1 Attributes register */
218a47a12beSStefan Roese 	char	res6[12];
219a47a12beSStefan Roese 	uint    howtar2;        /* 0xac40 - HT Outbound Window 2 Translation register */
220a47a12beSStefan Roese 	char	res7[4];
221a47a12beSStefan Roese 	uint    howbar2;        /* 0xac48 - HT Outbound Window 2 Base Address register */
222a47a12beSStefan Roese 	char	res8[4];
223a47a12beSStefan Roese 	uint    howar2;         /* 0xac50 - HT Outbound Window 2 Attributes register */
224a47a12beSStefan Roese 	char	res9[12];
225a47a12beSStefan Roese 	uint    howtar3;        /* 0xac60 - HT Outbound Window 3 Translation register */
226a47a12beSStefan Roese 	char	res10[4];
227a47a12beSStefan Roese 	uint    howbar3;        /* 0xac68 - HT Outbound Window 3 Base Address register */
228a47a12beSStefan Roese 	char	res11[4];
229a47a12beSStefan Roese 	uint    howar3;         /* 0xac70 - HT Outbound Window 3 Attributes  register */
230a47a12beSStefan Roese 	char	res12[12];
231a47a12beSStefan Roese 	uint    howtar4;        /* 0xac80 - HT Outbound Window 4 Translation register */
232a47a12beSStefan Roese 	char	res13[4];
233a47a12beSStefan Roese 	uint    howbar4;        /* 0xac88 - HT Outbound Window 4 Base Address register */
234a47a12beSStefan Roese 	char	res14[4];
235a47a12beSStefan Roese 	uint    howar4;         /* 0xac90 - HT Outbound Window 4 Attributes register */
236a47a12beSStefan Roese 	char	res15[236];
237a47a12beSStefan Roese 	uint    hiwtar4;        /* 0xad80 - HT Inbound Window 4 Translation register */
238a47a12beSStefan Roese 	char	res16[4];
239a47a12beSStefan Roese 	uint    hiwbar4;        /* 0xad88 - HT Inbound Window 4 Base Address register */
240a47a12beSStefan Roese 	char	res17[4];
241a47a12beSStefan Roese 	uint    hiwar4;         /* 0xad90 - HT Inbound Window 4 Attributes register */
242a47a12beSStefan Roese 	char	res18[12];
243a47a12beSStefan Roese 	uint    hiwtar3;        /* 0xada0 - HT Inbound Window 3 Translation register */
244a47a12beSStefan Roese 	char	res19[4];
245a47a12beSStefan Roese 	uint    hiwbar3;        /* 0xada8 - HT Inbound Window 3 Base Address register */
246a47a12beSStefan Roese 	char	res20[4];
247a47a12beSStefan Roese 	uint    hiwar3;         /* 0xadb0 - HT Inbound Window 3 Attributes register */
248a47a12beSStefan Roese 	char	res21[12];
249a47a12beSStefan Roese 	uint    hiwtar2;        /* 0xadc0 - HT Inbound Window 2 Translation register */
250a47a12beSStefan Roese 	char	res22[4];
251a47a12beSStefan Roese 	uint    hiwbar2;        /* 0xadc8 - HT Inbound Window 2 Base Address register */
252a47a12beSStefan Roese 	char	res23[4];
253a47a12beSStefan Roese 	uint    hiwar2;         /* 0xadd0 - HT Inbound Window 2 Attributes register */
254a47a12beSStefan Roese 	char	res24[12];
255a47a12beSStefan Roese 	uint    hiwtar1;        /* 0xade0 - HT Inbound Window 1 Translation register */
256a47a12beSStefan Roese 	char	res25[4];
257a47a12beSStefan Roese 	uint    hiwbar1;        /* 0xade8 - HT Inbound Window 1 Base Address register */
258a47a12beSStefan Roese 	char	res26[4];
259a47a12beSStefan Roese 	uint    hiwar1;         /* 0xadf0 - HT Inbound Window 1 Attributes register */
260a47a12beSStefan Roese 	char	res27[12];
261a47a12beSStefan Roese 	uint    hedr;           /* 0xae00 - HT Error Detect register */
262a47a12beSStefan Roese 	char	res28[4];
263a47a12beSStefan Roese 	uint    heier;          /* 0xae08 - HT Error Interrupt Enable register */
264a47a12beSStefan Roese 	char	res29[4];
265a47a12beSStefan Roese 	uint    hecdr;          /* 0xae10 - HT Error Capture Disbale register */
266a47a12beSStefan Roese 	char	res30[12];
267a47a12beSStefan Roese 	uint    hecsr;          /* 0xae20 - HT Error Capture Status register */
268a47a12beSStefan Roese 	char	res31[4];
269a47a12beSStefan Roese 	uint    hec0;           /* 0xae28 - HT Error Capture 0 register */
270a47a12beSStefan Roese 	uint    hec1;           /* 0xae2c - HT Error Capture 1 register */
271a47a12beSStefan Roese 	uint    hec2;           /* 0xae30 - HT Error Capture 2 register */
272a47a12beSStefan Roese 	char    res32[460];
273a47a12beSStefan Roese } ccsr_ht_t;
274a47a12beSStefan Roese 
275a47a12beSStefan Roese /* DMA Registers(0x2_1000-0x2_2000) */
276a47a12beSStefan Roese typedef struct ccsr_dma {
277a47a12beSStefan Roese 	char	res1[256];
278a47a12beSStefan Roese 	struct fsl_dma dma[4];
279a47a12beSStefan Roese 	uint	dgsr;		/* 0x21300 - DMA General Status Register */
280a47a12beSStefan Roese 	char	res2[3324];
281a47a12beSStefan Roese } ccsr_dma_t;
282a47a12beSStefan Roese 
283a47a12beSStefan Roese /* tsec1-4: 24000-28000 */
284a47a12beSStefan Roese typedef struct ccsr_tsec {
285a47a12beSStefan Roese 	uint    id;		/* 0x24000 - Controller ID Register */
286a47a12beSStefan Roese 	char	res1[12];
287a47a12beSStefan Roese 	uint	ievent;		/* 0x24010 - Interrupt Event Register */
288a47a12beSStefan Roese 	uint	imask;		/* 0x24014 - Interrupt Mask Register */
289a47a12beSStefan Roese 	uint	edis;		/* 0x24018 - Error Disabled Register */
290a47a12beSStefan Roese 	char	res2[4];
291a47a12beSStefan Roese 	uint	ecntrl;		/* 0x24020 - Ethernet Control Register */
292a47a12beSStefan Roese 	char    res2_1[4];
293a47a12beSStefan Roese 	uint	ptv;		/* 0x24028 - Pause Time Value Register */
294a47a12beSStefan Roese 	uint	dmactrl;	/* 0x2402c - DMA Control Register */
295a47a12beSStefan Roese 	uint	tbipa;		/* 0x24030 - TBI PHY Address Register */
296a47a12beSStefan Roese 	char	res3[88];
297a47a12beSStefan Roese 	uint	fifo_tx_thr;	/* 0x2408c - FIFO transmit threshold register */
298a47a12beSStefan Roese 	char	res4[8];
299a47a12beSStefan Roese 	uint	fifo_tx_starve;	/* 0x24098 - FIFO transmit starve register */
300a47a12beSStefan Roese 	uint	fifo_tx_starve_shutoff;/* 0x2409c - FIFO transmit starve shutoff register */
301a47a12beSStefan Roese 	char    res4_1[4];
302a47a12beSStefan Roese 	uint    fifo_rx_pause;  /* 0x240a4 - FIFO receive pause threshold register */
303a47a12beSStefan Roese 	uint    fifo_rx_alarm;  /* 0x240a8 - FIFO receive alarm threshold register */
304a47a12beSStefan Roese 	char	res5[84];
305a47a12beSStefan Roese 	uint	tctrl;		/* 0x24100 - Transmit Control Register */
306a47a12beSStefan Roese 	uint	tstat;		/* 0x24104 - Transmit Status Register */
307a47a12beSStefan Roese 	uint    dfvlan;		/* 0x24108 - Default VLAN control word */
308a47a12beSStefan Roese 	char    res6[4];
309a47a12beSStefan Roese 	uint    txic;		/* 0x24110 - Transmit interrupt coalescing Register */
310a47a12beSStefan Roese 	uint    tqueue;         /* 0x24114 - Transmit Queue Control Register */
311a47a12beSStefan Roese 	char	res7[40];
312a47a12beSStefan Roese 	uint    tr03wt;         /* 0x24140 - TxBD Rings 0-3 round-robin weightings */
313a47a12beSStefan Roese 	uint    tw47wt;         /* 0x24144 - TxBD Rings 4-7 round-robin weightings */
314a47a12beSStefan Roese 	char    res8[52];
315a47a12beSStefan Roese 	uint	tbdbph;	        /* 0x2417c - Transmit Data Buffer Pointer High Register */
316a47a12beSStefan Roese 	char    res9[4];
317a47a12beSStefan Roese 	uint    tbptr0;         /* 0x24184 - Transmit Buffer Descriptor Pointer for Ring 0 */
318a47a12beSStefan Roese 	char    res10[4];
319a47a12beSStefan Roese 	uint    tbptr1;         /* 0x2418C - Transmit Buffer Descriptor Pointer for Ring 1 */
320a47a12beSStefan Roese 	char    res11[4];
321a47a12beSStefan Roese 	uint    tbptr2;         /* 0x24194 - Transmit Buffer Descriptor Pointer for Ring 2 */
322a47a12beSStefan Roese 	char    res12[4];
323a47a12beSStefan Roese 	uint    tbptr3;         /* 0x2419C - Transmit Buffer Descriptor Pointer for Ring 3 */
324a47a12beSStefan Roese 	char    res13[4];
325a47a12beSStefan Roese 	uint    tbptr4;         /* 0x241A4 - Transmit Buffer Descriptor Pointer for Ring 4 */
326a47a12beSStefan Roese 	char    res14[4];
327a47a12beSStefan Roese 	uint    tbptr5;         /* 0x241AC - Transmit Buffer Descriptor Pointer for Ring 5 */
328a47a12beSStefan Roese 	char    res15[4];
329a47a12beSStefan Roese 	uint    tbptr6;         /* 0x241B4 - Transmit Buffer Descriptor Pointer for Ring 6 */
330a47a12beSStefan Roese 	char    res16[4];
331a47a12beSStefan Roese 	uint    tbptr7;         /* 0x241BC - Transmit Buffer Descriptor Pointer for Ring 7 */
332a47a12beSStefan Roese 	char    res17[64];
333a47a12beSStefan Roese 	uint	tbaseh;		/* 0x24200 - Transmit Descriptor Base Address High Register */
334a47a12beSStefan Roese 	uint	tbase0;		/* 0x24204 - Transmit Descriptor Base Address Register of Ring 0 */
335a47a12beSStefan Roese 	char    res18[4];
336a47a12beSStefan Roese 	uint    tbase1;         /* 0x2420C - Transmit Descriptor base address of Ring 1 */
337a47a12beSStefan Roese 	char    res19[4];
338a47a12beSStefan Roese 	uint    tbase2;         /* 0x24214 - Transmit Descriptor base address of Ring 2 */
339a47a12beSStefan Roese 	char    res20[4];
340a47a12beSStefan Roese 	uint    tbase3;         /* 0x2421C - Transmit Descriptor base address of Ring 3 */
341a47a12beSStefan Roese 	char    res21[4];
342a47a12beSStefan Roese 	uint    tbase4;         /* 0x24224 - Transmit Descriptor base address of Ring 4 */
343a47a12beSStefan Roese 	char    res22[4];
344a47a12beSStefan Roese 	uint    tbase5;         /* 0x2422C - Transmit Descriptor base address of Ring 5 */
345a47a12beSStefan Roese 	char    res23[4];
346a47a12beSStefan Roese 	uint    tbase6;         /* 0x24234 - Transmit Descriptor base address of Ring 6 */
347a47a12beSStefan Roese 	char    res24[4];
348a47a12beSStefan Roese 	uint    tbase7;         /* 0x2423C - Transmit Descriptor base address of Ring 7 */
349a47a12beSStefan Roese 	char    res25[192];
350a47a12beSStefan Roese 	uint	rctrl;		/* 0x24300 - Receive Control Register */
351a47a12beSStefan Roese 	uint	rstat;		/* 0x24304 - Receive Status Register */
352a47a12beSStefan Roese 	char	res26[8];
353a47a12beSStefan Roese 	uint    rxic;           /* 0x24310 - Receive Interrupt Coalecing Register */
354a47a12beSStefan Roese 	uint    rqueue;         /* 0x24314 - Receive queue control register */
355a47a12beSStefan Roese 	char	res27[24];
356a47a12beSStefan Roese 	uint    rbifx;		/* 0x24330 - Receive bit field extract control Register */
357a47a12beSStefan Roese 	uint    rqfar;		/* 0x24334 - Receive queue filing table address Register */
358a47a12beSStefan Roese 	uint    rqfcr;		/* 0x24338 - Receive queue filing table control Register */
359a47a12beSStefan Roese 	uint    rqfpr;		/* 0x2433c - Receive queue filing table property Register */
360a47a12beSStefan Roese 	uint	mrblr;		/* 0x24340 - Maximum Receive Buffer Length Register */
361a47a12beSStefan Roese 	char	res28[56];
362a47a12beSStefan Roese 	uint    rbdbph;		/* 0x2437C - Receive Data Buffer Pointer High */
363a47a12beSStefan Roese 	char    res29[4];
364a47a12beSStefan Roese 	uint	rbptr0;		/* 0x24384 - Receive Buffer Descriptor Pointer for Ring 0 */
365a47a12beSStefan Roese 	char    res30[4];
366a47a12beSStefan Roese 	uint	rbptr1;		/* 0x2438C - Receive Buffer Descriptor Pointer for Ring 1 */
367a47a12beSStefan Roese 	char    res31[4];
368a47a12beSStefan Roese 	uint	rbptr2;		/* 0x24394 - Receive Buffer Descriptor Pointer for Ring 2 */
369a47a12beSStefan Roese 	char    res32[4];
370a47a12beSStefan Roese 	uint	rbptr3;		/* 0x2439C - Receive Buffer Descriptor Pointer for Ring 3 */
371a47a12beSStefan Roese 	char    res33[4];
372a47a12beSStefan Roese 	uint	rbptr4;		/* 0x243A4 - Receive Buffer Descriptor Pointer for Ring 4 */
373a47a12beSStefan Roese 	char    res34[4];
374a47a12beSStefan Roese 	uint	rbptr5;		/* 0x243AC - Receive Buffer Descriptor Pointer for Ring 5 */
375a47a12beSStefan Roese 	char    res35[4];
376a47a12beSStefan Roese 	uint	rbptr6;		/* 0x243B4 - Receive Buffer Descriptor Pointer for Ring 6 */
377a47a12beSStefan Roese 	char    res36[4];
378a47a12beSStefan Roese 	uint	rbptr7;		/* 0x243BC - Receive Buffer Descriptor Pointer for Ring 7 */
379a47a12beSStefan Roese 	char    res37[64];
380a47a12beSStefan Roese 	uint	rbaseh;		/* 0x24400 - Receive Descriptor Base Address High 0 */
381a47a12beSStefan Roese 	uint	rbase0;		/* 0x24404 - Receive Descriptor Base Address of Ring 0 */
382a47a12beSStefan Roese 	char    res38[4];
383a47a12beSStefan Roese 	uint	rbase1;		/* 0x2440C - Receive Descriptor Base Address of Ring 1 */
384a47a12beSStefan Roese 	char    res39[4];
385a47a12beSStefan Roese 	uint	rbase2;		/* 0x24414 - Receive Descriptor Base Address of Ring 2 */
386a47a12beSStefan Roese 	char    res40[4];
387a47a12beSStefan Roese 	uint	rbase3;		/* 0x2441C - Receive Descriptor Base Address of Ring 3 */
388a47a12beSStefan Roese 	char    res41[4];
389a47a12beSStefan Roese 	uint	rbase4;		/* 0x24424 - Receive Descriptor Base Address of Ring 4 */
390a47a12beSStefan Roese 	char    res42[4];
391a47a12beSStefan Roese 	uint	rbase5;		/* 0x2442C - Receive Descriptor Base Address of Ring 5 */
392a47a12beSStefan Roese 	char    res43[4];
393a47a12beSStefan Roese 	uint	rbase6;		/* 0x24434 - Receive Descriptor Base Address of Ring 6 */
394a47a12beSStefan Roese 	char    res44[4];
395a47a12beSStefan Roese 	uint	rbase7;		/* 0x2443C - Receive Descriptor Base Address of Ring 7 */
396a47a12beSStefan Roese 	char    res45[192];
397a47a12beSStefan Roese 	uint	maccfg1;	/* 0x24500 - MAC Configuration 1 Register */
398a47a12beSStefan Roese 	uint	maccfg2;	/* 0x24504 - MAC Configuration 2 Register */
399a47a12beSStefan Roese 	uint	ipgifg;		/* 0x24508 - Inter Packet Gap/Inter Frame Gap Register */
400a47a12beSStefan Roese 	uint	hafdup;		/* 0x2450c - Half Duplex Register */
401a47a12beSStefan Roese 	uint	maxfrm;		/* 0x24510 - Maximum Frame Length Register */
402a47a12beSStefan Roese 	char	res46[12];
403a47a12beSStefan Roese 	uint	miimcfg;	/* 0x24520 - MII Management Configuration Register */
404a47a12beSStefan Roese 	uint	miimcom;	/* 0x24524 - MII Management Command Register */
405a47a12beSStefan Roese 	uint	miimadd;	/* 0x24528 - MII Management Address Register */
406a47a12beSStefan Roese 	uint	miimcon;	/* 0x2452c - MII Management Control Register */
407a47a12beSStefan Roese 	uint	miimstat;	/* 0x24530 - MII Management Status Register */
408a47a12beSStefan Roese 	uint	miimind;	/* 0x24534 - MII Management Indicator Register */
409a47a12beSStefan Roese 	uint    ifctrl;		/* 0x24538 - Interface Contrl Register */
410a47a12beSStefan Roese 	uint	ifstat;		/* 0x2453c - Interface Status Register */
411a47a12beSStefan Roese 	uint	macstnaddr1;	/* 0x24540 - Station Address Part 1 Register */
412a47a12beSStefan Roese 	uint	macstnaddr2;	/* 0x24544 - Station Address Part 2 Register */
413a47a12beSStefan Roese 	uint    mac01addr1;     /* 0x24548 - MAC exact match address 1, part 1 */
414a47a12beSStefan Roese 	uint    mac01addr2;     /* 0x2454C - MAC exact match address 1, part 2 */
415a47a12beSStefan Roese 	uint    mac02addr1;     /* 0x24550 - MAC exact match address 2, part 1 */
416a47a12beSStefan Roese 	uint    mac02addr2;     /* 0x24554 - MAC exact match address 2, part 2 */
417a47a12beSStefan Roese 	uint    mac03addr1;     /* 0x24558 - MAC exact match address 3, part 1 */
418a47a12beSStefan Roese 	uint    mac03addr2;     /* 0x2455C - MAC exact match address 3, part 2 */
419a47a12beSStefan Roese 	uint    mac04addr1;     /* 0x24560 - MAC exact match address 4, part 1 */
420a47a12beSStefan Roese 	uint    mac04addr2;     /* 0x24564 - MAC exact match address 4, part 2 */
421a47a12beSStefan Roese 	uint    mac05addr1;     /* 0x24568 - MAC exact match address 5, part 1 */
422a47a12beSStefan Roese 	uint    mac05addr2;     /* 0x2456C - MAC exact match address 5, part 2 */
423a47a12beSStefan Roese 	uint    mac06addr1;     /* 0x24570 - MAC exact match address 6, part 1 */
424a47a12beSStefan Roese 	uint    mac06addr2;     /* 0x24574 - MAC exact match address 6, part 2 */
425a47a12beSStefan Roese 	uint    mac07addr1;     /* 0x24578 - MAC exact match address 7, part 1 */
426a47a12beSStefan Roese 	uint    mac07addr2;     /* 0x2457C - MAC exact match address 7, part 2 */
427a47a12beSStefan Roese 	uint    mac08addr1;     /* 0x24580 - MAC exact match address 8, part 1 */
428a47a12beSStefan Roese 	uint    mac08addr2;     /* 0x24584 - MAC exact match address 8, part 2 */
429a47a12beSStefan Roese 	uint    mac09addr1;     /* 0x24588 - MAC exact match address 9, part 1 */
430a47a12beSStefan Roese 	uint    mac09addr2;     /* 0x2458C - MAC exact match address 9, part 2 */
431a47a12beSStefan Roese 	uint    mac10addr1;     /* 0x24590 - MAC exact match address 10, part 1 */
432a47a12beSStefan Roese 	uint    mac10addr2;     /* 0x24594 - MAC exact match address 10, part 2 */
433a47a12beSStefan Roese 	uint    mac11addr1;     /* 0x24598 - MAC exact match address 11, part 1 */
434a47a12beSStefan Roese 	uint    mac11addr2;     /* 0x2459C - MAC exact match address 11, part 2 */
435a47a12beSStefan Roese 	uint    mac12addr1;     /* 0x245A0 - MAC exact match address 12, part 1 */
436a47a12beSStefan Roese 	uint    mac12addr2;     /* 0x245A4 - MAC exact match address 12, part 2 */
437a47a12beSStefan Roese 	uint    mac13addr1;     /* 0x245A8 - MAC exact match address 13, part 1 */
438a47a12beSStefan Roese 	uint    mac13addr2;     /* 0x245AC - MAC exact match address 13, part 2 */
439a47a12beSStefan Roese 	uint    mac14addr1;     /* 0x245B0 - MAC exact match address 14, part 1 */
440a47a12beSStefan Roese 	uint    mac14addr2;     /* 0x245B4 - MAC exact match address 14, part 2 */
441a47a12beSStefan Roese 	uint    mac15addr1;     /* 0x245B8 - MAC exact match address 15, part 1 */
442a47a12beSStefan Roese 	uint    mac15addr2;     /* 0x245BC - MAC exact match address 15, part 2 */
443a47a12beSStefan Roese 	char	res48[192];
444a47a12beSStefan Roese 	uint	tr64;		/* 0x24680 - Transmit and Receive 64-byte Frame Counter */
445a47a12beSStefan Roese 	uint	tr127;		/* 0x24684 - Transmit and Receive 65-127 byte Frame Counter */
446a47a12beSStefan Roese 	uint	tr255;		/* 0x24688 - Transmit and Receive 128-255 byte Frame Counter */
447a47a12beSStefan Roese 	uint	tr511;		/* 0x2468c - Transmit and Receive 256-511 byte Frame Counter */
448a47a12beSStefan Roese 	uint	tr1k;		/* 0x24690 - Transmit and Receive 512-1023 byte Frame Counter */
449a47a12beSStefan Roese 	uint	trmax;		/* 0x24694 - Transmit and Receive 1024-1518 byte Frame Counter */
450a47a12beSStefan Roese 	uint	trmgv;		/* 0x24698 - Transmit and Receive 1519-1522 byte Good VLAN Frame */
451a47a12beSStefan Roese 	uint	rbyt;		/* 0x2469c - Receive Byte Counter */
452a47a12beSStefan Roese 	uint	rpkt;		/* 0x246a0 - Receive Packet Counter */
453a47a12beSStefan Roese 	uint	rfcs;		/* 0x246a4 - Receive FCS Error Counter */
454a47a12beSStefan Roese 	uint	rmca;		/* 0x246a8 - Receive Multicast Packet Counter */
455a47a12beSStefan Roese 	uint	rbca;		/* 0x246ac - Receive Broadcast Packet Counter */
456a47a12beSStefan Roese 	uint	rxcf;		/* 0x246b0 - Receive Control Frame Packet Counter */
457a47a12beSStefan Roese 	uint	rxpf;		/* 0x246b4 - Receive Pause Frame Packet Counter */
458a47a12beSStefan Roese 	uint	rxuo;		/* 0x246b8 - Receive Unknown OP Code Counter */
459a47a12beSStefan Roese 	uint	raln;		/* 0x246bc - Receive Alignment Error Counter */
460a47a12beSStefan Roese 	uint	rflr;		/* 0x246c0 - Receive Frame Length Error Counter */
461a47a12beSStefan Roese 	uint	rcde;		/* 0x246c4 - Receive Code Error Counter */
462a47a12beSStefan Roese 	uint	rcse;		/* 0x246c8 - Receive Carrier Sense Error Counter */
463a47a12beSStefan Roese 	uint	rund;		/* 0x246cc - Receive Undersize Packet Counter */
464a47a12beSStefan Roese 	uint	rovr;		/* 0x246d0 - Receive Oversize Packet Counter */
465a47a12beSStefan Roese 	uint	rfrg;		/* 0x246d4 - Receive Fragments Counter */
466a47a12beSStefan Roese 	uint	rjbr;		/* 0x246d8 - Receive Jabber Counter */
467a47a12beSStefan Roese 	uint	rdrp;		/* 0x246dc - Receive Drop Counter */
468a47a12beSStefan Roese 	uint	tbyt;		/* 0x246e0 - Transmit Byte Counter Counter */
469a47a12beSStefan Roese 	uint	tpkt;		/* 0x246e4 - Transmit Packet Counter */
470a47a12beSStefan Roese 	uint	tmca;		/* 0x246e8 - Transmit Multicast Packet Counter */
471a47a12beSStefan Roese 	uint	tbca;		/* 0x246ec - Transmit Broadcast Packet Counter */
472a47a12beSStefan Roese 	uint	txpf;		/* 0x246f0 - Transmit Pause Control Frame Counter */
473a47a12beSStefan Roese 	uint	tdfr;		/* 0x246f4 - Transmit Deferral Packet Counter */
474a47a12beSStefan Roese 	uint	tedf;		/* 0x246f8 - Transmit Excessive Deferral Packet Counter */
475a47a12beSStefan Roese 	uint	tscl;		/* 0x246fc - Transmit Single Collision Packet Counter */
476a47a12beSStefan Roese 	uint	tmcl;		/* 0x24700 - Transmit Multiple Collision Packet Counter */
477a47a12beSStefan Roese 	uint	tlcl;		/* 0x24704 - Transmit Late Collision Packet Counter */
478a47a12beSStefan Roese 	uint	txcl;		/* 0x24708 - Transmit Excessive Collision Packet Counter */
479a47a12beSStefan Roese 	uint	tncl;		/* 0x2470c - Transmit Total Collision Counter */
480a47a12beSStefan Roese 	char	res49[4];
481a47a12beSStefan Roese 	uint	tdrp;		/* 0x24714 - Transmit Drop Frame Counter */
482a47a12beSStefan Roese 	uint	tjbr;		/* 0x24718 - Transmit Jabber Frame Counter */
483a47a12beSStefan Roese 	uint	tfcs;		/* 0x2471c - Transmit FCS Error Counter */
484a47a12beSStefan Roese 	uint	txcf;		/* 0x24720 - Transmit Control Frame Counter */
485a47a12beSStefan Roese 	uint	tovr;		/* 0x24724 - Transmit Oversize Frame Counter */
486a47a12beSStefan Roese 	uint	tund;		/* 0x24728 - Transmit Undersize Frame Counter */
487a47a12beSStefan Roese 	uint	tfrg;		/* 0x2472c - Transmit Fragments Frame Counter */
488a47a12beSStefan Roese 	uint	car1;		/* 0x24730 - Carry Register One */
489a47a12beSStefan Roese 	uint	car2;		/* 0x24734 - Carry Register Two */
490a47a12beSStefan Roese 	uint	cam1;		/* 0x24738 - Carry Mask Register One */
491a47a12beSStefan Roese 	uint	cam2;		/* 0x2473c - Carry Mask Register Two */
492a47a12beSStefan Roese 	uint    rrej;	        /* 0x24740 - Receive filer rejected packet counter */
493a47a12beSStefan Roese 	char	res50[188];
494a47a12beSStefan Roese 	uint	iaddr0;		/* 0x24800 - Indivdual address register 0 */
495a47a12beSStefan Roese 	uint	iaddr1;		/* 0x24804 - Indivdual address register 1 */
496a47a12beSStefan Roese 	uint	iaddr2;		/* 0x24808 - Indivdual address register 2 */
497a47a12beSStefan Roese 	uint	iaddr3;		/* 0x2480c - Indivdual address register 3 */
498a47a12beSStefan Roese 	uint	iaddr4;		/* 0x24810 - Indivdual address register 4 */
499a47a12beSStefan Roese 	uint	iaddr5;		/* 0x24814 - Indivdual address register 5 */
500a47a12beSStefan Roese 	uint	iaddr6;		/* 0x24818 - Indivdual address register 6 */
501a47a12beSStefan Roese 	uint	iaddr7;		/* 0x2481c - Indivdual address register 7 */
502a47a12beSStefan Roese 	char	res51[96];
503a47a12beSStefan Roese 	uint	gaddr0;		/* 0x24880 - Global address register 0 */
504a47a12beSStefan Roese 	uint	gaddr1;		/* 0x24884 - Global address register 1 */
505a47a12beSStefan Roese 	uint	gaddr2;		/* 0x24888 - Global address register 2 */
506a47a12beSStefan Roese 	uint	gaddr3;		/* 0x2488c - Global address register 3 */
507a47a12beSStefan Roese 	uint	gaddr4;		/* 0x24890 - Global address register 4 */
508a47a12beSStefan Roese 	uint	gaddr5;		/* 0x24894 - Global address register 5 */
509a47a12beSStefan Roese 	uint	gaddr6;		/* 0x24898 - Global address register 6 */
510a47a12beSStefan Roese 	uint	gaddr7;		/* 0x2489c - Global address register 7 */
511a47a12beSStefan Roese 	char	res52[352];
512a47a12beSStefan Roese 	uint    fifocfg;        /* 0x24A00 - FIFO interface configuration register */
513a47a12beSStefan Roese 	char    res53[500];
514a47a12beSStefan Roese 	uint    attr;           /* 0x24BF8 - DMA Attribute register */
515a47a12beSStefan Roese 	uint    attreli;        /* 0x24BFC - DMA Attribute extract length and index register */
516a47a12beSStefan Roese 	char    res54[1024];
517a47a12beSStefan Roese } ccsr_tsec_t;
518a47a12beSStefan Roese 
519a47a12beSStefan Roese /* PIC Registers(0x4_0000-0x6_1000) */
520a47a12beSStefan Roese 
521a47a12beSStefan Roese typedef struct ccsr_pic {
522a47a12beSStefan Roese 	char	res1[64];
523a47a12beSStefan Roese 	uint	ipidr0;		/* 0x40040 - Interprocessor Interrupt Dispatch Register 0 */
524a47a12beSStefan Roese 	char	res2[12];
525a47a12beSStefan Roese 	uint	ipidr1;		/* 0x40050 - Interprocessor Interrupt Dispatch Register 1 */
526a47a12beSStefan Roese 	char	res3[12];
527a47a12beSStefan Roese 	uint	ipidr2;		/* 0x40060 - Interprocessor Interrupt Dispatch Register 2 */
528a47a12beSStefan Roese 	char	res4[12];
529a47a12beSStefan Roese 	uint	ipidr3;		/* 0x40070 - Interprocessor Interrupt Dispatch Register 3 */
530a47a12beSStefan Roese 	char	res5[12];
531a47a12beSStefan Roese 	uint	ctpr;		/* 0x40080 - Current Task Priority Register */
532a47a12beSStefan Roese 	char	res6[12];
533a47a12beSStefan Roese 	uint	whoami;		/* 0x40090 - Who Am I Register */
534a47a12beSStefan Roese 	char	res7[12];
535a47a12beSStefan Roese 	uint	iack;		/* 0x400a0 - Interrupt Acknowledge Register */
536a47a12beSStefan Roese 	char	res8[12];
537a47a12beSStefan Roese 	uint	eoi;		/* 0x400b0 - End Of Interrupt Register */
538a47a12beSStefan Roese 	char	res9[3916];
539a47a12beSStefan Roese 	uint	frr;		/* 0x41000 - Feature Reporting Register */
540a47a12beSStefan Roese 	char	res10[28];
541a47a12beSStefan Roese 	uint	gcr;		/* 0x41020 - Global Configuration Register */
542a47a12beSStefan Roese #define MPC86xx_PICGCR_RST	0x80000000
543a47a12beSStefan Roese #define MPC86xx_PICGCR_MODE	0x20000000
544a47a12beSStefan Roese 	char	res11[92];
545a47a12beSStefan Roese 	uint	vir;		/* 0x41080 - Vendor Identification Register */
546a47a12beSStefan Roese 	char	res12[12];
547a47a12beSStefan Roese 	uint	pir;		/* 0x41090 - Processor Initialization Register */
548a47a12beSStefan Roese 	char	res13[12];
549a47a12beSStefan Roese 	uint	ipivpr0;	/* 0x410a0 - IPI Vector/Priority Register 0 */
550a47a12beSStefan Roese 	char	res14[12];
551a47a12beSStefan Roese 	uint	ipivpr1;	/* 0x410b0 - IPI Vector/Priority Register 1 */
552a47a12beSStefan Roese 	char	res15[12];
553a47a12beSStefan Roese 	uint	ipivpr2;	/* 0x410c0 - IPI Vector/Priority Register 2 */
554a47a12beSStefan Roese 	char	res16[12];
555a47a12beSStefan Roese 	uint	ipivpr3;	/* 0x410d0 - IPI Vector/Priority Register 3 */
556a47a12beSStefan Roese 	char	res17[12];
557a47a12beSStefan Roese 	uint	svr;		/* 0x410e0 - Spurious Vector Register */
558a47a12beSStefan Roese 	char	res18[12];
559a47a12beSStefan Roese 	uint	tfrr;		/* 0x410f0 - Timer Frequency Reporting Register */
560a47a12beSStefan Roese 	char	res19[12];
561a47a12beSStefan Roese 	uint	gtccr0;		/* 0x41100 - Global Timer Current Count Register 0 */
562a47a12beSStefan Roese 	char	res20[12];
563a47a12beSStefan Roese 	uint	gtbcr0;		/* 0x41110 - Global Timer Base Count Register 0 */
564a47a12beSStefan Roese 	char	res21[12];
565a47a12beSStefan Roese 	uint	gtvpr0;		/* 0x41120 - Global Timer Vector/Priority Register 0 */
566a47a12beSStefan Roese 	char	res22[12];
567a47a12beSStefan Roese 	uint	gtdr0;		/* 0x41130 - Global Timer Destination Register 0 */
568a47a12beSStefan Roese 	char	res23[12];
569a47a12beSStefan Roese 	uint	gtccr1;		/* 0x41140 - Global Timer Current Count Register 1 */
570a47a12beSStefan Roese 	char	res24[12];
571a47a12beSStefan Roese 	uint	gtbcr1;		/* 0x41150 - Global Timer Base Count Register 1 */
572a47a12beSStefan Roese 	char	res25[12];
573a47a12beSStefan Roese 	uint	gtvpr1;		/* 0x41160 - Global Timer Vector/Priority Register 1 */
574a47a12beSStefan Roese 	char	res26[12];
575a47a12beSStefan Roese 	uint	gtdr1;		/* 0x41170 - Global Timer Destination Register 1 */
576a47a12beSStefan Roese 	char	res27[12];
577a47a12beSStefan Roese 	uint	gtccr2;		/* 0x41180 - Global Timer Current Count Register 2 */
578a47a12beSStefan Roese 	char	res28[12];
579a47a12beSStefan Roese 	uint	gtbcr2;		/* 0x41190 - Global Timer Base Count Register 2 */
580a47a12beSStefan Roese 	char	res29[12];
581a47a12beSStefan Roese 	uint	gtvpr2;		/* 0x411a0 - Global Timer Vector/Priority Register 2 */
582a47a12beSStefan Roese 	char	res30[12];
583a47a12beSStefan Roese 	uint	gtdr2;		/* 0x411b0 - Global Timer Destination Register 2 */
584a47a12beSStefan Roese 	char	res31[12];
585a47a12beSStefan Roese 	uint	gtccr3;		/* 0x411c0 - Global Timer Current Count Register 3 */
586a47a12beSStefan Roese 	char	res32[12];
587a47a12beSStefan Roese 	uint	gtbcr3;		/* 0x411d0 - Global Timer Base Count Register 3 */
588a47a12beSStefan Roese 	char	res33[12];
589a47a12beSStefan Roese 	uint	gtvpr3;		/* 0x411e0 - Global Timer Vector/Priority Register 3 */
590a47a12beSStefan Roese 	char	res34[12];
591a47a12beSStefan Roese 	uint	gtdr3;		/* 0x411f0 - Global Timer Destination Register 3 */
592a47a12beSStefan Roese 	char	res35[268];
593a47a12beSStefan Roese 	uint	tcr;		/* 0x41300 - Timer Control Register */
594a47a12beSStefan Roese 	char	res36[12];
595a47a12beSStefan Roese 	uint	irqsr0;		/* 0x41310 - IRQ_OUT Summary Register 0 */
596a47a12beSStefan Roese 	char	res37[12];
597a47a12beSStefan Roese 	uint	irqsr1;		/* 0x41320 - IRQ_OUT Summary Register 1 */
598a47a12beSStefan Roese 	char	res38[12];
599a47a12beSStefan Roese 	uint	cisr0;		/* 0x41330 - Critical Interrupt Summary Register 0 */
600a47a12beSStefan Roese 	char	res39[12];
601a47a12beSStefan Roese 	uint	cisr1;		/* 0x41340 - Critical Interrupt Summary Register 1 */
602a47a12beSStefan Roese 	char	res40[12];
603a47a12beSStefan Roese 	uint	pm0mr0;		/* 0x41350 - Performance monitor 0 mask register 0  */
604a47a12beSStefan Roese 	char	res41[12];
605a47a12beSStefan Roese 	uint	pm0mr1;		/* 0x41360 - Performance monitor 0 mask register 1  */
606a47a12beSStefan Roese 	char	res42[12];
607a47a12beSStefan Roese 	uint	pm1mr0;		/* 0x41370 - Performance monitor 1 mask register 0  */
608a47a12beSStefan Roese 	char	res43[12];
609a47a12beSStefan Roese 	uint	pm1mr1;		/* 0x41380 - Performance monitor 1 mask register 1  */
610a47a12beSStefan Roese 	char	res44[12];
611a47a12beSStefan Roese 	uint	pm2mr0;		/* 0x41390 - Performance monitor 2 mask register 0  */
612a47a12beSStefan Roese 	char	res45[12];
613a47a12beSStefan Roese 	uint	pm2mr1;		/* 0x413A0 - Performance monitor 2 mask register 1  */
614a47a12beSStefan Roese 	char	res46[12];
615a47a12beSStefan Roese 	uint	pm3mr0;		/* 0x413B0 - Performance monitor 3 mask register 0  */
616a47a12beSStefan Roese 	char	res47[12];
617a47a12beSStefan Roese 	uint	pm3mr1;		/* 0x413C0 - Performance monitor 3 mask register 1  */
618a47a12beSStefan Roese 	char	res48[60];
619a47a12beSStefan Roese 	uint	msgr0;		/* 0x41400 - Message Register 0 */
620a47a12beSStefan Roese 	char	res49[12];
621a47a12beSStefan Roese 	uint	msgr1;		/* 0x41410 - Message Register 1 */
622a47a12beSStefan Roese 	char	res50[12];
623a47a12beSStefan Roese 	uint	msgr2;		/* 0x41420 - Message Register 2 */
624a47a12beSStefan Roese 	char	res51[12];
625a47a12beSStefan Roese 	uint	msgr3;		/* 0x41430 - Message Register 3 */
626a47a12beSStefan Roese 	char	res52[204];
627a47a12beSStefan Roese 	uint	mer;		/* 0x41500 - Message Enable Register */
628a47a12beSStefan Roese 	char	res53[12];
629a47a12beSStefan Roese 	uint	msr;		/* 0x41510 - Message Status Register */
630a47a12beSStefan Roese 	char	res54[60140];
631a47a12beSStefan Roese 	uint	eivpr0;		/* 0x50000 - External Interrupt Vector/Priority Register 0 */
632a47a12beSStefan Roese 	char	res55[12];
633a47a12beSStefan Roese 	uint	eidr0;		/* 0x50010 - External Interrupt Destination Register 0 */
634a47a12beSStefan Roese 	char	res56[12];
635a47a12beSStefan Roese 	uint	eivpr1;		/* 0x50020 - External Interrupt Vector/Priority Register 1 */
636a47a12beSStefan Roese 	char	res57[12];
637a47a12beSStefan Roese 	uint	eidr1;		/* 0x50030 - External Interrupt Destination Register 1 */
638a47a12beSStefan Roese 	char	res58[12];
639a47a12beSStefan Roese 	uint	eivpr2;		/* 0x50040 - External Interrupt Vector/Priority Register 2 */
640a47a12beSStefan Roese 	char	res59[12];
641a47a12beSStefan Roese 	uint	eidr2;		/* 0x50050 - External Interrupt Destination Register 2 */
642a47a12beSStefan Roese 	char	res60[12];
643a47a12beSStefan Roese 	uint	eivpr3;		/* 0x50060 - External Interrupt Vector/Priority Register 3 */
644a47a12beSStefan Roese 	char	res61[12];
645a47a12beSStefan Roese 	uint	eidr3;		/* 0x50070 - External Interrupt Destination Register 3 */
646a47a12beSStefan Roese 	char	res62[12];
647a47a12beSStefan Roese 	uint	eivpr4;		/* 0x50080 - External Interrupt Vector/Priority Register 4 */
648a47a12beSStefan Roese 	char	res63[12];
649a47a12beSStefan Roese 	uint	eidr4;		/* 0x50090 - External Interrupt Destination Register 4 */
650a47a12beSStefan Roese 	char	res64[12];
651a47a12beSStefan Roese 	uint	eivpr5;		/* 0x500a0 - External Interrupt Vector/Priority Register 5 */
652a47a12beSStefan Roese 	char	res65[12];
653a47a12beSStefan Roese 	uint	eidr5;		/* 0x500b0 - External Interrupt Destination Register 5 */
654a47a12beSStefan Roese 	char	res66[12];
655a47a12beSStefan Roese 	uint	eivpr6;		/* 0x500c0 - External Interrupt Vector/Priority Register 6 */
656a47a12beSStefan Roese 	char	res67[12];
657a47a12beSStefan Roese 	uint	eidr6;		/* 0x500d0 - External Interrupt Destination Register 6 */
658a47a12beSStefan Roese 	char	res68[12];
659a47a12beSStefan Roese 	uint	eivpr7;		/* 0x500e0 - External Interrupt Vector/Priority Register 7 */
660a47a12beSStefan Roese 	char	res69[12];
661a47a12beSStefan Roese 	uint	eidr7;		/* 0x500f0 - External Interrupt Destination Register 7 */
662a47a12beSStefan Roese 	char	res70[12];
663a47a12beSStefan Roese 	uint	eivpr8;		/* 0x50100 - External Interrupt Vector/Priority Register 8 */
664a47a12beSStefan Roese 	char	res71[12];
665a47a12beSStefan Roese 	uint	eidr8;		/* 0x50110 - External Interrupt Destination Register 8 */
666a47a12beSStefan Roese 	char	res72[12];
667a47a12beSStefan Roese 	uint	eivpr9;		/* 0x50120 - External Interrupt Vector/Priority Register 9 */
668a47a12beSStefan Roese 	char	res73[12];
669a47a12beSStefan Roese 	uint	eidr9;		/* 0x50130 - External Interrupt Destination Register 9 */
670a47a12beSStefan Roese 	char	res74[12];
671a47a12beSStefan Roese 	uint	eivpr10;	/* 0x50140 - External Interrupt Vector/Priority Register 10 */
672a47a12beSStefan Roese 	char	res75[12];
673a47a12beSStefan Roese 	uint	eidr10;		/* 0x50150 - External Interrupt Destination Register 10 */
674a47a12beSStefan Roese 	char	res76[12];
675a47a12beSStefan Roese 	uint	eivpr11;	/* 0x50160 - External Interrupt Vector/Priority Register 11 */
676a47a12beSStefan Roese 	char	res77[12];
677a47a12beSStefan Roese 	uint	eidr11;		/* 0x50170 - External Interrupt Destination Register 11 */
678a47a12beSStefan Roese 	char	res78[140];
679a47a12beSStefan Roese 	uint	iivpr0;		/* 0x50200 - Internal Interrupt Vector/Priority Register 0 */
680a47a12beSStefan Roese 	char	res79[12];
681a47a12beSStefan Roese 	uint	iidr0;		/* 0x50210 - Internal Interrupt Destination Register 0 */
682a47a12beSStefan Roese 	char	res80[12];
683a47a12beSStefan Roese 	uint	iivpr1;		/* 0x50220 - Internal Interrupt Vector/Priority Register 1 */
684a47a12beSStefan Roese 	char	res81[12];
685a47a12beSStefan Roese 	uint	iidr1;		/* 0x50230 - Internal Interrupt Destination Register 1 */
686a47a12beSStefan Roese 	char	res82[12];
687a47a12beSStefan Roese 	uint	iivpr2;		/* 0x50240 - Internal Interrupt Vector/Priority Register 2 */
688a47a12beSStefan Roese 	char	res83[12];
689a47a12beSStefan Roese 	uint	iidr2;		/* 0x50250 - Internal Interrupt Destination Register 2 */
690a47a12beSStefan Roese 	char	res84[12];
691a47a12beSStefan Roese 	uint	iivpr3;		/* 0x50260 - Internal Interrupt Vector/Priority Register 3 */
692a47a12beSStefan Roese 	char	res85[12];
693a47a12beSStefan Roese 	uint	iidr3;		/* 0x50270 - Internal Interrupt Destination Register 3 */
694a47a12beSStefan Roese 	char	res86[12];
695a47a12beSStefan Roese 	uint	iivpr4;		/* 0x50280 - Internal Interrupt Vector/Priority Register 4 */
696a47a12beSStefan Roese 	char	res87[12];
697a47a12beSStefan Roese 	uint	iidr4;		/* 0x50290 - Internal Interrupt Destination Register 4 */
698a47a12beSStefan Roese 	char	res88[12];
699a47a12beSStefan Roese 	uint	iivpr5;		/* 0x502a0 - Internal Interrupt Vector/Priority Register 5 */
700a47a12beSStefan Roese 	char	res89[12];
701a47a12beSStefan Roese 	uint	iidr5;		/* 0x502b0 - Internal Interrupt Destination Register 5 */
702a47a12beSStefan Roese 	char	res90[12];
703a47a12beSStefan Roese 	uint	iivpr6;		/* 0x502c0 - Internal Interrupt Vector/Priority Register 6 */
704a47a12beSStefan Roese 	char	res91[12];
705a47a12beSStefan Roese 	uint	iidr6;		/* 0x502d0 - Internal Interrupt Destination Register 6 */
706a47a12beSStefan Roese 	char	res92[12];
707a47a12beSStefan Roese 	uint	iivpr7;		/* 0x502e0 - Internal Interrupt Vector/Priority Register 7 */
708a47a12beSStefan Roese 	char	res93[12];
709a47a12beSStefan Roese 	uint	iidr7;		/* 0x502f0 - Internal Interrupt Destination Register 7 */
710a47a12beSStefan Roese 	char	res94[12];
711a47a12beSStefan Roese 	uint	iivpr8;		/* 0x50300 - Internal Interrupt Vector/Priority Register 8 */
712a47a12beSStefan Roese 	char	res95[12];
713a47a12beSStefan Roese 	uint	iidr8;		/* 0x50310 - Internal Interrupt Destination Register 8 */
714a47a12beSStefan Roese 	char	res96[12];
715a47a12beSStefan Roese 	uint	iivpr9;		/* 0x50320 - Internal Interrupt Vector/Priority Register 9 */
716a47a12beSStefan Roese 	char	res97[12];
717a47a12beSStefan Roese 	uint	iidr9;		/* 0x50330 - Internal Interrupt Destination Register 9 */
718a47a12beSStefan Roese 	char	res98[12];
719a47a12beSStefan Roese 	uint	iivpr10;	/* 0x50340 - Internal Interrupt Vector/Priority Register 10 */
720a47a12beSStefan Roese 	char	res99[12];
721a47a12beSStefan Roese 	uint	iidr10;		/* 0x50350 - Internal Interrupt Destination Register 10 */
722a47a12beSStefan Roese 	char	res100[12];
723a47a12beSStefan Roese 	uint	iivpr11;	/* 0x50360 - Internal Interrupt Vector/Priority Register 11 */
724a47a12beSStefan Roese 	char	res101[12];
725a47a12beSStefan Roese 	uint	iidr11;		/* 0x50370 - Internal Interrupt Destination Register 11 */
726a47a12beSStefan Roese 	char	res102[12];
727a47a12beSStefan Roese 	uint	iivpr12;	/* 0x50380 - Internal Interrupt Vector/Priority Register 12 */
728a47a12beSStefan Roese 	char	res103[12];
729a47a12beSStefan Roese 	uint	iidr12;		/* 0x50390 - Internal Interrupt Destination Register 12 */
730a47a12beSStefan Roese 	char	res104[12];
731a47a12beSStefan Roese 	uint	iivpr13;	/* 0x503a0 - Internal Interrupt Vector/Priority Register 13 */
732a47a12beSStefan Roese 	char	res105[12];
733a47a12beSStefan Roese 	uint	iidr13;		/* 0x503b0 - Internal Interrupt Destination Register 13 */
734a47a12beSStefan Roese 	char	res106[12];
735a47a12beSStefan Roese 	uint	iivpr14;	/* 0x503c0 - Internal Interrupt Vector/Priority Register 14 */
736a47a12beSStefan Roese 	char	res107[12];
737a47a12beSStefan Roese 	uint	iidr14;		/* 0x503d0 - Internal Interrupt Destination Register 14 */
738a47a12beSStefan Roese 	char	res108[12];
739a47a12beSStefan Roese 	uint	iivpr15;	/* 0x503e0 - Internal Interrupt Vector/Priority Register 15 */
740a47a12beSStefan Roese 	char	res109[12];
741a47a12beSStefan Roese 	uint	iidr15;		/* 0x503f0 - Internal Interrupt Destination Register 15 */
742a47a12beSStefan Roese 	char	res110[12];
743a47a12beSStefan Roese 	uint	iivpr16;	/* 0x50400 - Internal Interrupt Vector/Priority Register 16 */
744a47a12beSStefan Roese 	char	res111[12];
745a47a12beSStefan Roese 	uint	iidr16;		/* 0x50410 - Internal Interrupt Destination Register 16 */
746a47a12beSStefan Roese 	char	res112[12];
747a47a12beSStefan Roese 	uint	iivpr17;	/* 0x50420 - Internal Interrupt Vector/Priority Register 17 */
748a47a12beSStefan Roese 	char	res113[12];
749a47a12beSStefan Roese 	uint	iidr17;		/* 0x50430 - Internal Interrupt Destination Register 17 */
750a47a12beSStefan Roese 	char	res114[12];
751a47a12beSStefan Roese 	uint	iivpr18;	/* 0x50440 - Internal Interrupt Vector/Priority Register 18 */
752a47a12beSStefan Roese 	char	res115[12];
753a47a12beSStefan Roese 	uint	iidr18;		/* 0x50450 - Internal Interrupt Destination Register 18 */
754a47a12beSStefan Roese 	char	res116[12];
755a47a12beSStefan Roese 	uint	iivpr19;	/* 0x50460 - Internal Interrupt Vector/Priority Register 19 */
756a47a12beSStefan Roese 	char	res117[12];
757a47a12beSStefan Roese 	uint	iidr19;		/* 0x50470 - Internal Interrupt Destination Register 19 */
758a47a12beSStefan Roese 	char	res118[12];
759a47a12beSStefan Roese 	uint	iivpr20;	/* 0x50480 - Internal Interrupt Vector/Priority Register 20 */
760a47a12beSStefan Roese 	char	res119[12];
761a47a12beSStefan Roese 	uint	iidr20;		/* 0x50490 - Internal Interrupt Destination Register 20 */
762a47a12beSStefan Roese 	char	res120[12];
763a47a12beSStefan Roese 	uint	iivpr21;	/* 0x504a0 - Internal Interrupt Vector/Priority Register 21 */
764a47a12beSStefan Roese 	char	res121[12];
765a47a12beSStefan Roese 	uint	iidr21;		/* 0x504b0 - Internal Interrupt Destination Register 21 */
766a47a12beSStefan Roese 	char	res122[12];
767a47a12beSStefan Roese 	uint	iivpr22;	/* 0x504c0 - Internal Interrupt Vector/Priority Register 22 */
768a47a12beSStefan Roese 	char	res123[12];
769a47a12beSStefan Roese 	uint	iidr22;		/* 0x504d0 - Internal Interrupt Destination Register 22 */
770a47a12beSStefan Roese 	char	res124[12];
771a47a12beSStefan Roese 	uint	iivpr23;	/* 0x504e0 - Internal Interrupt Vector/Priority Register 23 */
772a47a12beSStefan Roese 	char	res125[12];
773a47a12beSStefan Roese 	uint	iidr23;		/* 0x504f0 - Internal Interrupt Destination Register 23 */
774a47a12beSStefan Roese 	char	res126[12];
775a47a12beSStefan Roese 	uint	iivpr24;	/* 0x50500 - Internal Interrupt Vector/Priority Register 24 */
776a47a12beSStefan Roese 	char	res127[12];
777a47a12beSStefan Roese 	uint	iidr24;		/* 0x50510 - Internal Interrupt Destination Register 24 */
778a47a12beSStefan Roese 	char	res128[12];
779a47a12beSStefan Roese 	uint	iivpr25;	/* 0x50520 - Internal Interrupt Vector/Priority Register 25 */
780a47a12beSStefan Roese 	char	res129[12];
781a47a12beSStefan Roese 	uint	iidr25;		/* 0x50530 - Internal Interrupt Destination Register 25 */
782a47a12beSStefan Roese 	char	res130[12];
783a47a12beSStefan Roese 	uint	iivpr26;	/* 0x50540 - Internal Interrupt Vector/Priority Register 26 */
784a47a12beSStefan Roese 	char	res131[12];
785a47a12beSStefan Roese 	uint	iidr26;		/* 0x50550 - Internal Interrupt Destination Register 26 */
786a47a12beSStefan Roese 	char	res132[12];
787a47a12beSStefan Roese 	uint	iivpr27;	/* 0x50560 - Internal Interrupt Vector/Priority Register 27 */
788a47a12beSStefan Roese 	char	res133[12];
789a47a12beSStefan Roese 	uint	iidr27;		/* 0x50570 - Internal Interrupt Destination Register 27 */
790a47a12beSStefan Roese 	char	res134[12];
791a47a12beSStefan Roese 	uint	iivpr28;	/* 0x50580 - Internal Interrupt Vector/Priority Register 28 */
792a47a12beSStefan Roese 	char	res135[12];
793a47a12beSStefan Roese 	uint	iidr28;		/* 0x50590 - Internal Interrupt Destination Register 28 */
794a47a12beSStefan Roese 	char	res136[12];
795a47a12beSStefan Roese 	uint	iivpr29;	/* 0x505a0 - Internal Interrupt Vector/Priority Register 29 */
796a47a12beSStefan Roese 	char	res137[12];
797a47a12beSStefan Roese 	uint	iidr29;		/* 0x505b0 - Internal Interrupt Destination Register 29 */
798a47a12beSStefan Roese 	char	res138[12];
799a47a12beSStefan Roese 	uint	iivpr30;	/* 0x505c0 - Internal Interrupt Vector/Priority Register 30 */
800a47a12beSStefan Roese 	char	res139[12];
801a47a12beSStefan Roese 	uint	iidr30;		/* 0x505d0 - Internal Interrupt Destination Register 30 */
802a47a12beSStefan Roese 	char	res140[12];
803a47a12beSStefan Roese 	uint	iivpr31;	/* 0x505e0 - Internal Interrupt Vector/Priority Register 31 */
804a47a12beSStefan Roese 	char	res141[12];
805a47a12beSStefan Roese 	uint	iidr31;		/* 0x505f0 - Internal Interrupt Destination Register 31 */
806a47a12beSStefan Roese 	char	res142[4108];
807a47a12beSStefan Roese 	uint	mivpr0;		/* 0x51600 - Messaging Interrupt Vector/Priority Register 0 */
808a47a12beSStefan Roese 	char	res143[12];
809a47a12beSStefan Roese 	uint	midr0;		/* 0x51610 - Messaging Interrupt Destination Register 0 */
810a47a12beSStefan Roese 	char	res144[12];
811a47a12beSStefan Roese 	uint	mivpr1;		/* 0x51620 - Messaging Interrupt Vector/Priority Register 1 */
812a47a12beSStefan Roese 	char	res145[12];
813a47a12beSStefan Roese 	uint	midr1;		/* 0x51630 - Messaging Interrupt Destination Register 1 */
814a47a12beSStefan Roese 	char	res146[12];
815a47a12beSStefan Roese 	uint	mivpr2;		/* 0x51640 - Messaging Interrupt Vector/Priority Register 2 */
816a47a12beSStefan Roese 	char	res147[12];
817a47a12beSStefan Roese 	uint	midr2;		/* 0x51650 - Messaging Interrupt Destination Register 2 */
818a47a12beSStefan Roese 	char	res148[12];
819a47a12beSStefan Roese 	uint	mivpr3;		/* 0x51660 - Messaging Interrupt Vector/Priority Register 3 */
820a47a12beSStefan Roese 	char	res149[12];
821a47a12beSStefan Roese 	uint	midr3;		/* 0x51670 - Messaging Interrupt Destination Register 3 */
822a47a12beSStefan Roese 	char	res150[59852];
823a47a12beSStefan Roese 	uint	ipi0dr0;	/* 0x60040 - Processor 0 Interprocessor Interrupt Dispatch Register 0 */
824a47a12beSStefan Roese 	char	res151[12];
825a47a12beSStefan Roese 	uint	ipi0dr1;	/* 0x60050 - Processor 0 Interprocessor Interrupt Dispatch Register 1 */
826a47a12beSStefan Roese 	char	res152[12];
827a47a12beSStefan Roese 	uint	ipi0dr2;	/* 0x60060 - Processor 0 Interprocessor Interrupt Dispatch Register 2 */
828a47a12beSStefan Roese 	char	res153[12];
829a47a12beSStefan Roese 	uint	ipi0dr3;	/* 0x60070 - Processor 0 Interprocessor Interrupt Dispatch Register 3 */
830a47a12beSStefan Roese 	char	res154[12];
831a47a12beSStefan Roese 	uint	ctpr0;		/* 0x60080 - Current Task Priority Register for Processor 0 */
832a47a12beSStefan Roese 	char	res155[12];
833a47a12beSStefan Roese 	uint	whoami0;	/* 0x60090 - Who Am I Register for Processor 0 */
834a47a12beSStefan Roese 	char	res156[12];
835a47a12beSStefan Roese 	uint	iack0;		/* 0x600a0 - Interrupt Acknowledge Register for Processor 0 */
836a47a12beSStefan Roese 	char	res157[12];
837a47a12beSStefan Roese 	uint	eoi0;		/* 0x600b0 - End Of Interrupt Register for Processor 0 */
838a47a12beSStefan Roese 	char	res158[3916];
839a47a12beSStefan Roese } ccsr_pic_t;
840a47a12beSStefan Roese 
841a47a12beSStefan Roese /* RapidIO Registers(0xc_0000-0xe_0000) */
842a47a12beSStefan Roese 
843a47a12beSStefan Roese typedef struct ccsr_rio {
844a47a12beSStefan Roese 	uint	didcar;		/* 0xc0000 - Device Identity Capability Register */
845a47a12beSStefan Roese 	uint	dicar;		/* 0xc0004 - Device Information Capability Register */
846a47a12beSStefan Roese 	uint	aidcar;		/* 0xc0008 - Assembly Identity Capability Register */
847a47a12beSStefan Roese 	uint	aicar;		/* 0xc000c - Assembly Information Capability Register */
848a47a12beSStefan Roese 	uint	pefcar;		/* 0xc0010 - Processing Element Features Capability Register */
849a47a12beSStefan Roese 	uint	spicar;		/* 0xc0014 - Switch Port Information Capability Register */
850a47a12beSStefan Roese 	uint	socar;		/* 0xc0018 - Source Operations Capability Register */
851a47a12beSStefan Roese 	uint	docar;		/* 0xc001c - Destination Operations Capability Register */
852a47a12beSStefan Roese 	char	res1[32];
853a47a12beSStefan Roese 	uint	msr;		/* 0xc0040 - Mailbox Command And Status Register */
854a47a12beSStefan Roese 	uint	pwdcsr;		/* 0xc0044 - Port-Write and Doorbell Command And Status Register */
855a47a12beSStefan Roese 	char	res2[4];
856a47a12beSStefan Roese 	uint	pellccsr;	/* 0xc004c - Processing Element Logic Layer Control Command and Status Register */
857a47a12beSStefan Roese 	char	res3[12];
858a47a12beSStefan Roese 	uint	lcsbacsr;	/* 0xc005c - Local Configuration Space Base Address Command and Status Register */
859a47a12beSStefan Roese 	uint	bdidcsr;	/* 0xc0060 - Base Device ID Command and Status Register */
860a47a12beSStefan Roese 	char	res4[4];
861a47a12beSStefan Roese 	uint	hbdidlcsr;	/* 0xc0068 - Host Base Device ID Lock Command and Status Register */
862a47a12beSStefan Roese 	uint	ctcsr;		/* 0xc006c - Component Tag Command and Status Register */
863a47a12beSStefan Roese 	char	res5[144];
864a47a12beSStefan Roese 	uint	pmbh0csr;	/* 0xc0100 - 8/16 LP-LVDS Port Maintenance Block Header 0 Command and Status Register */
865a47a12beSStefan Roese 	char	res6[28];
866a47a12beSStefan Roese 	uint	pltoccsr;	/* 0xc0120 - Port Link Time-out Control Command and Status Register */
867a47a12beSStefan Roese 	uint	prtoccsr;	/* 0xc0124 - Port Response Time-out Control Command and Status Register */
868a47a12beSStefan Roese 	char	res7[20];
869a47a12beSStefan Roese 	uint	pgccsr;		/* 0xc013c - Port General Command and Status Register */
870a47a12beSStefan Roese 	uint	plmreqcsr;	/* 0xc0140 - Port Link Maintenance Request Command and Status Register */
871a47a12beSStefan Roese 	uint	plmrespcsr;	/* 0xc0144 - Port Link Maintenance Response Command and Status Register */
872a47a12beSStefan Roese 	uint	plascsr;	/* 0xc0148 - Port Local Ackid Status Command and Status Register */
873a47a12beSStefan Roese 	char	res8[12];
874a47a12beSStefan Roese 	uint	pescsr;		/* 0xc0158 - Port Error and Status Command and Status Register */
875a47a12beSStefan Roese 	uint	pccsr;		/* 0xc015c - Port Control Command and Status Register */
876a47a12beSStefan Roese 	char	res9[1184];
877a47a12beSStefan Roese 	uint	erbh;		/* 0xc0600 - Error Reporting Block Header Register */
878a47a12beSStefan Roese 	char	res10[4];
879a47a12beSStefan Roese 	uint	ltledcsr;	/* 0xc0608 - Logical/Transport layer error detect status register */
880a47a12beSStefan Roese 	uint	ltleecsr;	/* 0xc060c - Logical/Transport layer error enable register */
881a47a12beSStefan Roese 	char	res11[4];
882a47a12beSStefan Roese 	uint	ltlaccsr;	/* 0xc0614 - Logical/Transport layer addresss capture register */
883a47a12beSStefan Roese 	uint	ltldidccsr;	/* 0xc0618 - Logical/Transport layer device ID capture register */
884a47a12beSStefan Roese 	uint	ltlcccsr;	/* 0xc061c - Logical/Transport layer control capture register */
885a47a12beSStefan Roese 	char	res12[32];
886a47a12beSStefan Roese 	uint	edcsr;	        /* 0xc0640 - Port 0 error detect status register */
887a47a12beSStefan Roese 	uint	erecsr;	        /* 0xc0644 - Port 0 error rate enable status register */
888a47a12beSStefan Roese 	uint	ecacsr;	        /* 0xc0648 - Port 0 error capture attributes register */
889a47a12beSStefan Roese 	uint	pcseccsr0;	/* 0xc064c - Port 0 packet/control symbol error capture register 0 */
890a47a12beSStefan Roese 	uint	peccsr1;	/* 0xc0650 - Port 0 error capture command and status register 1 */
891a47a12beSStefan Roese 	uint	peccsr2;	/* 0xc0654 - Port 0 error capture command and status register 2 */
892a47a12beSStefan Roese 	uint	peccsr3;	/* 0xc0658 - Port 0 error capture command and status register 3 */
893a47a12beSStefan Roese 	char	res13[12];
894a47a12beSStefan Roese 	uint	ercsr;	        /* 0xc0668 - Port 0 error rate command and status register */
895a47a12beSStefan Roese 	uint	ertcsr;	        /* 0xc066C - Port 0 error rate threshold status register*/
896a47a12beSStefan Roese 	char	res14[63892];
897a47a12beSStefan Roese 	uint	llcr;		/* 0xd0004 - Logical Layer Configuration Register */
898a47a12beSStefan Roese 	char	res15[12];
899a47a12beSStefan Roese 	uint	epwisr;		/* 0xd0010 - Error / Port-Write Interrupt Status Register */
900a47a12beSStefan Roese 	char	res16[12];
901a47a12beSStefan Roese 	uint	lretcr;		/* 0xd0020 - Logical Retry Error Threshold Configuration Register */
902a47a12beSStefan Roese 	char	res17[92];
903a47a12beSStefan Roese 	uint	pretcr;		/* 0xd0080 - Physical Retry Erorr Threshold Configuration Register */
904a47a12beSStefan Roese 	char	res18[124];
905a47a12beSStefan Roese 	uint	adidcsr;	/* 0xd0100 - Port 0 Alt. Device ID Command and Status Register */
906a47a12beSStefan Roese 	char	res19[28];
907a47a12beSStefan Roese 	uint	ptaacr;	        /* 0xd0120 - Port 0 Pass-Through/Accept-All Configuration Register */
908a47a12beSStefan Roese 	char	res20[12];
909a47a12beSStefan Roese 	uint	iecsr;	        /* 0xd0130 - Port 0 Implementation Error Status Register */
910a47a12beSStefan Roese 	char	res21[12];
911a47a12beSStefan Roese 	uint	pcr;		/* 0xd0140 - Port 0 Phsyical Configuration RegisterRegister */
912a47a12beSStefan Roese 	char	res22[20];
913a47a12beSStefan Roese 	uint	slcsr;	        /* 0xd0158 - Port 0 Serial Link Command and Status Register */
914a47a12beSStefan Roese 	char	res23[4];
915a47a12beSStefan Roese 	uint	sleir;	        /* 0xd0160 - Port 0 Serial Link Error Injection Register */
916a47a12beSStefan Roese 	char	res24[2716];
917a47a12beSStefan Roese 	uint	rowtar0;	/* 0xd0c00 - RapidIO Outbound Window Translation Address Register 0 */
918a47a12beSStefan Roese 	uint	rowtear0;	/* 0xd0c04 - RapidIO Outbound Window Translation Ext. Address Register 0 */
919a47a12beSStefan Roese 	char	res25[8];
920a47a12beSStefan Roese 	uint	rowar0;		/* 0xd0c10 - RapidIO Outbound Attributes Register 0 */
921a47a12beSStefan Roese 	char	res26[12];
922a47a12beSStefan Roese 	uint	rowtar1;	/* 0xd0c20 - RapidIO Outbound Window Translation Address Register 1 */
923a47a12beSStefan Roese 	uint	rowtear1;	/* 0xd0c24 - RapidIO Outbound Window Translation Ext. Address Register 1 */
924a47a12beSStefan Roese 	uint	rowbar1;	/* 0xd0c28 - RapidIO Outbound Window Base Address Register 1 */
925a47a12beSStefan Roese 	char	res27[4];
926a47a12beSStefan Roese 	uint	rowar1;		/* 0xd0c30 - RapidIO Outbound Attributes Register 1 */
927a47a12beSStefan Roese 	uint	rows1r1;	/* 0xd0c34 - RapidIO Outbound Window Segment 1 Register 1 */
928a47a12beSStefan Roese 	uint	rows2r1;	/* 0xd0c38 - RapidIO Outbound Window Segment 2 Register 1 */
929a47a12beSStefan Roese 	uint	rows3r1;	/* 0xd0c3c - RapidIO Outbound Window Segment 3 Register 1 */
930a47a12beSStefan Roese 	uint	rowtar2;	/* 0xd0c40 - RapidIO Outbound Window Translation Address Register 2 */
931a47a12beSStefan Roese 	uint	rowtear2;	/* 0xd0c44 - RapidIO Outbound Window Translation Ext. Address Register 2 */
932a47a12beSStefan Roese 	uint	rowbar2;	/* 0xd0c48 - RapidIO Outbound Window Base Address Register 2 */
933a47a12beSStefan Roese 	char	res28[4];
934a47a12beSStefan Roese 	uint	rowar2;		/* 0xd0c50 - RapidIO Outbound Attributes Register 2 */
935a47a12beSStefan Roese 	uint	rows1r2;	/* 0xd0c54 - RapidIO Outbound Window Segment 1 Register 2 */
936a47a12beSStefan Roese 	uint	rows2r2;	/* 0xd0c58 - RapidIO Outbound Window Segment 2 Register 2 */
937a47a12beSStefan Roese 	uint	rows3r2;	/* 0xd0c5c - RapidIO Outbound Window Segment 3 Register 2 */
938a47a12beSStefan Roese 	uint	rowtar3;	/* 0xd0c60 - RapidIO Outbound Window Translation Address Register 3 */
939a47a12beSStefan Roese 	uint	rowtear3;	/* 0xd0c64 - RapidIO Outbound Window Translation Ext. Address Register 3 */
940a47a12beSStefan Roese 	uint	rowbar3;	/* 0xd0c68 - RapidIO Outbound Window Base Address Register 3 */
941a47a12beSStefan Roese 	char	res29[4];
942a47a12beSStefan Roese 	uint	rowar3;		/* 0xd0c70 - RapidIO Outbound Attributes Register 3 */
943a47a12beSStefan Roese 	uint	rows1r3;	/* 0xd0c74 - RapidIO Outbound Window Segment 1 Register 3 */
944a47a12beSStefan Roese 	uint	rows2r3;	/* 0xd0c78 - RapidIO Outbound Window Segment 2 Register 3 */
945a47a12beSStefan Roese 	uint	rows3r3;	/* 0xd0c7c - RapidIO Outbound Window Segment 3 Register 3 */
946a47a12beSStefan Roese 	uint	rowtar4;	/* 0xd0c80 - RapidIO Outbound Window Translation Address Register 4 */
947a47a12beSStefan Roese 	uint	rowtear4;	/* 0xd0c84 - RapidIO Outbound Window Translation Ext. Address Register 4 */
948a47a12beSStefan Roese 	uint	rowbar4;	/* 0xd0c88 - RapidIO Outbound Window Base Address Register 4 */
949a47a12beSStefan Roese 	char	res30[4];
950a47a12beSStefan Roese 	uint	rowar4;		/* 0xd0c90 - RapidIO Outbound Attributes Register 4 */
951a47a12beSStefan Roese 	uint	rows1r4;	/* 0xd0c94 - RapidIO Outbound Window Segment 1 Register 4 */
952a47a12beSStefan Roese 	uint	rows2r4;	/* 0xd0c98 - RapidIO Outbound Window Segment 2 Register 4 */
953a47a12beSStefan Roese 	uint	rows3r4;	/* 0xd0c9c - RapidIO Outbound Window Segment 3 Register 4 */
954a47a12beSStefan Roese 	uint	rowtar5;	/* 0xd0ca0 - RapidIO Outbound Window Translation Address Register 5 */
955a47a12beSStefan Roese 	uint	rowtear5;	/* 0xd0ca4 - RapidIO Outbound Window Translation Ext. Address Register 5 */
956a47a12beSStefan Roese 	uint	rowbar5;	/* 0xd0ca8 - RapidIO Outbound Window Base Address Register 5 */
957a47a12beSStefan Roese 	char	res31[4];
958a47a12beSStefan Roese 	uint	rowar5;		/* 0xd0cb0 - RapidIO Outbound Attributes Register 5 */
959a47a12beSStefan Roese 	uint	rows1r5;	/* 0xd0cb4 - RapidIO Outbound Window Segment 1 Register 5 */
960a47a12beSStefan Roese 	uint	rows2r5;	/* 0xd0cb8 - RapidIO Outbound Window Segment 2 Register 5 */
961a47a12beSStefan Roese 	uint	rows3r5;	/* 0xd0cbc - RapidIO Outbound Window Segment 3 Register 5 */
962a47a12beSStefan Roese 	uint	rowtar6;	/* 0xd0cc0 - RapidIO Outbound Window Translation Address Register 6 */
963a47a12beSStefan Roese 	uint	rowtear6;	/* 0xd0cc4 - RapidIO Outbound Window Translation Ext. Address Register 6 */
964a47a12beSStefan Roese 	uint	rowbar6;	/* 0xd0cc8 - RapidIO Outbound Window Base Address Register 6 */
965a47a12beSStefan Roese 	char	res32[4];
966a47a12beSStefan Roese 	uint	rowar6;		/* 0xd0cd0 - RapidIO Outbound Attributes Register 6 */
967a47a12beSStefan Roese 	uint	rows1r6;	/* 0xd0cd4 - RapidIO Outbound Window Segment 1 Register 6 */
968a47a12beSStefan Roese 	uint	rows2r6;	/* 0xd0cd8 - RapidIO Outbound Window Segment 2 Register 6 */
969a47a12beSStefan Roese 	uint	rows3r6;	/* 0xd0cdc - RapidIO Outbound Window Segment 3 Register 6 */
970a47a12beSStefan Roese 	uint	rowtar7;	/* 0xd0ce0 - RapidIO Outbound Window Translation Address Register 7 */
971a47a12beSStefan Roese 	uint	rowtear7;	/* 0xd0ce4 - RapidIO Outbound Window Translation Ext. Address Register 7 */
972a47a12beSStefan Roese 	uint	rowbar7;	/* 0xd0ce8 - RapidIO Outbound Window Base Address Register 7 */
973a47a12beSStefan Roese 	char	res33[4];
974a47a12beSStefan Roese 	uint	rowar7;		/* 0xd0cf0 - RapidIO Outbound Attributes Register 7 */
975a47a12beSStefan Roese 	uint	rows1r7;	/* 0xd0cf4 - RapidIO Outbound Window Segment 1 Register 7 */
976a47a12beSStefan Roese 	uint	rows2r7;	/* 0xd0cf8 - RapidIO Outbound Window Segment 2 Register 7 */
977a47a12beSStefan Roese 	uint	rows3r7;	/* 0xd0cfc - RapidIO Outbound Window Segment 3 Register 7 */
978a47a12beSStefan Roese 	uint	rowtar8;	/* 0xd0d00 - RapidIO Outbound Window Translation Address Register 8 */
979a47a12beSStefan Roese 	uint	rowtear8;	/* 0xd0d04 - RapidIO Outbound Window Translation Ext. Address Register 8 */
980a47a12beSStefan Roese 	uint	rowbar8;	/* 0xd0d08 - RapidIO Outbound Window Base Address Register 8 */
981a47a12beSStefan Roese 	char	res34[4];
982a47a12beSStefan Roese 	uint	rowar8;		/* 0xd0d10 - RapidIO Outbound Attributes Register 8 */
983a47a12beSStefan Roese 	uint	rows1r8;	/* 0xd0d14 - RapidIO Outbound Window Segment 1 Register 8 */
984a47a12beSStefan Roese 	uint	rows2r8;	/* 0xd0d18 - RapidIO Outbound Window Segment 2 Register 8 */
985a47a12beSStefan Roese 	uint	rows3r8;	/* 0xd0d1c - RapidIO Outbound Window Segment 3 Register 8 */
986a47a12beSStefan Roese 	char	res35[64];
987a47a12beSStefan Roese 	uint	riwtar4;	/* 0xd0d60 - RapidIO Inbound Window Translation Address Register 4 */
988a47a12beSStefan Roese 	uint	riwbar4;	/* 0xd0d68 - RapidIO Inbound Window Base Address Register 4 */
989a47a12beSStefan Roese 	char	res36[4];
990a47a12beSStefan Roese 	uint	riwar4;		/* 0xd0d70 - RapidIO Inbound Attributes Register 4 */
991a47a12beSStefan Roese 	char	res37[12];
992a47a12beSStefan Roese 	uint	riwtar3;	/* 0xd0d80 - RapidIO Inbound Window Translation Address Register 3 */
993a47a12beSStefan Roese 	char	res38[4];
994a47a12beSStefan Roese 	uint	riwbar3;	/* 0xd0d88 - RapidIO Inbound Window Base Address Register 3 */
995a47a12beSStefan Roese 	char	res39[4];
996a47a12beSStefan Roese 	uint	riwar3;		/* 0xd0d90 - RapidIO Inbound Attributes Register 3 */
997a47a12beSStefan Roese 	char	res40[12];
998a47a12beSStefan Roese 	uint	riwtar2;	/* 0xd0da0 - RapidIO Inbound Window Translation Address Register 2 */
999a47a12beSStefan Roese 	char	res41[4];
1000a47a12beSStefan Roese 	uint	riwbar2;	/* 0xd0da8 - RapidIO Inbound Window Base Address Register 2 */
1001a47a12beSStefan Roese 	char	res42[4];
1002a47a12beSStefan Roese 	uint	riwar2;		/* 0xd0db0 - RapidIO Inbound Attributes Register 2 */
1003a47a12beSStefan Roese 	char	res43[12];
1004a47a12beSStefan Roese 	uint	riwtar1;	/* 0xd0dc0 - RapidIO Inbound Window Translation Address Register 1 */
1005a47a12beSStefan Roese 	char	res44[4];
1006a47a12beSStefan Roese 	uint	riwbar1;	/* 0xd0dc8 - RapidIO Inbound Window Base Address Register 1 */
1007a47a12beSStefan Roese 	char	res45[4];
1008a47a12beSStefan Roese 	uint	riwar1;		/* 0xd0dd0 - RapidIO Inbound Attributes Register 1 */
1009a47a12beSStefan Roese 	char	res46[12];
1010a47a12beSStefan Roese 	uint	riwtar0;	/* 0xd0de0 - RapidIO Inbound Window Translation Address Register 0 */
1011a47a12beSStefan Roese 	char	res47[12];
1012a47a12beSStefan Roese 	uint	riwar0;		/* 0xd0df0 - RapidIO Inbound Attributes Register 0 */
1013a47a12beSStefan Roese 	char	res48[12];
1014a47a12beSStefan Roese 	uint	pnfedr;		/* 0xd0e00 - Port Notification/Fatal Error Detect Register */
1015a47a12beSStefan Roese 	uint	pnfedir;	/* 0xd0e04 - Port Notification/Fatal Error Detect Register */
1016a47a12beSStefan Roese 	uint	pnfeier;	/* 0xd0e08 - Port Notification/Fatal Error Interrupt Enable Register */
1017a47a12beSStefan Roese 	uint	pecr;		/* 0xd0e0c - Port Error Control Register */
1018a47a12beSStefan Roese 	uint	pepcsr0;	/* 0xd0e10 - Port Error Packet/Control Symbol Register 0 */
1019a47a12beSStefan Roese 	uint	pepr1;		/* 0xd0e14 - Port Error Packet Register 1 */
1020a47a12beSStefan Roese 	uint	pepr2;		/* 0xd0e18 - Port Error Packet Register 2 */
1021a47a12beSStefan Roese 	char	res49[4];
1022a47a12beSStefan Roese 	uint	predr;		/* 0xd0e20 - Port Recoverable Error Detect Register */
1023a47a12beSStefan Roese 	char	res50[4];
1024a47a12beSStefan Roese 	uint	pertr;		/* 0xd0e28 - Port Error Recovery Threshold Register */
1025a47a12beSStefan Roese 	uint	prtr;		/* 0xd0e2c - Port Retry Threshold Register */
1026a47a12beSStefan Roese 	char	res51[8656];
1027a47a12beSStefan Roese 	uint	omr;		/* 0xd3000 - Outbound Mode Register */
1028a47a12beSStefan Roese 	uint	osr;		/* 0xd3004 - Outbound Status Register */
1029a47a12beSStefan Roese 	uint	eodqtpar;	/* 0xd3008 - Extended Outbound Descriptor Queue Tail Pointer Address Register */
1030a47a12beSStefan Roese 	uint	odqtpar;	/* 0xd300c - Outbound Descriptor Queue Tail Pointer Address Register */
1031a47a12beSStefan Roese 	uint	eosar;		/* 0xd3010 - Extended Outbound Unit Source Address Register */
1032a47a12beSStefan Roese 	uint	osar;		/* 0xd3014 - Outbound Unit Source Address Register */
1033a47a12beSStefan Roese 	uint	odpr;		/* 0xd3018 - Outbound Destination Port Register */
1034a47a12beSStefan Roese 	uint	odatr;		/* 0xd301c - Outbound Destination Attributes Register */
1035a47a12beSStefan Roese 	uint	odcr;		/* 0xd3020 - Outbound Doubleword Count Register */
1036a47a12beSStefan Roese 	uint	eodqhpar;	/* 0xd3024 - Extended Outbound Descriptor Queue Head Pointer Address Register */
1037a47a12beSStefan Roese 	uint	odqhpar;	/* 0xd3028 - Outbound Descriptor Queue Head Pointer Address Register */
1038a47a12beSStefan Roese 	uint	oretr;	        /* 0xd302C - Outbound Retry Error Threshold Register */
1039a47a12beSStefan Roese 	uint	omgr;	        /* 0xd3030 - Outbound Multicast Group Register */
1040a47a12beSStefan Roese 	uint	omlr;	        /* 0xd3034 - Outbound Multicast List Register */
1041a47a12beSStefan Roese 	char	res52[40];
1042a47a12beSStefan Roese 	uint	imr;		/* 0xd3060 - Outbound Mode Register */
1043a47a12beSStefan Roese 	uint	isr;		/* 0xd3064 - Inbound Status Register */
1044a47a12beSStefan Roese 	uint	eidqtpar;	/* 0xd3068 - Extended Inbound Descriptor Queue Tail Pointer Address Register */
1045a47a12beSStefan Roese 	uint	idqtpar;	/* 0xd306c - Inbound Descriptor Queue Tail Pointer Address Register */
1046a47a12beSStefan Roese 	uint	eifqhpar;	/* 0xd3070 - Extended Inbound Frame Queue Head Pointer Address Register */
1047a47a12beSStefan Roese 	uint	ifqhpar;	/* 0xd3074 - Inbound Frame Queue Head Pointer Address Register */
1048a47a12beSStefan Roese 	uint	imirir;	        /* 0xd3078 - Inbound Maximum Interrutp Report Interval Register */
1049a47a12beSStefan Roese 	char	res53[900];
1050a47a12beSStefan Roese 	uint	oddmr;		/* 0xd3400 - Outbound Doorbell Mode Register */
1051a47a12beSStefan Roese 	uint	oddsr;		/* 0xd3404 - Outbound Doorbell Status Register */
1052a47a12beSStefan Roese 	char	res54[16];
1053a47a12beSStefan Roese 	uint	oddpr;		/* 0xd3418 - Outbound Doorbell Destination Port Register */
1054a47a12beSStefan Roese 	uint	oddatr;		/* 0xd341C - Outbound Doorbell Destination Attributes Register */
1055a47a12beSStefan Roese 	char	res55[12];
1056a47a12beSStefan Roese 	uint	oddretr;	/* 0xd342C - Outbound Doorbell Retry Threshold Configuration Register */
1057a47a12beSStefan Roese 	char	res56[48];
1058a47a12beSStefan Roese 	uint	idmr;		/* 0xd3460 - Inbound Doorbell Mode Register */
1059a47a12beSStefan Roese 	uint	idsr;		/* 0xd3464 - Inbound Doorbell Status Register */
1060a47a12beSStefan Roese 	uint	iedqtpar;	/* 0xd3468 - Extended Inbound Doorbell Queue Tail Pointer Address Register */
1061a47a12beSStefan Roese 	uint	iqtpar;	        /* 0xd346c - Inbound Doorbell Queue Tail Pointer Address Register */
1062a47a12beSStefan Roese 	uint	iedqhpar;	/* 0xd3470 - Extended Inbound Doorbell Queue Head Pointer Address Register */
1063a47a12beSStefan Roese 	uint	idqhpar;	/* 0xd3474 - Inbound Doorbell Queue Head Pointer Address Register */
1064a47a12beSStefan Roese 	uint	idmirir;	/* 0xd3478 - Inbound Doorbell Max Interrupt Report Interval Register */
1065a47a12beSStefan Roese 	char	res57[100];
1066a47a12beSStefan Roese 	uint	pwmr;		/* 0xd34e0 - Port-Write Mode Register */
1067a47a12beSStefan Roese 	uint	pwsr;		/* 0xd34e4 - Port-Write Status Register */
1068a47a12beSStefan Roese 	uint	epwqbar;	/* 0xd34e8 - Extended Port-Write Queue Base Address Register */
1069a47a12beSStefan Roese 	uint	pwqbar;		/* 0xd34ec - Port-Write Queue Base Address Register */
1070a47a12beSStefan Roese 	char	res58[51984];
1071a47a12beSStefan Roese } ccsr_rio_t;
1072a47a12beSStefan Roese 
1073a47a12beSStefan Roese /* Global Utilities Register Block(0xe_0000-0xf_ffff) */
1074a47a12beSStefan Roese typedef struct ccsr_gur {
1075a47a12beSStefan Roese 	uint	porpllsr;	/* 0xe0000 - POR PLL ratio status register */
1076a47a12beSStefan Roese 	uint	porbmsr;	/* 0xe0004 - POR boot mode status register */
1077a47a12beSStefan Roese 	uint	porimpscr;	/* 0xe0008 - POR I/O impedance status and control register */
1078a47a12beSStefan Roese 	uint	pordevsr;	/* 0xe000c - POR I/O device status regsiter */
1079a47a12beSStefan Roese 	uint	pordbgmsr;	/* 0xe0010 - POR debug mode status register */
1080a47a12beSStefan Roese 	char	res1[12];
1081a47a12beSStefan Roese 	uint	gpporcr;	/* 0xe0020 - General-purpose POR configuration register */
1082a47a12beSStefan Roese 	char	res2[12];
1083a47a12beSStefan Roese 	uint	gpiocr;		/* 0xe0030 - GPIO control register */
1084a47a12beSStefan Roese 	char	res3[12];
1085a47a12beSStefan Roese 	uint	gpoutdr;	/* 0xe0040 - General-purpose output data register */
1086a47a12beSStefan Roese 	char	res4[12];
1087a47a12beSStefan Roese 	uint	gpindr;		/* 0xe0050 - General-purpose input data register */
1088a47a12beSStefan Roese 	char	res5[12];
1089a47a12beSStefan Roese 	uint	pmuxcr;		/* 0xe0060 - Alternate function signal multiplex control */
1090a47a12beSStefan Roese 	char	res6[12];
1091a47a12beSStefan Roese 	uint	devdisr;	/* 0xe0070 - Device disable control */
1092a47a12beSStefan Roese 	char	res7[12];
1093a47a12beSStefan Roese 	uint	powmgtcsr;	/* 0xe0080 - Power management status and control register */
1094a47a12beSStefan Roese 	char	res8[12];
1095a47a12beSStefan Roese 	uint	mcpsumr;	/* 0xe0090 - Machine check summary register */
1096a47a12beSStefan Roese 	uint	rstrscr;	/* 0xe0094 - Reset request status and control register */
1097a47a12beSStefan Roese 	char	res9[8];
1098a47a12beSStefan Roese 	uint	pvr;		/* 0xe00a0 - Processor version register */
1099a47a12beSStefan Roese 	uint	svr;		/* 0xe00a4 - System version register */
1100a47a12beSStefan Roese 	char	res10a[8];
1101a47a12beSStefan Roese 	uint	rstcr;		/* 0xe00b0 - Reset control register */
1102a47a12beSStefan Roese 	char	res10b[1868];
1103a47a12beSStefan Roese 	uint	clkdvdr;	/* 0xe0800 - Clock Divide register */
1104a47a12beSStefan Roese 	char	res10c[796];
1105a47a12beSStefan Roese 	uint	ddr1clkdr;	/* 0xe0b20 - DDRC1 Clock Disable register */
1106a47a12beSStefan Roese 	char	res10d[4];
1107a47a12beSStefan Roese 	uint	ddr2clkdr;	/* 0xe0b28 - DDRC2 Clock Disable register */
1108a47a12beSStefan Roese 	char	res10e[724];
1109a47a12beSStefan Roese 	uint	clkocr;		/* 0xe0e00 - Clock out select register */
1110a47a12beSStefan Roese 	char	res11[12];
1111a47a12beSStefan Roese 	uint	ddrdllcr;	/* 0xe0e10 - DDR DLL control register */
1112a47a12beSStefan Roese 	char	res12[12];
1113a47a12beSStefan Roese 	uint	lbcdllcr;	/* 0xe0e20 - LBC DLL control register */
1114a47a12beSStefan Roese 	char	res13a[224];
1115a47a12beSStefan Roese 	uint	srds1cr0;	/* 0xe0f04 - SerDes1 control register 0 */
1116a47a12beSStefan Roese 	char	res13b[4];
1117a47a12beSStefan Roese 	uint	srds1cr1;	/* 0xe0f08 - SerDes1 control register 1 */
1118a47a12beSStefan Roese 	char	res14[24];
1119a47a12beSStefan Roese 	uint	ddrioovcr;	/* 0xe0f24 - DDR IO Overdrive Control register */
1120a47a12beSStefan Roese 	char	res15a[24];
1121a47a12beSStefan Roese 	uint	srds2cr0;	/* 0xe0f40 - SerDes2 control register 0 */
1122a47a12beSStefan Roese 	uint	srds2cr1;	/* 0xe0f44 - SerDes2 control register 1 */
1123a47a12beSStefan Roese 	char	res16[184];
1124a47a12beSStefan Roese } ccsr_gur_t;
1125a47a12beSStefan Roese 
1126a47a12beSStefan Roese #define MPC8610_PORBMSR_HA      0x00070000
1127a47a12beSStefan Roese #define MPC8610_PORBMSR_HA_SHIFT	16
1128a47a12beSStefan Roese #define MPC8641_PORBMSR_HA      0x00060000
1129a47a12beSStefan Roese #define MPC8641_PORBMSR_HA_SHIFT	17
1130a47a12beSStefan Roese #define MPC8610_PORDEVSR_IO_SEL		0x00380000
1131a47a12beSStefan Roese #define MPC8610_PORDEVSR_IO_SEL_SHIFT		19
1132a47a12beSStefan Roese #define MPC8641_PORDEVSR_IO_SEL		0x000F0000
1133a47a12beSStefan Roese #define MPC8641_PORDEVSR_IO_SEL_SHIFT		16
1134a47a12beSStefan Roese #define MPC86xx_PORDEVSR_CORE1TE	0x00000080 /* ASMP (Core1 addr trans) */
1135a47a12beSStefan Roese #define MPC86xx_DEVDISR_PCIEX1	0x80000000
1136a47a12beSStefan Roese #define MPC86xx_DEVDISR_PCIEX2	0x40000000
1137a47a12beSStefan Roese #define MPC86xx_DEVDISR_PCI1	0x80000000
1138a47a12beSStefan Roese #define MPC86xx_DEVDISR_PCIE1	0x40000000
1139a47a12beSStefan Roese #define MPC86xx_DEVDISR_PCIE2	0x20000000
114056551362SKumar Gala #define MPC86xx_DEVDISR_SRIO	0x00080000
114156551362SKumar Gala #define MPC86xx_DEVDISR_RMSG	0x00040000
1142a47a12beSStefan Roese #define MPC86xx_DEVDISR_CPU0	0x00008000
1143a47a12beSStefan Roese #define MPC86xx_DEVDISR_CPU1	0x00004000
1144a47a12beSStefan Roese #define MPC86xx_RSTCR_HRST_REQ	0x00000002
1145a47a12beSStefan Roese 
1146a47a12beSStefan Roese /*
1147a47a12beSStefan Roese  * Watchdog register block(0xe_4000-0xe_4fff)
1148a47a12beSStefan Roese  */
1149a47a12beSStefan Roese typedef struct ccsr_wdt {
1150a47a12beSStefan Roese 	uint	res0;
1151a47a12beSStefan Roese 	uint	swcrr; /* System watchdog control register */
1152a47a12beSStefan Roese 	uint	swcnr; /* System watchdog count register */
1153a47a12beSStefan Roese 	char	res1[2];
1154a47a12beSStefan Roese 	ushort	swsrr; /* System watchdog service register */
1155a47a12beSStefan Roese 	char	res2[4080];
1156a47a12beSStefan Roese } ccsr_wdt_t;
1157a47a12beSStefan Roese 
1158a47a12beSStefan Roese typedef struct immap {
1159a47a12beSStefan Roese 	ccsr_local_mcm_t	im_local_mcm;
11609a17eb5bSYork Sun 	struct ccsr_ddr		im_ddr1;
1161a47a12beSStefan Roese 	ccsr_i2c_t		im_i2c;
1162a47a12beSStefan Roese 	ccsr_duart_t		im_duart;
1163f51cdaf1SBecky Bruce 	fsl_lbc_t		im_lbc;
11649a17eb5bSYork Sun 	struct ccsr_ddr		im_ddr2;
1165a47a12beSStefan Roese 	char                    res1[4096];
1166a47a12beSStefan Roese 	ccsr_pex_t		im_pex1;
1167a47a12beSStefan Roese 	ccsr_pex_t		im_pex2;
1168a47a12beSStefan Roese 	ccsr_ht_t               im_ht;
1169a47a12beSStefan Roese 	char                    res2[90112];
1170a47a12beSStefan Roese 	ccsr_dma_t		im_dma;
1171a47a12beSStefan Roese 	char                    res3[8192];
1172a47a12beSStefan Roese 	ccsr_tsec_t		im_tsec1;
1173a47a12beSStefan Roese 	ccsr_tsec_t		im_tsec2;
1174a47a12beSStefan Roese 	ccsr_tsec_t             im_tsec3;
1175a47a12beSStefan Roese 	ccsr_tsec_t             im_tsec4;
1176a47a12beSStefan Roese 	char                    res4[98304];
1177a47a12beSStefan Roese 	ccsr_pic_t		im_pic;
1178a47a12beSStefan Roese 	char                    res5[389120];
1179a47a12beSStefan Roese 	ccsr_rio_t		im_rio;
1180a47a12beSStefan Roese 	ccsr_gur_t		im_gur;
1181a47a12beSStefan Roese 	char			res6[12288];
1182a47a12beSStefan Roese 	ccsr_wdt_t		im_wdt;
1183a47a12beSStefan Roese } immap_t;
1184a47a12beSStefan Roese 
1185a47a12beSStefan Roese extern immap_t  *immr;
1186a47a12beSStefan Roese 
1187e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR_OFFSET	0x2000
11885614e71bSYork Sun #define CONFIG_SYS_FSL_DDR_ADDR	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR_OFFSET)
1189e76cd5d4SAndy Fleming #define CONFIG_SYS_MPC8xxx_DDR2_OFFSET	0x6000
11905614e71bSYork Sun #define CONFIG_SYS_FSL_DDR2_ADDR	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC8xxx_DDR2_OFFSET)
1191680c613aSKim Phillips #define CONFIG_SYS_MPC86xx_DMA_OFFSET	0x21000
1192a47a12beSStefan Roese #define CONFIG_SYS_MPC86xx_DMA_ADDR	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_DMA_OFFSET)
1193680c613aSKim Phillips #define CONFIG_SYS_MPC86xx_PIC_OFFSET	0x40000
1194680c613aSKim Phillips #define CONFIG_SYS_MPC8xxx_PIC_ADDR	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PIC_OFFSET)
1195680c613aSKim Phillips 
1196a47a12beSStefan Roese 
1197dd2cda3dSKumar Gala #define CONFIG_SYS_MPC86xx_PCI1_OFFSET		0x8000
1198*1425a87bSYork Sun #ifdef CONFIG_ARCH_MPC8610
1199dd2cda3dSKumar Gala #define CONFIG_SYS_MPC86xx_PCIE1_OFFSET         0xa000
1200dd2cda3dSKumar Gala #else
1201dd2cda3dSKumar Gala #define CONFIG_SYS_MPC86xx_PCIE1_OFFSET         0x8000
1202dd2cda3dSKumar Gala #endif
1203dd2cda3dSKumar Gala #define CONFIG_SYS_MPC86xx_PCIE2_OFFSET         0x9000
1204dd2cda3dSKumar Gala 
1205dd2cda3dSKumar Gala #define CONFIG_SYS_PCI1_ADDR \
1206dd2cda3dSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCI1_OFFSET)
1207dd2cda3dSKumar Gala #define CONFIG_SYS_PCI2_ADDR \
1208dd2cda3dSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCI2_OFFSET)
1209dd2cda3dSKumar Gala #define CONFIG_SYS_PCIE1_ADDR \
1210dd2cda3dSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCIE1_OFFSET)
1211dd2cda3dSKumar Gala #define CONFIG_SYS_PCIE2_ADDR \
1212dd2cda3dSKumar Gala 	(CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PCIE2_OFFSET)
1213dd2cda3dSKumar Gala 
1214a47a12beSStefan Roese #define CONFIG_SYS_TSEC1_OFFSET		0x24000
1215a47a12beSStefan Roese #define CONFIG_SYS_MDIO1_OFFSET		0x24000
1216f51cdaf1SBecky Bruce #define CONFIG_SYS_LBC_ADDR		(&((immap_t *)CONFIG_SYS_IMMR)->im_lbc)
1217a47a12beSStefan Roese 
1218a47a12beSStefan Roese #define TSEC_BASE_ADDR		(CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET)
1219a47a12beSStefan Roese #define MDIO_BASE_ADDR		(CONFIG_SYS_IMMR + CONFIG_SYS_MDIO1_OFFSET)
1220a47a12beSStefan Roese 
1221a47a12beSStefan Roese #endif /*__IMMAP_86xx__*/
1222