fsl_pcie.h 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * MPC85xx/86xx PCI Express structure define
  3. *
  4. * Copyright 2007 Freescale Semiconductor, Inc
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. */
  12. #ifdef __KERNEL__
  13. #ifndef __POWERPC_FSL_PCIE_H
  14. #define __POWERPC_FSL_PCIE_H
  15. /* PCIE Express IO block registers in 85xx/86xx */
  16. struct ccsr_pex {
  17. __be32 __iomem pex_config_addr; /* 0x.000 - PCI Express Configuration Address Register */
  18. __be32 __iomem pex_config_data; /* 0x.004 - PCI Express Configuration Data Register */
  19. u8 __iomem res1[4];
  20. __be32 __iomem pex_otb_cpl_tor; /* 0x.00c - PCI Express Outbound completion timeout register */
  21. __be32 __iomem pex_conf_tor; /* 0x.010 - PCI Express configuration timeout register */
  22. u8 __iomem res2[12];
  23. __be32 __iomem pex_pme_mes_dr; /* 0x.020 - PCI Express PME and message detect register */
  24. __be32 __iomem pex_pme_mes_disr; /* 0x.024 - PCI Express PME and message disable register */
  25. __be32 __iomem pex_pme_mes_ier; /* 0x.028 - PCI Express PME and message interrupt enable register */
  26. __be32 __iomem pex_pmcr; /* 0x.02c - PCI Express power management command register */
  27. u8 __iomem res3[3024];
  28. __be32 __iomem pexotar0; /* 0x.c00 - PCI Express outbound translation address register 0 */
  29. __be32 __iomem pexotear0; /* 0x.c04 - PCI Express outbound translation extended address register 0*/
  30. u8 __iomem res4[8];
  31. __be32 __iomem pexowar0; /* 0x.c10 - PCI Express outbound window attributes register 0*/
  32. u8 __iomem res5[12];
  33. __be32 __iomem pexotar1; /* 0x.c20 - PCI Express outbound translation address register 1 */
  34. __be32 __iomem pexotear1; /* 0x.c24 - PCI Express outbound translation extended address register 1*/
  35. __be32 __iomem pexowbar1; /* 0x.c28 - PCI Express outbound window base address register 1*/
  36. u8 __iomem res6[4];
  37. __be32 __iomem pexowar1; /* 0x.c30 - PCI Express outbound window attributes register 1*/
  38. u8 __iomem res7[12];
  39. __be32 __iomem pexotar2; /* 0x.c40 - PCI Express outbound translation address register 2 */
  40. __be32 __iomem pexotear2; /* 0x.c44 - PCI Express outbound translation extended address register 2*/
  41. __be32 __iomem pexowbar2; /* 0x.c48 - PCI Express outbound window base address register 2*/
  42. u8 __iomem res8[4];
  43. __be32 __iomem pexowar2; /* 0x.c50 - PCI Express outbound window attributes register 2*/
  44. u8 __iomem res9[12];
  45. __be32 __iomem pexotar3; /* 0x.c60 - PCI Express outbound translation address register 3 */
  46. __be32 __iomem pexotear3; /* 0x.c64 - PCI Express outbound translation extended address register 3*/
  47. __be32 __iomem pexowbar3; /* 0x.c68 - PCI Express outbound window base address register 3*/
  48. u8 __iomem res10[4];
  49. __be32 __iomem pexowar3; /* 0x.c70 - PCI Express outbound window attributes register 3*/
  50. u8 __iomem res11[12];
  51. __be32 __iomem pexotar4; /* 0x.c80 - PCI Express outbound translation address register 4 */
  52. __be32 __iomem pexotear4; /* 0x.c84 - PCI Express outbound translation extended address register 4*/
  53. __be32 __iomem pexowbar4; /* 0x.c88 - PCI Express outbound window base address register 4*/
  54. u8 __iomem res12[4];
  55. __be32 __iomem pexowar4; /* 0x.c90 - PCI Express outbound window attributes register 4*/
  56. u8 __iomem res13[12];
  57. u8 __iomem res14[256];
  58. __be32 __iomem pexitar3; /* 0x.da0 - PCI Express inbound translation address register 3 */
  59. u8 __iomem res15[4];
  60. __be32 __iomem pexiwbar3; /* 0x.da8 - PCI Express inbound window base address register 3 */
  61. __be32 __iomem pexiwbear3; /* 0x.dac - PCI Express inbound window base extended address register 3 */
  62. __be32 __iomem pexiwar3; /* 0x.db0 - PCI Express inbound window attributes register 3 */
  63. u8 __iomem res16[12];
  64. __be32 __iomem pexitar2; /* 0x.dc0 - PCI Express inbound translation address register 2 */
  65. u8 __iomem res17[4];
  66. __be32 __iomem pexiwbar2; /* 0x.dc8 - PCI Express inbound window base address register 2 */
  67. __be32 __iomem pexiwbear2; /* 0x.dcc - PCI Express inbound window base extended address register 2 */
  68. __be32 __iomem pexiwar2; /* 0x.dd0 - PCI Express inbound window attributes register 2 */
  69. u8 __iomem res18[12];
  70. __be32 __iomem pexitar1; /* 0x.de0 - PCI Express inbound translation address register 2 */
  71. u8 __iomem res19[4];
  72. __be32 __iomem pexiwbar1; /* 0x.de8 - PCI Express inbound window base address register 2 */
  73. __be32 __iomem pexiwbear1; /* 0x.dec - PCI Express inbound window base extended address register 2 */
  74. __be32 __iomem pexiwar1; /* 0x.df0 - PCI Express inbound window attributes register 2 */
  75. u8 __iomem res20[12];
  76. __be32 __iomem pex_err_dr; /* 0x.e00 - PCI Express error detect register */
  77. u8 __iomem res21[4];
  78. __be32 __iomem pex_err_en; /* 0x.e08 - PCI Express error interrupt enable register */
  79. u8 __iomem res22[4];
  80. __be32 __iomem pex_err_disr; /* 0x.e10 - PCI Express error disable register */
  81. u8 __iomem res23[12];
  82. __be32 __iomem pex_err_cap_stat; /* 0x.e20 - PCI Express error capture status register */
  83. u8 __iomem res24[4];
  84. __be32 __iomem pex_err_cap_r0; /* 0x.e28 - PCI Express error capture register 0 */
  85. __be32 __iomem pex_err_cap_r1; /* 0x.e2c - PCI Express error capture register 0 */
  86. __be32 __iomem pex_err_cap_r2; /* 0x.e30 - PCI Express error capture register 0 */
  87. __be32 __iomem pex_err_cap_r3; /* 0x.e34 - PCI Express error capture register 0 */
  88. };
  89. #endif /* __POWERPC_FSL_PCIE_H */
  90. #endif /* __KERNEL__ */