hiddenDangerAnalysis.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. * Copyright (C) 2000, 2004, 2005 MIPS Technologies, Inc.
  3. * All rights reserved.
  4. * Authors: Carsten Langgaard <carstenl@mips.com>
  5. * Maciej W. Rozycki <macro@mips.com>
  6. * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
  7. *
  8. * This program is free software; you can distribute it and/or modify it
  9. * under the terms of the GNU General Public License (Version 2) as
  10. * published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope it will be useful, but WITHOUT
  13. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  15. * for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write to the Free Software Foundation, Inc.,
  19. * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  20. */
  21. #ifndef _ASM_GT64120_H
  22. #define _ASM_GT64120_H
  23. #include <asm/addrspace.h>
  24. #include <asm/byteorder.h>
  25. #define MSK(n) ((1 << (n)) - 1)
  26. /*
  27. * Register offset addresses
  28. */
  29. /* CPU Configuration. */
  30. #define GT_CPU_OFS 0x000
  31. #define GT_MULTI_OFS 0x120
  32. /* CPU Address Decode. */
  33. #define GT_SCS10LD_OFS 0x008
  34. #define GT_SCS10HD_OFS 0x010
  35. #define GT_SCS32LD_OFS 0x018
  36. #define GT_SCS32HD_OFS 0x020
  37. #define GT_CS20LD_OFS 0x028
  38. #define GT_CS20HD_OFS 0x030
  39. #define GT_CS3BOOTLD_OFS 0x038
  40. #define GT_CS3BOOTHD_OFS 0x040
  41. #define GT_PCI0IOLD_OFS 0x048
  42. #define GT_PCI0IOHD_OFS 0x050
  43. #define GT_PCI0M0LD_OFS 0x058
  44. #define GT_PCI0M0HD_OFS 0x060
  45. #define GT_ISD_OFS 0x068
  46. #define GT_PCI0M1LD_OFS 0x080
  47. #define GT_PCI0M1HD_OFS 0x088
  48. #define GT_PCI1IOLD_OFS 0x090
  49. #define GT_PCI1IOHD_OFS 0x098
  50. #define GT_PCI1M0LD_OFS 0x0a0
  51. #define GT_PCI1M0HD_OFS 0x0a8
  52. #define GT_PCI1M1LD_OFS 0x0b0
  53. #define GT_PCI1M1HD_OFS 0x0b8
  54. #define GT_PCI1M1LD_OFS 0x0b0
  55. #define GT_PCI1M1HD_OFS 0x0b8
  56. #define GT_SCS10AR_OFS 0x0d0
  57. #define GT_SCS32AR_OFS 0x0d8
  58. #define GT_CS20R_OFS 0x0e0
  59. #define GT_CS3BOOTR_OFS 0x0e8
  60. #define GT_PCI0IOREMAP_OFS 0x0f0
  61. #define GT_PCI0M0REMAP_OFS 0x0f8
  62. #define GT_PCI0M1REMAP_OFS 0x100
  63. #define GT_PCI1IOREMAP_OFS 0x108
  64. #define GT_PCI1M0REMAP_OFS 0x110
  65. #define GT_PCI1M1REMAP_OFS 0x118
  66. /* CPU Error Report. */
  67. #define GT_CPUERR_ADDRLO_OFS 0x070
  68. #define GT_CPUERR_ADDRHI_OFS 0x078
  69. #define GT_CPUERR_DATALO_OFS 0x128 /* GT-64120A only */
  70. #define GT_CPUERR_DATAHI_OFS 0x130 /* GT-64120A only */
  71. #define GT_CPUERR_PARITY_OFS 0x138 /* GT-64120A only */
  72. /* CPU Sync Barrier. */
  73. #define GT_PCI0SYNC_OFS 0x0c0
  74. #define GT_PCI1SYNC_OFS 0x0c8
  75. /* SDRAM and Device Address Decode. */
  76. #define GT_SCS0LD_OFS 0x400
  77. #define GT_SCS0HD_OFS 0x404
  78. #define GT_SCS1LD_OFS 0x408
  79. #define GT_SCS1HD_OFS 0x40c
  80. #define GT_SCS2LD_OFS 0x410
  81. #define GT_SCS2HD_OFS 0x414
  82. #define GT_SCS3LD_OFS 0x418
  83. #define GT_SCS3HD_OFS 0x41c
  84. #define GT_CS0LD_OFS 0x420
  85. #define GT_CS0HD_OFS 0x424
  86. #define GT_CS1LD_OFS 0x428
  87. #define GT_CS1HD_OFS 0x42c
  88. #define GT_CS2LD_OFS 0x430
  89. #define GT_CS2HD_OFS 0x434
  90. #define GT_CS3LD_OFS 0x438
  91. #define GT_CS3HD_OFS 0x43c
  92. #define GT_BOOTLD_OFS 0x440
  93. #define GT_BOOTHD_OFS 0x444
  94. #define GT_ADERR_OFS 0x470
  95. /* SDRAM Configuration. */
  96. #define GT_SDRAM_CFG_OFS 0x448
  97. #define GT_SDRAM_OPMODE_OFS 0x474
  98. #define GT_SDRAM_BM_OFS 0x478
  99. #define GT_SDRAM_ADDRDECODE_OFS 0x47c
  100. /* SDRAM Parameters. */
  101. #define GT_SDRAM_B0_OFS 0x44c
  102. #define GT_SDRAM_B1_OFS 0x450
  103. #define GT_SDRAM_B2_OFS 0x454
  104. #define GT_SDRAM_B3_OFS 0x458
  105. /* Device Parameters. */
  106. #define GT_DEV_B0_OFS 0x45c
  107. #define GT_DEV_B1_OFS 0x460
  108. #define GT_DEV_B2_OFS 0x464
  109. #define GT_DEV_B3_OFS 0x468
  110. #define GT_DEV_BOOT_OFS 0x46c
  111. /* ECC. */
  112. #define GT_ECC_ERRDATALO 0x480 /* GT-64120A only */
  113. #define GT_ECC_ERRDATAHI 0x484 /* GT-64120A only */
  114. #define GT_ECC_MEM 0x488 /* GT-64120A only */
  115. #define GT_ECC_CALC 0x48c /* GT-64120A only */
  116. #define GT_ECC_ERRADDR 0x490 /* GT-64120A only */
  117. /* DMA Record. */
  118. #define GT_DMA0_CNT_OFS 0x800
  119. #define GT_DMA1_CNT_OFS 0x804
  120. #define GT_DMA2_CNT_OFS 0x808
  121. #define GT_DMA3_CNT_OFS 0x80c
  122. #define GT_DMA0_SA_OFS 0x810
  123. #define GT_DMA1_SA_OFS 0x814
  124. #define GT_DMA2_SA_OFS 0x818
  125. #define GT_DMA3_SA_OFS 0x81c
  126. #define GT_DMA0_DA_OFS 0x820
  127. #define GT_DMA1_DA_OFS 0x824
  128. #define GT_DMA2_DA_OFS 0x828
  129. #define GT_DMA3_DA_OFS 0x82c
  130. #define GT_DMA0_NEXT_OFS 0x830
  131. #define GT_DMA1_NEXT_OFS 0x834
  132. #define GT_DMA2_NEXT_OFS 0x838