11 #ifndef __PCI_SH7786_H
12 #define __PCI_SH7786_H
15 #define SH4A_PCIE_SPW_BASE 0xFE000000
16 #define SH4A_PCIE_SPW_BASE1 0xFE200000
17 #define SH4A_PCIE_SPW_BASE2 0xFCC00000
18 #define SH4A_PCIE_SPW_BASE_LEN 0x00080000
20 #define SH4A_PCI_CNFG_BASE 0xFE040000
21 #define SH4A_PCI_CNFG_BASE1 0xFE240000
22 #define SH4A_PCI_CNFG_BASE2 0xFCC40000
23 #define SH4A_PCI_CNFG_BASE_LEN 0x00040000
25 #define SH4A_PCIPIO_ADDR_OFFSET 0x000001c0
26 #define SH4A_PCIPIO_DATA_OFFSET 0x00000220
34 #define SH4A_PCIBMSTR_TRANSLATION 0x20000000
37 #define SH4A_PCIEVCR0 (0x000000)
38 #define BITS_TOP_MB (24)
39 #define MASK_TOP_MB (0xff<<BITS_TOP_MB)
40 #define BITS_BOT_MB (16)
41 #define MASK_BOT_MB (0xff<<BITS_BOT_MB)
42 #define BITS_VC_ID (0)
43 #define MASK_VC_ID (0xffff<<BITS_VC_ID)
46 #define SH4A_PCIEVCR1 (0x000004)
47 #define BITS_BADOPC (5)
48 #define MASK_BADOPC (1<<BITS_BADOPC)
49 #define BITS_BADDEST (4)
50 #define MASK_BADDEST (1<<BITS_BADDEST)
51 #define BITS_UNSOLRESP (3)
52 #define MASK_UNSOLRESP (1<<BITS_UNSOLRESP)
53 #define BITS_ERRSNT (1)
54 #define MASK_ERRSNT (1<<BITS_ERRSNT)
55 #define BITS_ERRRCV (0)
56 #define MASK_ERRRCV (1<<BITS_ERRRCV)
59 #define SH4A_PCIEENBLR (0x000008)
62 #define SH4A_PCIEECR (0x00000C)
64 #define MASK_ENBL (1<<BITS_ENBL)
67 #define SH4A_PCIEPAR (0x000010)
69 #define MASK_BN (0xff<<BITS_BN)
71 #define MASK_DN (0x1f<<BITS_DN)
73 #define MASK_FN (0x7<<BITS_FN)
74 #define BITS_EREGNO (8)
75 #define MASK_EREGNO (0xff<<BITS_EREGNO)
76 #define BITS_REGNO (2)
77 #define MASK_REGNO (0x3f<<BITS_REGNO)
80 #define SH4A_PCIEPCTLR (0x000018)
81 #define BITS_CCIE (31)
82 #define MASK_CCIE (1<<BITS_CCIE)
84 #define MASK_TYPE (1<<BITS_TYPE)
86 #define MASK_C_VC (1<<BITS_C_VC)
89 #define SH4A_PCIEPDR (0x000020)
91 #define MASK_PDR (0xffffffff<<BITS_PDR)
94 #define SH4A_PCIEMSGALR (0x000030)
95 #define BITS_MSGADRL (0)
96 #define MASK_MSGADRL (0xffffffff<<BITS_MSGADRL)
99 #define SH4A_PCIEMSGAHR (0x000034)
100 #define BITS_MSGADRH (0)
101 #define MASK_MSGADRH (0xffffffff<<BITS_MSGADRH)
104 #define SH4A_PCIEMSGCTLR (0x000038)
105 #define BITS_MSGIE (31)
106 #define MASK_MSGIE (1<<BITS_MSGIE)
107 #define BITS_MROUTE (16)
108 #define MASK_MROUTE (0x7<<BITS_MROUTE)
109 #define BITS_MCODE (8)
110 #define MASK_MCODE (0xff<<BITS_MCODE)
111 #define BITS_M_VC (0)
112 #define MASK_M_VC (1<<BITS_M_VC)
115 #define SH4A_PCIEMSG (0x000040)
116 #define BITS_MDATA (0)
117 #define MASK_MDATA (0xffffffff<<BITS_MDATA)
120 #define SH4A_PCIEUNLOCKCR (0x000048)
123 #define SH4A_PCIEIDR (0x000060)
126 #define SH4A_PCIEDBGCTLR (0x000100)
129 #define SH4A_PCIEINTXR (0x004000)
132 #define SH4A_PCIERMSGR (0x004010)
135 #define SH4A_PCIERSTR(x) (0x008000 + ((x) * 0x4))
138 #define SH4A_PCIESRSTR (0x008040)
141 #define SH4A_PCIEPHYCTLR (0x010000)
143 #define MASK_CKE (1<<BITS_CKE)
146 #define SH4A_PCIERMSGIER (0x004040)
149 #define SH4A_PCIEPHYCTLR (0x010000)
152 #define SH4A_PCIEPHYADRR (0x010004)
153 #define BITS_ACK (24) // Rev1.171
154 #define MASK_ACK (1<<BITS_ACK) // Rev1.171
155 #define BITS_CMD (16) // Rev1.171
156 #define MASK_CMD (0x03<<BITS_CMD) // Rev1.171
157 #define BITS_LANE (8)
158 #define MASK_LANE (0x0f<<BITS_LANE)
160 #define MASK_ADR (0xff<<BITS_ADR)
163 #define SH4A_PCIEPHYDINR (0x010008)
166 #define SH4A_PCIEPHYDOUTR (0x01000C)
169 #define SH4A_PCIEPHYSR (0x010010) // Rev1.171 end.
172 #define SH4A_PCIEPHYDATAR (0x00008)
173 #define BITS_DATA (0)
174 #define MASK_DATA (0xffffffff<<BITS_DATA)
177 #define SH4A_PCIETCTLR (0x020000)
178 #define BITS_CFINT (0)
179 #define MASK_CFINT (1<<BITS_CFINT)
182 #define SH4A_PCIETSTR (0x020004)
185 #define SH4A_PCIEINTR (0x020008)
186 #define BITS_INT_RX_ERP (31)
187 #define MASK_INT_RX_ERP (1<<BITS_INT_RX_ERP)
188 #define BITS_INT_RX_VCX_Posted (30)
189 #define MASK_INT_RX_VCX_Posted (1<<BITS_INT_RX_VCX_Posted)
190 #define BITS_INT_RX_VCX_NonPosted (29)
191 #define MASK_INT_RX_VCX_NonPosted (1<<BITS_INT_RX_VCX_NonPosted)
192 #define BITS_INT_RX_VCX_CPL (28)
193 #define MASK_INT_RX_VCX_CPL (1<<BITS_INT_RX_VCX_CPL)
194 #define BITS_INT_TX_VCX_Posted (26)
195 #define MASK_INT_TX_VCX_Posted (1<<BITS_INT_TX_VCX_Posted)
196 #define BITS_INT_TX_VCX_NonPosted (25)
197 #define MASK_INT_TX_VCX_NonPosted (1<<BITS_INT_TX_VCX_NonPosted)
198 #define BITS_INT_TX_VCX_CPL (24)
199 #define MASK_INT_TX_VCX_CPL (1<<BITS_INT_TX_VCX_CPL)
200 #define BITS_INT_RX_VC0_Posted (22)
201 #define MASK_INT_RX_VC0_Posted (1<<BITS_INT_RX_VC0_Posted)
202 #define BITS_INT_RX_VC0_NonPosted (21)
203 #define MASK_INT_RX_VC0_NonPosted (1<<BITS_INT_RX_VC0_NonPosted)
204 #define BITS_INT_RX_VC0_CPL (20)
205 #define MASK_INT_RX_VC0_CPL (1<<BITS_INT_RX_VC0_CPL)
206 #define BITS_INT_TX_VC0_Posted (18)
207 #define MASK_INT_TX_VC0_Posted (1<<BITS_INT_TX_VC0_Posted)
208 #define BITS_INT_TX_VC0_NonPosted (17)
209 #define MASK_INT_TX_VC0_NonPosted (1<<BITS_INT_TX_VC0_NonPosted)
210 #define BITS_INT_TX_VC0_CPL (16)
211 #define MASK_INT_TX_VC0_CPL (1<<BITS_INT_TX_VC0_CPL)
212 #define BITS_INT_RX_CTRL (15)
213 #define MASK_INT_RX_CTRL (1<<BITS_INT_RX_CTRL)
214 #define BITS_INT_TX_CTRL (14)
215 #define MASK_INT_TX_CTRL (1<<BITS_INT_TX_CTRL)
216 #define BITS_INTTL (11)
217 #define MASK_INTTL (1<<BITS_INTTL)
218 #define BITS_INTDL (10)
219 #define MASK_INTDL (1<<BITS_INTDL)
220 #define BITS_INTMAC (9)
221 #define MASK_INTMAC (1<<BITS_INTMAC)
222 #define BITS_INTPM (8)
223 #define MASK_INTPM (1<<BITS_INTPM)
226 #define SH4A_PCIEINTER (0x02000C)
227 #define BITS_INT_RX_ERP (31)
228 #define MASK_INT_RX_ERP (1<<BITS_INT_RX_ERP)
229 #define BITS_INT_RX_VCX_Posted (30)
230 #define MASK_INT_RX_VCX_Posted (1<<BITS_INT_RX_VCX_Posted)
231 #define BITS_INT_RX_VCX_NonPosted (29)
232 #define MASK_INT_RX_VCX_NonPosted (1<<BITS_INT_RX_VCX_NonPosted)
233 #define BITS_INT_RX_VCX_CPL (28)
234 #define MASK_INT_RX_VCX_CPL (1<<BITS_INT_RX_VCX_CPL)
235 #define BITS_INT_TX_VCX_Posted (26)
236 #define MASK_INT_TX_VCX_Posted (1<<BITS_INT_TX_VCX_Posted)
237 #define BITS_INT_TX_VCX_NonPosted (25)
238 #define MASK_INT_TX_VCX_NonPosted (1<<BITS_INT_TX_VCX_NonPosted)
239 #define BITS_INT_TX_VCX_CPL (24)
240 #define MASK_INT_TX_VCX_CPL (1<<BITS_INT_TX_VCX_CPL)
241 #define BITS_INT_RX_VC0_Posted (22)
242 #define MASK_INT_RX_VC0_Posted (1<<BITS_INT_RX_VC0_Posted)
243 #define BITS_INT_RX_VC0_NonPosted (21)
244 #define MASK_INT_RX_VC0_NonPosted (1<<BITS_INT_RX_VC0_NonPosted)
245 #define BITS_INT_RX_VC0_CPL (20)
246 #define MASK_INT_RX_VC0_CPL (1<<BITS_INT_RX_VC0_CPL)
247 #define BITS_INT_TX_VC0_Posted (18)
248 #define MASK_INT_TX_VC0_Posted (1<<BITS_INT_TX_VC0_Posted)
249 #define BITS_INT_TX_VC0_NonPosted (17)
250 #define MASK_INT_TX_VC0_NonPosted (1<<BITS_INT_TX_VC0_NonPosted)
251 #define BITS_INT_TX_VC0_CPL (16)
252 #define MASK_INT_TX_VC0_CPL (1<<BITS_INT_TX_VC0_CPL)
253 #define BITS_INT_RX_CTRL (15)
254 #define MASK_INT_RX_CTRL (1<<BITS_INT_RX_CTRL)
255 #define BITS_INT_TX_CTRL (14)
256 #define MASK_INT_TX_CTRL (1<<BITS_INT_TX_CTRL)
257 #define BITS_INTTL (11)
258 #define MASK_INTTL (1<<BITS_INTTL)
259 #define BITS_INTDL (10)
260 #define MASK_INTDL (1<<BITS_INTDL)
261 #define BITS_INTMAC (9)
262 #define MASK_INTMAC (1<<BITS_INTMAC)
263 #define BITS_INTPM (8)
264 #define MASK_INTPM (1<<BITS_INTPM)
267 #define SH4A_PCIEEHR(x) (0x020010 + ((x) * 0x4))
270 #define SH4A_PCIEAIR (SH4A_PCIE_BASE + 0x020010)
273 #define SH4A_PCIECIR (SH4A_PCIE_BASE)
276 #define SH4A_PCIEERRFR (0x020020) // Rev1.18
279 #define SH4A_PCIEERRFER (0x020024)
282 #define SH4A_PCIEERRFR2 (0x020028)
285 #define SH4A_PCIEMSIR (0x020040)
288 #define SH4A_PCIEMSIFR (0x020044)
291 #define SH4A_PCIEPWRCTLR (0x020100)
294 #define SH4A_PCIEPCCTLR (0x020180)
298 #define SH4A_PCIELAR0 (0x020200)
299 #define BITS_LARn (20)
300 #define MASK_LARn (0xfff<<BITS_LARn)
302 #define SH4A_PCIE_020204 (0x020204)
305 #define SH4A_PCIELAMR0 (0x020208)
306 #define BITS_LAMRn (20)
307 #define MASK_LAMRn (0x1ff<<BITS_LAMRn)
308 #define BITS_LAREn (0)
309 #define MASK_LAREn (0x1<<BITS_LAREn)
312 #define SH4A_PCIECSCR0 (0x020210)
313 #define BITS_RANGE (2)
314 #define MASK_RANGE (0x7<<BITS_RANGE)
315 #define BITS_SNPMD (0)
316 #define MASK_SNPMD (0x3<<BITS_SNPMD)
319 #define SH4A_PCIECSAR0 (0x020214)
320 #define BITS_CSADR (0)
321 #define MASK_CSADR (0xffffffff<<BITS_CSADR)
324 #define SH4A_PCIESTCTLR0 (0x020218)
325 #define BITS_SHPRI (8)
326 #define MASK_SHPRI (0x0f<<BITS_SHPRI)
328 #define SH4A_PCIE_020224 (0x020224)
330 #define SH4A_PCIELAR1 (0x020220)
331 #define SH4A_PCIELAMR1 (0x020228)
332 #define SH4A_PCIECSCR1 (0x020230)
333 #define SH4A_PCIECSAR1 (0x020234)
334 #define SH4A_PCIESTCTLR1 (0x020238)
336 #define SH4A_PCIELAR2 (0x020240)
337 #define SH4A_PCIE_020244 (0x020244)
338 #define SH4A_PCIELAMR2 (0x020248)
339 #define SH4A_PCIECSCR2 (0x020250)
340 #define SH4A_PCIECSAR2 (0x020254)
341 #define SH4A_PCIESTCTLR2 (0x020258)
343 #define SH4A_PCIELAR3 (0x020260)
344 #define SH4A_PCIE_020264 (0x020264)
345 #define SH4A_PCIELAMR3 (0x020268)
346 #define SH4A_PCIECSCR3 (0x020270)
347 #define SH4A_PCIECSAR3 (0x020274)
348 #define SH4A_PCIESTCTLR3 (0x020278)
350 #define SH4A_PCIELAR4 (0x020280)
351 #define SH4A_PCIE_020284 (0x020284)
352 #define SH4A_PCIELAMR4 (0x020288)
353 #define SH4A_PCIECSCR4 (0x020290)
354 #define SH4A_PCIECSAR4 (0x020294)
355 #define SH4A_PCIESTCTLR4 (0x020298)
357 #define SH4A_PCIELAR5 (0x0202A0)
358 #define SH4A_PCIE_0202A4 (0x0202A4)
359 #define SH4A_PCIELAMR5 (0x0202A8)
360 #define SH4A_PCIECSCR5 (0x0202B0)
361 #define SH4A_PCIECSAR5 (0x0202B4)
362 #define SH4A_PCIESTCTLR5 (0x0202B8)
365 #define SH4A_PCIEPARL(x) (0x020400 + ((x) * 0x20))
366 #define BITS_PAL (18)
367 #define MASK_PAL (0x3fff<<BITS_PAL)
370 #define SH4A_PCIEPARH(x) (0x020404 + ((x) * 0x20))
372 #define MASK_PAH (0xffffffff<<BITS_PAH)
375 #define SH4A_PCIEPAMR(x) (0x020408 + ((x) * 0x20))
376 #define BITS_PAM (18)
377 #define MASK_PAM (0x3fff<<BITS_PAM)
380 #define SH4A_PCIEPTCTLR(x) (0x02040C + ((x) * 0x20))
381 #define BITS_PARE (31)
382 #define MASK_PARE (0x1<<BITS_PARE)
384 #define MASK_TC (0x7<<BITS_TC)
385 #define BITS_T_VC (16)
386 #define MASK_T_VC (0x1<<BITS_T_VC)
387 #define BITS_LOCK (12)
388 #define MASK_LOCK (0x1<<BITS_LOCK)
390 #define MASK_SPC (0x1<<BITS_SPC)
392 #define SH4A_PCIEDMAOR (0x021000)
393 #define SH4A_PCIEDMSAR0 (0x021100)
394 #define SH4A_PCIEDMSAHR0 (0x021104)
395 #define SH4A_PCIEDMDAR0 (0x021108)
396 #define SH4A_PCIEDMDAHR0 (0x02110C)
397 #define SH4A_PCIEDMBCNTR0 (0x021110)
398 #define SH4A_PCIEDMSBCNTR0 (0x021114)
399 #define SH4A_PCIEDMSTRR0 (0x021118)
400 #define SH4A_PCIEDMCCAR0 (0x02111C)
401 #define SH4A_PCIEDMCCR0 (0x021120)
402 #define SH4A_PCIEDMCC2R0 (0x021124)
403 #define SH4A_PCIEDMCCCR0 (0x021128)
404 #define SH4A_PCIEDMCHSR0 (0x02112C)
405 #define SH4A_PCIEDMSAR1 (0x021140)
406 #define SH4A_PCIEDMSAHR1 (0x021144)
407 #define SH4A_PCIEDMDAR1 (0x021148)
408 #define SH4A_PCIEDMDAHR1 (0x02114C)
409 #define SH4A_PCIEDMBCNTR1 (0x021150)
410 #define SH4A_PCIEDMSBCNTR1 (0x021154)
411 #define SH4A_PCIEDMSTRR1 (0x021158)
412 #define SH4A_PCIEDMCCAR1 (0x02115C)
413 #define SH4A_PCIEDMCCR1 (0x021160)
414 #define SH4A_PCIEDMCC2R1 (0x021164)
415 #define SH4A_PCIEDMCCCR1 (0x021168)
416 #define SH4A_PCIEDMCHSR1 (0x02116C)
417 #define SH4A_PCIEDMSAR2 (0x021180)
418 #define SH4A_PCIEDMSAHR2 (0x021184)
419 #define SH4A_PCIEDMDAR2 (0x021188)
420 #define SH4A_PCIEDMDAHR2 (0x02118C)
421 #define SH4A_PCIEDMBCNTR2 (0x021190)
422 #define SH4A_PCIEDMSBCNTR2 (0x021194)
423 #define SH4A_PCIEDMSTRR2 (0x021198)
424 #define SH4A_PCIEDMCCAR2 (0x02119C)
425 #define SH4A_PCIEDMCCR2 (0x0211A0)
426 #define SH4A_PCIEDMCC2R2 (0x0211A4)
427 #define SH4A_PCIEDMCCCR2 (0x0211A8)
428 #define SH4A_PCIEDMSAR3 (0x0211C0)
429 #define SH4A_PCIEDMSAHR3 (0x0211C4)
430 #define SH4A_PCIEDMDAR3 (0x0211C8)
431 #define SH4A_PCIEDMDAHR3 (0x0211CC)
432 #define SH4A_PCIEDMBCNTR3 (0x0211D0)
433 #define SH4A_PCIEDMSBCNTR3 (0x0211D4)
434 #define SH4A_PCIEDMSTRR3 (0x0211D8)
435 #define SH4A_PCIEDMCCAR3 (0x0211DC)
436 #define SH4A_PCIEDMCCR3 (0x0211E0)
437 #define SH4A_PCIEDMCC2R3 (0x0211E4)
438 #define SH4A_PCIEDMCCCR3 (0x0211E8)
439 #define SH4A_PCIEDMCHSR3 (0x0211EC)
440 #define SH4A_PCIEPCICONF0 (0x040000)
441 #define SH4A_PCIEPCICONF1 (0x040004)
442 #define SH4A_PCIEPCICONF2 (0x040008)
443 #define SH4A_PCIEPCICONF3 (0x04000C)
444 #define SH4A_PCIEPCICONF4 (0x040010)
445 #define SH4A_PCIEPCICONF5 (0x040014)
446 #define SH4A_PCIEPCICONF6 (0x040018)
447 #define SH4A_PCIEPCICONF7 (0x04001C)
448 #define SH4A_PCIEPCICONF8 (0x040020)
449 #define SH4A_PCIEPCICONF9 (0x040024)
450 #define SH4A_PCIEPCICONF10 (0x040028)
451 #define SH4A_PCIEPCICONF11 (0x04002C)
452 #define SH4A_PCIEPCICONF12 (0x040030)
453 #define SH4A_PCIEPCICONF13 (0x040034)
454 #define SH4A_PCIEPCICONF14 (0x040038)
455 #define SH4A_PCIEPCICONF15 (0x04003C)
456 #define SH4A_PCIEPMCAP0 (0x040040)
457 #define SH4A_PCIEPMCAP1 (0x040044)
458 #define SH4A_PCIEMSICAP0 (0x040050)
459 #define SH4A_PCIEMSICAP1 (0x040054)
460 #define SH4A_PCIEMSICAP2 (0x040058)
461 #define SH4A_PCIEMSICAP3 (0x04005C)
462 #define SH4A_PCIEMSICAP4 (0x040060)
463 #define SH4A_PCIEMSICAP5 (0x040064)
464 #define SH4A_PCIEEXPCAP0 (0x040070)
465 #define SH4A_PCIEEXPCAP1 (0x040074)
466 #define SH4A_PCIEEXPCAP2 (0x040078)
467 #define SH4A_PCIEEXPCAP3 (0x04007C)
468 #define SH4A_PCIEEXPCAP4 (0x040080)
469 #define SH4A_PCIEEXPCAP5 (0x040084)
470 #define SH4A_PCIEEXPCAP6 (0x040088)
471 #define SH4A_PCIEEXPCAP7 (0x04008C)
472 #define SH4A_PCIEEXPCAP8 (0x040090)
473 #define SH4A_PCIEVCCAP0 (0x040100)
474 #define SH4A_PCIEVCCAP1 (0x040104)
475 #define SH4A_PCIEVCCAP2 (0x040108)
476 #define SH4A_PCIEVCCAP3 (0x04010C)
477 #define SH4A_PCIEVCCAP4 (0x040110)
478 #define SH4A_PCIEVCCAP5 (0x040114)
479 #define SH4A_PCIEVCCAP6 (0x040118)
480 #define SH4A_PCIEVCCAP7 (0x04011C)
481 #define SH4A_PCIEVCCAP8 (0x040120)
482 #define SH4A_PCIEVCCAP9 (0x040124)
483 #define SH4A_PCIENUMCAP0 (0x0001B0)
484 #define SH4A_PCIENUMCAP1 (0x0001B4)
485 #define SH4A_PCIENUMCAP2 (0x0001B8)
486 #define SH4A_PCIEIDSETR0 (0x041000)
487 #define SH4A_PCIEIDSETR1 (0x041004)
488 #define SH4A_PCIEBAR0SETR (0x041008)
489 #define SH4A_PCIEBAR1SETR (0x04100C)
490 #define SH4A_PCIEBAR2SETR (0x041010)
491 #define SH4A_PCIEBAR3SETR (0x041014)
492 #define SH4A_PCIEBAR4SETR (0x041018)
493 #define SH4A_PCIEBAR5SETR (0x04101C)
494 #define SH4A_PCIECISSETR (0x041020)
495 #define SH4A_PCIEIDSETR2 (0x041024)
496 #define SH4A_PCIEEROMSETR (0x041028)
497 #define SH4A_PCIEDSERSETR0 (0x04102C)
498 #define SH4A_PCIEDSERSETR1 (0x041030)
499 #define SH4A_PCIECTLR (0x041040)
500 #define SH4A_PCIETLSR (0x041044)
501 #define SH4A_PCIETLCTLR (0x041048)
502 #define SH4A_PCIEDLSR (0x04104C)
503 #define SH4A_PCIEDLCTLR (0x041050)
504 #define SH4A_PCIEMACSR (0x041054)
505 #define SH4A_PCIEMACCTLR (0x041058)
506 #define PCIEMACCTLR_SCR_DIS (1 << 27)
507 #define SH4A_PCIEPMSTR (0x04105C)
508 #define SH4A_PCIEPMCTLR (0x041060)
509 #define SH4A_PCIETLINTENR (0x041064)
510 #define SH4A_PCIEDLINTENR (0x041068)
511 #define PCIEDLINTENR_DLL_ACT_ENABLE (1 << 31)
512 #define SH4A_PCIEMACINTENR (0x04106C)
513 #define SH4A_PCIEPMINTENR (0x041070)
514 #define SH4A_PCIETXDCTLR (0x044000)
515 #define SH4A_PCIETXCTLR (0x044020)
516 #define SH4A_PCIETXSR (0x044028)
517 #define SH4A_PCIETXVC0DCTLR (0x044100)
518 #define SH4A_PCIETXVC0SR (0x044108)
519 #define SH4A_PCIEVC0PDTXR (0x044110)
520 #define SH4A_PCIEVC0PHTXR (0x044118)
521 #define SH4A_PCIEVC0NPDTXR (0x044120)
522 #define SH4A_PCIEVC0NPHTXR (0x044128)
523 #define SH4A_PCIEVC0CDTXR (0x044130)
524 #define SH4A_PCIEVC0CHTXR (0x044138)
525 #define SH4A_PCIETXVCXDCTLR (0x044200)
526 #define SH4A_PCIETXVCXSR (0x044208)
527 #define SH4A_PCIEVCXPDTXR (0x044210)
528 #define SH4A_PCIEVCXPHTXR (0x044218)
529 #define SH4A_PCIEVCXNPDTXR (0x044220)
530 #define SH4A_PCIEVCXNPHTXR (0x044228)
531 #define SH4A_PCIEVCXCDTXR (0x044230)
532 #define SH4A_PCIEVCXCHTXR (0x044238)
533 #define SH4A_PCIERDCTLR (0x046000)
534 #define SH4A_PCIEERPCTLR (0x046008)
535 #define SH4A_PCIEERPHR (0x046010)
536 #define SH4A_PCIEERPERR (0x046018)
537 #define SH4A_PCIERXVC0DCTLR (0x046100)
538 #define SH4A_PCIERXVC0SR (0x046108)
539 #define SH4A_PCIEVC0PDRXR (0x046140)
540 #define SH4A_PCIEVC0PHRXR (0x046148)
541 #define SH4A_PCIEVC0PERR (0x046150)
542 #define SH4A_PCIEVC0NPDRXR (0x046158)
543 #define SH4A_PCIEVC0NPHRXR (0x046160)
544 #define SH4A_PCIEVC0NPERR (0x046168)
545 #define SH4A_PCIEVC0CDRXR (0x046170)
546 #define SH4A_PCIEVC0CHRXR (0x046178)
547 #define SH4A_PCIEVC0CERR (0x046180)
548 #define SH4A_PCIERXVCXDCTLR (0x046200)
549 #define SH4A_PCIERXVCXSR (0x046208)
550 #define SH4A_PCIEVCXPDRXR (0x046240)
551 #define SH4A_PCIEVCXPHRXR (0x046248)
552 #define SH4A_PCIEVCXPERR (0x046250)
553 #define SH4A_PCIEVCXNPDRXR (0x046258)
554 #define SH4A_PCIEVCXNPHRXR (0x046260)
555 #define SH4A_PCIEVCXNPERR (0x046268)
556 #define SH4A_PCIEVCXCDRXR (0x046270)
557 #define SH4A_PCIEVCXCHRXR (0x046278)
558 #define SH4A_PCIEVCXCERR (0x046280)
561 #define SH4A_PCI_SSI_BASE 0xFFE00000
562 #define SH4A_PCI_SSI_BASE_LEN 0x00100000
564 #define SH4A_SSICR0 (0x000000)
565 #define SH4A_SSICR1 (0x010000)
566 #define SH4A_SSICR2 (0x020000)
567 #define SH4A_SSICR3 (0x030000)
569 #define PCI_REG(x) ((x) + 0x40000)
572 pci_write_reg(
struct pci_channel *
chan,
unsigned long val,
unsigned long reg)
577 static inline unsigned long
578 pci_read_reg(
struct pci_channel *
chan,
unsigned long reg)