sni.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * SNI specific definitions
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 1997, 1998 by Ralf Baechle
  9. */
  10. #ifndef __ASM_SNI_H
  11. #define __ASM_SNI_H
  12. #define SNI_PORT_BASE 0xb4000000
  13. /*
  14. * ASIC PCI registers for little endian configuration.
  15. */
  16. #define PCIMT_UCONF 0xbfff0000
  17. #define PCIMT_IOADTIMEOUT2 0xbfff0008
  18. #define PCIMT_IOMEMCONF 0xbfff0010
  19. #define PCIMT_IOMMU 0xbfff0018
  20. #define PCIMT_IOADTIMEOUT1 0xbfff0020
  21. #define PCIMT_DMAACCESS 0xbfff0028
  22. #define PCIMT_DMAHIT 0xbfff0030
  23. #define PCIMT_ERRSTATUS 0xbfff0038
  24. #define PCIMT_ERRADDR 0xbfff0040
  25. #define PCIMT_SYNDROME 0xbfff0048
  26. #define PCIMT_ITPEND 0xbfff0050
  27. #define IT_INT2 0x01
  28. #define IT_INTD 0x02
  29. #define IT_INTC 0x04
  30. #define IT_INTB 0x08
  31. #define IT_INTA 0x10
  32. #define IT_EISA 0x20
  33. #define IT_SCSI 0x40
  34. #define IT_ETH 0x80
  35. #define PCIMT_IRQSEL 0xbfff0058
  36. #define PCIMT_TESTMEM 0xbfff0060
  37. #define PCIMT_ECCREG 0xbfff0068
  38. #define PCIMT_CONFIG_ADDRESS 0xbfff0070
  39. #define PCIMT_ASIC_ID 0xbfff0078 /* read */
  40. #define PCIMT_SOFT_RESET 0xbfff0078 /* write */
  41. #define PCIMT_PIA_OE 0xbfff0080
  42. #define PCIMT_PIA_DATAOUT 0xbfff0088
  43. #define PCIMT_PIA_DATAIN 0xbfff0090
  44. #define PCIMT_CACHECONF 0xbfff0098
  45. #define PCIMT_INVSPACE 0xbfff00a0
  46. #define PCIMT_PCI_CONF 0xbfff0100
  47. /*
  48. * Data port for the PCI bus in IO space
  49. */
  50. #define PCIMT_CONFIG_DATA 0x0cfc
  51. /*
  52. * Board specific registers
  53. */
  54. #define PCIMT_CSMSR 0xbfd00000
  55. #define PCIMT_CSSWITCH 0xbfd10000
  56. #define PCIMT_CSITPEND 0xbfd20000
  57. #define PCIMT_AUTO_PO_EN 0xbfd30000
  58. #define PCIMT_CLR_TEMP 0xbfd40000
  59. #define PCIMT_AUTO_PO_DIS 0xbfd50000
  60. #define PCIMT_EXMSR 0xbfd60000
  61. #define PCIMT_UNUSED1 0xbfd70000
  62. #define PCIMT_CSWCSM 0xbfd80000
  63. #define PCIMT_UNUSED2 0xbfd90000
  64. #define PCIMT_CSLED 0xbfda0000
  65. #define PCIMT_CSMAPISA 0xbfdb0000
  66. #define PCIMT_CSRSTBP 0xbfdc0000
  67. #define PCIMT_CLRPOFF 0xbfdd0000
  68. #define PCIMT_CSTIMER 0xbfde0000
  69. #define PCIMT_PWDN 0xbfdf0000
  70. /*
  71. * Interrupt 0-16 are EISA interrupts. Interrupts from 16 on are assigned
  72. * to the other interrupts generated by ASIC PCI.
  73. *
  74. * INT2 is a wired-or of the push button interrupt, high temperature interrupt
  75. * ASIC PCI interrupt.
  76. */
  77. #define PCIMT_KEYBOARD_IRQ 1
  78. #define PCIMT_IRQ_INT2 16
  79. #define PCIMT_IRQ_INTD 17
  80. #define PCIMT_IRQ_INTC 18
  81. #define PCIMT_IRQ_INTB 19
  82. #define PCIMT_IRQ_INTA 20
  83. #define PCIMT_IRQ_EISA 21
  84. #define PCIMT_IRQ_SCSI 22
  85. #define PCIMT_IRQ_ETHERNET 23
  86. #define PCIMT_IRQ_TEMPERATURE 24
  87. #define PCIMT_IRQ_EISA_NMI 25
  88. #define PCIMT_IRQ_POWER_OFF 26
  89. #define PCIMT_IRQ_BUTTON 27
  90. /*
  91. * Base address for the mapped 16mb EISA bus segment.
  92. */
  93. #define PCIMT_EISA_BASE 0xb0000000
  94. /* PCI EISA Interrupt acknowledge */
  95. #define PCIMT_INT_ACKNOWLEDGE 0xba000000
  96. #endif /* __ASM_SNI_H */