irq.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Cobalt IRQ 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 Cobalt Microserver
  9. * Copyright (C) 1997, 2003 Ralf Baechle
  10. * Copyright (C) 2001-2003 Liam Davies (ldavies@agile.tv)
  11. * Copyright (C) 2007 Yoichi Yuasa <yuasa@linux-mips.org>
  12. */
  13. #ifndef _ASM_COBALT_IRQ_H
  14. #define _ASM_COBALT_IRQ_H
  15. /*
  16. * i8259 interrupts used on Cobalt:
  17. *
  18. * 8 - RTC
  19. * 9 - PCI slot
  20. * 14 - IDE0
  21. * 15 - IDE1(no connector on board)
  22. */
  23. #define I8259A_IRQ_BASE 0
  24. #define PCISLOT_IRQ (I8259A_IRQ_BASE + 9)
  25. /*
  26. * CPU interrupts used on Cobalt:
  27. *
  28. * 0 - Software interrupt 0 (unused)
  29. * 1 - Software interrupt 0 (unused)
  30. * 2 - cascade GT64111
  31. * 3 - ethernet or SCSI host controller
  32. * 4 - ethernet
  33. * 5 - 16550 UART
  34. * 6 - cascade i8259
  35. * 7 - CP0 counter
  36. */
  37. #define MIPS_CPU_IRQ_BASE 16
  38. #define GT641XX_CASCADE_IRQ (MIPS_CPU_IRQ_BASE + 2)
  39. #define RAQ2_SCSI_IRQ (MIPS_CPU_IRQ_BASE + 3)
  40. #define ETH0_IRQ (MIPS_CPU_IRQ_BASE + 3)
  41. #define QUBE1_ETH0_IRQ (MIPS_CPU_IRQ_BASE + 4)
  42. #define ETH1_IRQ (MIPS_CPU_IRQ_BASE + 4)
  43. #define SERIAL_IRQ (MIPS_CPU_IRQ_BASE + 5)
  44. #define SCSI_IRQ (MIPS_CPU_IRQ_BASE + 5)
  45. #define I8259_CASCADE_IRQ (MIPS_CPU_IRQ_BASE + 6)
  46. #define GT641XX_IRQ_BASE 24
  47. #include <asm/irq_gt641xx.h>
  48. #define NR_IRQS (GT641XX_PCI_INT3_IRQ + 1)
  49. #endif /* _ASM_COBALT_IRQ_H */