kn03.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Hardware info about DECstation 5000/2x0 systems (otherwise known as
  3. * 3max+) and DECsystem 5900 systems (otherwise known as bigmax) which
  4. * differ mechanically but are otherwise identical (both are known as
  5. * KN03).
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file "COPYING" in the main directory of this archive
  9. * for more details.
  10. *
  11. * Copyright (C) 1995,1996 by Paul M. Antoine, some code and definitions
  12. * are by courtesy of Chris Fraser.
  13. * Copyright (C) 2000, 2002, 2003, 2005 Maciej W. Rozycki
  14. */
  15. #ifndef __ASM_MIPS_DEC_KN03_H
  16. #define __ASM_MIPS_DEC_KN03_H
  17. #include <asm/dec/ecc.h>
  18. #include <asm/dec/ioasic_addrs.h>
  19. #define KN03_SLOT_BASE 0x1f800000
  20. /*
  21. * CPU interrupt bits.
  22. */
  23. #define KN03_CPU_INR_HALT 6 /* HALT button */
  24. #define KN03_CPU_INR_BUS 5 /* memory, I/O bus read/write errors */
  25. #define KN03_CPU_INR_RES_4 4 /* unused */
  26. #define KN03_CPU_INR_RTC 3 /* DS1287 RTC */
  27. #define KN03_CPU_INR_CASCADE 2 /* I/O ASIC cascade */
  28. /*
  29. * I/O ASIC interrupt bits. Star marks denote non-IRQ status bits.
  30. */
  31. #define KN03_IO_INR_3MAXP 15 /* (*) 3max+/bigmax ID */
  32. #define KN03_IO_INR_NVRAM 14 /* (*) NVRAM clear jumper */
  33. #define KN03_IO_INR_TC2 13 /* TURBOchannel slot #2 */
  34. #define KN03_IO_INR_TC1 12 /* TURBOchannel slot #1 */
  35. #define KN03_IO_INR_TC0 11 /* TURBOchannel slot #0 */
  36. #define KN03_IO_INR_NRMOD 10 /* (*) NRMOD manufacturing jumper */
  37. #define KN03_IO_INR_ASC 9 /* ASC (NCR53C94) SCSI */
  38. #define KN03_IO_INR_LANCE 8 /* LANCE (Am7990) Ethernet */
  39. #define KN03_IO_INR_SCC1 7 /* SCC (Z85C30) serial #1 */
  40. #define KN03_IO_INR_SCC0 6 /* SCC (Z85C30) serial #0 */
  41. #define KN03_IO_INR_RTC 5 /* DS1287 RTC */
  42. #define KN03_IO_INR_PSU 4 /* power supply unit warning */
  43. #define KN03_IO_INR_RES_3 3 /* unused */
  44. #define KN03_IO_INR_ASC_DATA 2 /* SCSI data ready (for PIO) */
  45. #define KN03_IO_INR_PBNC 1 /* ~HALT button debouncer */
  46. #define KN03_IO_INR_PBNO 0 /* HALT button debouncer */
  47. /*
  48. * Memory Control Register bits.
  49. */
  50. #define KN03_MCR_RES_16 (0xffff<<16) /* unused */
  51. #define KN03_MCR_DIAGCHK (1<<15) /* diagn/norml ECC reads */
  52. #define KN03_MCR_DIAGGEN (1<<14) /* diagn/norml ECC writes */
  53. #define KN03_MCR_CORRECT (1<<13) /* ECC correct/check */
  54. #define KN03_MCR_RES_11 (0x3<<12) /* unused */
  55. #define KN03_MCR_BNK32M (1<<10) /* 32M/8M stride */
  56. #define KN03_MCR_RES_7 (0x7<<7) /* unused */
  57. #define KN03_MCR_CHECK (0x7f<<0) /* diagnostic check bits */
  58. /*
  59. * I/O ASIC System Support Register bits.
  60. */
  61. #define KN03_IO_SSR_TXDIS1 (1<<14) /* SCC1 transmit disable */
  62. #define KN03_IO_SSR_TXDIS0 (1<<13) /* SCC0 transmit disable */
  63. #define KN03_IO_SSR_RES_12 (1<<12) /* unused */
  64. #define KN03_IO_SSR_LEDS (0xff<<0) /* ~diagnostic LEDs */
  65. #endif /* __ASM_MIPS_DEC_KN03_H */