regs-pci.h 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * PKUnity AHB-PCI Bridge Registers
  3. */
  4. /*
  5. * AHB/PCI fixed physical address for pci addess configuration
  6. */
  7. /*
  8. * PCICFG Bridge Base Reg.
  9. */
  10. #define PCICFG_BRIBASE (PKUNITY_PCICFG_BASE + 0x0000)
  11. /*
  12. * PCICFG Address Reg.
  13. */
  14. #define PCICFG_ADDR (PKUNITY_PCICFG_BASE + 0x0004)
  15. /*
  16. * PCICFG Address Reg.
  17. */
  18. #define PCICFG_DATA (PKUNITY_PCICFG_BASE + 0x0008)
  19. /*
  20. * PCI Bridge configuration space
  21. */
  22. #define PCIBRI_ID (PKUNITY_PCIBRI_BASE + 0x0000)
  23. #define PCIBRI_CMD (PKUNITY_PCIBRI_BASE + 0x0004)
  24. #define PCIBRI_CLASS (PKUNITY_PCIBRI_BASE + 0x0008)
  25. #define PCIBRI_LTR (PKUNITY_PCIBRI_BASE + 0x000C)
  26. #define PCIBRI_BAR0 (PKUNITY_PCIBRI_BASE + 0x0010)
  27. #define PCIBRI_BAR1 (PKUNITY_PCIBRI_BASE + 0x0014)
  28. #define PCIBRI_BAR2 (PKUNITY_PCIBRI_BASE + 0x0018)
  29. #define PCIBRI_BAR3 (PKUNITY_PCIBRI_BASE + 0x001C)
  30. #define PCIBRI_BAR4 (PKUNITY_PCIBRI_BASE + 0x0020)
  31. #define PCIBRI_BAR5 (PKUNITY_PCIBRI_BASE + 0x0024)
  32. #define PCIBRI_PCICTL0 (PKUNITY_PCIBRI_BASE + 0x0100)
  33. #define PCIBRI_PCIBAR0 (PKUNITY_PCIBRI_BASE + 0x0104)
  34. #define PCIBRI_PCIAMR0 (PKUNITY_PCIBRI_BASE + 0x0108)
  35. #define PCIBRI_PCITAR0 (PKUNITY_PCIBRI_BASE + 0x010C)
  36. #define PCIBRI_PCICTL1 (PKUNITY_PCIBRI_BASE + 0x0110)
  37. #define PCIBRI_PCIBAR1 (PKUNITY_PCIBRI_BASE + 0x0114)
  38. #define PCIBRI_PCIAMR1 (PKUNITY_PCIBRI_BASE + 0x0118)
  39. #define PCIBRI_PCITAR1 (PKUNITY_PCIBRI_BASE + 0x011C)
  40. #define PCIBRI_PCICTL2 (PKUNITY_PCIBRI_BASE + 0x0120)
  41. #define PCIBRI_PCIBAR2 (PKUNITY_PCIBRI_BASE + 0x0124)
  42. #define PCIBRI_PCIAMR2 (PKUNITY_PCIBRI_BASE + 0x0128)
  43. #define PCIBRI_PCITAR2 (PKUNITY_PCIBRI_BASE + 0x012C)
  44. #define PCIBRI_PCICTL3 (PKUNITY_PCIBRI_BASE + 0x0130)
  45. #define PCIBRI_PCIBAR3 (PKUNITY_PCIBRI_BASE + 0x0134)
  46. #define PCIBRI_PCIAMR3 (PKUNITY_PCIBRI_BASE + 0x0138)
  47. #define PCIBRI_PCITAR3 (PKUNITY_PCIBRI_BASE + 0x013C)
  48. #define PCIBRI_PCICTL4 (PKUNITY_PCIBRI_BASE + 0x0140)
  49. #define PCIBRI_PCIBAR4 (PKUNITY_PCIBRI_BASE + 0x0144)
  50. #define PCIBRI_PCIAMR4 (PKUNITY_PCIBRI_BASE + 0x0148)
  51. #define PCIBRI_PCITAR4 (PKUNITY_PCIBRI_BASE + 0x014C)
  52. #define PCIBRI_PCICTL5 (PKUNITY_PCIBRI_BASE + 0x0150)
  53. #define PCIBRI_PCIBAR5 (PKUNITY_PCIBRI_BASE + 0x0154)
  54. #define PCIBRI_PCIAMR5 (PKUNITY_PCIBRI_BASE + 0x0158)
  55. #define PCIBRI_PCITAR5 (PKUNITY_PCIBRI_BASE + 0x015C)
  56. #define PCIBRI_AHBCTL0 (PKUNITY_PCIBRI_BASE + 0x0180)
  57. #define PCIBRI_AHBBAR0 (PKUNITY_PCIBRI_BASE + 0x0184)
  58. #define PCIBRI_AHBAMR0 (PKUNITY_PCIBRI_BASE + 0x0188)
  59. #define PCIBRI_AHBTAR0 (PKUNITY_PCIBRI_BASE + 0x018C)
  60. #define PCIBRI_AHBCTL1 (PKUNITY_PCIBRI_BASE + 0x0190)
  61. #define PCIBRI_AHBBAR1 (PKUNITY_PCIBRI_BASE + 0x0194)
  62. #define PCIBRI_AHBAMR1 (PKUNITY_PCIBRI_BASE + 0x0198)
  63. #define PCIBRI_AHBTAR1 (PKUNITY_PCIBRI_BASE + 0x019C)
  64. #define PCIBRI_AHBCTL2 (PKUNITY_PCIBRI_BASE + 0x01A0)
  65. #define PCIBRI_AHBBAR2 (PKUNITY_PCIBRI_BASE + 0x01A4)
  66. #define PCIBRI_AHBAMR2 (PKUNITY_PCIBRI_BASE + 0x01A8)
  67. #define PCIBRI_AHBTAR2 (PKUNITY_PCIBRI_BASE + 0x01AC)
  68. #define PCIBRI_AHBCTL3 (PKUNITY_PCIBRI_BASE + 0x01B0)
  69. #define PCIBRI_AHBBAR3 (PKUNITY_PCIBRI_BASE + 0x01B4)
  70. #define PCIBRI_AHBAMR3 (PKUNITY_PCIBRI_BASE + 0x01B8)
  71. #define PCIBRI_AHBTAR3 (PKUNITY_PCIBRI_BASE + 0x01BC)
  72. #define PCIBRI_AHBCTL4 (PKUNITY_PCIBRI_BASE + 0x01C0)
  73. #define PCIBRI_AHBBAR4 (PKUNITY_PCIBRI_BASE + 0x01C4)
  74. #define PCIBRI_AHBAMR4 (PKUNITY_PCIBRI_BASE + 0x01C8)
  75. #define PCIBRI_AHBTAR4 (PKUNITY_PCIBRI_BASE + 0x01CC)
  76. #define PCIBRI_AHBCTL5 (PKUNITY_PCIBRI_BASE + 0x01D0)
  77. #define PCIBRI_AHBBAR5 (PKUNITY_PCIBRI_BASE + 0x01D4)
  78. #define PCIBRI_AHBAMR5 (PKUNITY_PCIBRI_BASE + 0x01D8)
  79. #define PCIBRI_AHBTAR5 (PKUNITY_PCIBRI_BASE + 0x01DC)
  80. #define PCIBRI_CTLx_AT FIELD(1, 1, 2)
  81. #define PCIBRI_CTLx_PREF FIELD(1, 1, 1)
  82. #define PCIBRI_CTLx_MRL FIELD(1, 1, 0)
  83. #define PCIBRI_BARx_ADDR FIELD(0xFFFFFFFC, 30, 2)
  84. #define PCIBRI_BARx_IO FIELD(1, 1, 0)
  85. #define PCIBRI_BARx_MEM FIELD(0, 1, 0)
  86. #define PCIBRI_CMD_IO FIELD(1, 1, 0)
  87. #define PCIBRI_CMD_MEM FIELD(1, 1, 1)