gt64111.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #ifndef _GT64111_H_
  2. #define _GT64111_H_
  3. #define MASTER_INTERFACE 0x0
  4. #define RAS10_LO_DEC_ADR 0x8
  5. #define RAS10_HI_DEC_ADR 0x10
  6. #define RAS32_LO_DEC_ADR 0x18
  7. #define RAS32_HI_DEC_ADR 0x20
  8. #define CS20_LO_DEC_ADR 0x28
  9. #define CS20_HI_DEC_ADR 0x30
  10. #define CS3_LO_DEC_ADR 0x38
  11. #define CS3_HI_DEC_ADR 0x40
  12. #define PCI_IO_LO_DEC_ADR 0x48
  13. #define PCI_IO_HI_DEC_ADR 0x50
  14. #define PCI_MEM0_LO_DEC_ADR 0x58
  15. #define PCI_MEM0_HI_DEC_ADR 0x60
  16. #define INTERNAL_SPACE_DEC 0x68
  17. #define BUS_ERR_ADR_LO_CPU 0x70
  18. #define READONLY0 0x78
  19. #define PCI_MEM1_LO_DEC_ADR 0x80
  20. #define PCI_MEM1_HI_DEC_ADR 0x88
  21. #define RAS0_LO_DEC_ADR 0x400
  22. #define RAS0_HI_DEC_ADR 0x404
  23. #define RAS1_LO_DEC_ADR 0x408
  24. #define RAS1_HI_DEC_ADR 0x40c
  25. #define RAS2_LO_DEC_ADR 0x410
  26. #define RAS2_HI_DEC_ADR 0x414
  27. #define RAS3_LO_DEC_ADR 0x418
  28. #define RAS3_HI_DEC_ADR 0x41c
  29. #define DEV_CS0_LO_DEC_ADR 0x420
  30. #define DEV_CS0_HI_DEC_ADR 0x424
  31. #define DEV_CS1_LO_DEC_ADR 0x428
  32. #define DEV_CS1_HI_DEC_ADR 0x42c
  33. #define DEV_CS2_LO_DEC_ADR 0x430
  34. #define DEV_CS2_HI_DEC_ADR 0x434
  35. #define DEV_CS3_LO_DEC_ADR 0x438
  36. #define DEV_CS3_HI_DEC_ADR 0x43c
  37. #define DEV_BOOTCS_LO_DEC_ADR 0x440
  38. #define DEV_BOOTCS_HI_DEC_ADR 0x444
  39. #define DEV_ADR_DEC_ERR 0x470
  40. #define DRAM_CFG 0x448
  41. #define DRAM_BANK0_PARMS 0x44c
  42. #define DRAM_BANK1_PARMS 0x450
  43. #define DRAM_BANK2_PARMS 0x454
  44. #define DRAM_BANK3_PARMS 0x458
  45. #define DEV_BANK0_PARMS 0x45c
  46. #define DEV_BANK1_PARMS 0x460
  47. #define DEV_BANK2_PARMS 0x464
  48. #define DEV_BANK3_PARMS 0x468
  49. #define DEV_BOOT_BANK_PARMS 0x46c
  50. #define CH0_DMA_BYTECOUNT 0x800
  51. #define CH1_DMA_BYTECOUNT 0x804
  52. #define CH2_DMA_BYTECOUNT 0x808
  53. #define CH3_DMA_BYTECOUNT 0x80c
  54. #define CH0_DMA_SRC_ADR 0x810
  55. #define CH1_DMA_SRC_ADR 0x814
  56. #define CH2_DMA_SRC_ADR 0x818
  57. #define CH3_DMA_SRC_ADR 0x81c
  58. #define CH0_DMA_DST_ADR 0x820
  59. #define CH1_DMA_DST_ADR 0x824
  60. #define CH2_DMA_DST_ADR 0x828
  61. #define CH3_DMA_DST_ADR 0x82c
  62. #define CH0_NEXT_REC_PTR 0x830
  63. #define CH1_NEXT_REC_PTR 0x834
  64. #define CH2_NEXT_REC_PTR 0x838
  65. #define CH3_NEXT_REC_PTR 0x83c
  66. #define CH0_CTRL 0x840
  67. #define CH1_CTRL 0x844
  68. #define CH2_CTRL 0x848
  69. #define CH3_CTRL 0x84c
  70. #define DMA_ARBITER 0x860
  71. #define TIMER0 0x850
  72. #define TIMER1 0x854
  73. #define TIMER2 0x858
  74. #define TIMER3 0x85c
  75. #define TIMER_CTRL 0x864
  76. #define PCI_CMD 0xc00
  77. #define PCI_TIMEOUT 0xc04
  78. #define PCI_RAS10_BANK_SIZE 0xc08
  79. #define PCI_RAS32_BANK_SIZE 0xc0c
  80. #define PCI_CS20_BANK_SIZE 0xc10
  81. #define PCI_CS3_BANK_SIZE 0xc14
  82. #define PCI_SERRMASK 0xc28
  83. #define PCI_INTACK 0xc34
  84. #define PCI_BAR_EN 0xc3c
  85. #define PCI_CFG_ADR 0xcf8
  86. #define PCI_CFG_DATA 0xcfc
  87. #define PCI_INTCAUSE 0xc18
  88. #define PCI_MAST_MASK 0xc1c
  89. #define PCI_PCIMASK 0xc24
  90. #define BAR_ENABLE_ADR 0xc3c
  91. /* These are config registers, accessible via PCI space */
  92. #define PCI_CONFIG_RAS10_BASE_ADR 0x010
  93. #define PCI_CONFIG_RAS32_BASE_ADR 0x014
  94. #define PCI_CONFIG_CS20_BASE_ADR 0x018
  95. #define PCI_CONFIG_CS3_BASE_ADR 0x01c
  96. #define PCI_CONFIG_INT_REG_MM_ADR 0x020
  97. #define PCI_CONFIG_INT_REG_IO_ADR 0x024
  98. #define PCI_CONFIG_BOARD_VENDOR 0x02c
  99. #define PCI_CONFIG_ROM_ADR 0x030
  100. #define PCI_CONFIG_INT_PIN_LINE 0x03c
  101. #endif