iop321-irqs.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. * linux/include/asm-arm/arch-iop3xx/irqs.h
  3. *
  4. * Author: Rory Bolt <rorybolt@pacbell.net>
  5. * Copyright: (C) 2002 Rory Bolt
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. */
  12. #ifndef _IOP321_IRQS_H_
  13. #define _IOP321_IRQS_H_
  14. /*
  15. * IOP80321 chipset interrupts
  16. */
  17. #define IOP321_IRQ_OFS 0
  18. #define IOP321_IRQ(x) (IOP321_IRQ_OFS + (x))
  19. /*
  20. * On IRQ or FIQ register
  21. */
  22. #define IRQ_IOP321_DMA0_EOT IOP321_IRQ(0)
  23. #define IRQ_IOP321_DMA0_EOC IOP321_IRQ(1)
  24. #define IRQ_IOP321_DMA1_EOT IOP321_IRQ(2)
  25. #define IRQ_IOP321_DMA1_EOC IOP321_IRQ(3)
  26. #define IRQ_IOP321_RSVD_4 IOP321_IRQ(4)
  27. #define IRQ_IOP321_RSVD_5 IOP321_IRQ(5)
  28. #define IRQ_IOP321_AA_EOT IOP321_IRQ(6)
  29. #define IRQ_IOP321_AA_EOC IOP321_IRQ(7)
  30. #define IRQ_IOP321_CORE_PMON IOP321_IRQ(8)
  31. #define IRQ_IOP321_TIMER0 IOP321_IRQ(9)
  32. #define IRQ_IOP321_TIMER1 IOP321_IRQ(10)
  33. #define IRQ_IOP321_I2C_0 IOP321_IRQ(11)
  34. #define IRQ_IOP321_I2C_1 IOP321_IRQ(12)
  35. #define IRQ_IOP321_MESSAGING IOP321_IRQ(13)
  36. #define IRQ_IOP321_ATU_BIST IOP321_IRQ(14)
  37. #define IRQ_IOP321_PERFMON IOP321_IRQ(15)
  38. #define IRQ_IOP321_CORE_PMU IOP321_IRQ(16)
  39. #define IRQ_IOP321_BIU_ERR IOP321_IRQ(17)
  40. #define IRQ_IOP321_ATU_ERR IOP321_IRQ(18)
  41. #define IRQ_IOP321_MCU_ERR IOP321_IRQ(19)
  42. #define IRQ_IOP321_DMA0_ERR IOP321_IRQ(20)
  43. #define IRQ_IOP321_DMA1_ERR IOP321_IRQ(21)
  44. #define IRQ_IOP321_RSVD_22 IOP321_IRQ(22)
  45. #define IRQ_IOP321_AA_ERR IOP321_IRQ(23)
  46. #define IRQ_IOP321_MSG_ERR IOP321_IRQ(24)
  47. #define IRQ_IOP321_SSP IOP321_IRQ(25)
  48. #define IRQ_IOP321_RSVD_26 IOP321_IRQ(26)
  49. #define IRQ_IOP321_XINT0 IOP321_IRQ(27)
  50. #define IRQ_IOP321_XINT1 IOP321_IRQ(28)
  51. #define IRQ_IOP321_XINT2 IOP321_IRQ(29)
  52. #define IRQ_IOP321_XINT3 IOP321_IRQ(30)
  53. #define IRQ_IOP321_HPI IOP321_IRQ(31)
  54. #define NR_IOP321_IRQS (IOP321_IRQ(31) + 1)
  55. #define NR_IRQS NR_IOP321_IRQS
  56. /*
  57. * Interrupts available on the IQ80321 board
  58. */
  59. /*
  60. * On board devices
  61. */
  62. #define IRQ_IQ80321_I82544 IRQ_IOP321_XINT0
  63. #define IRQ_IQ80321_UART IRQ_IOP321_XINT1
  64. /*
  65. * PCI interrupts
  66. */
  67. #define IRQ_IQ80321_INTA IRQ_IOP321_XINT0
  68. #define IRQ_IQ80321_INTB IRQ_IOP321_XINT1
  69. #define IRQ_IQ80321_INTC IRQ_IOP321_XINT2
  70. #define IRQ_IQ80321_INTD IRQ_IOP321_XINT3
  71. /*
  72. * Interrupts on the IQ31244 board
  73. */
  74. /*
  75. * On board devices
  76. */
  77. #define IRQ_IQ31244_UART IRQ_IOP321_XINT1
  78. #define IRQ_IQ31244_I82546 IRQ_IOP321_XINT0
  79. #define IRQ_IQ31244_SATA IRQ_IOP321_XINT2
  80. #define IRQ_IQ31244_PCIX_SLOT IRQ_IOP321_XINT3
  81. /*
  82. * PCI interrupts
  83. */
  84. #define IRQ_IQ31244_INTA IRQ_IOP321_XINT0
  85. #define IRQ_IQ31244_INTB IRQ_IOP321_XINT1
  86. #define IRQ_IQ31244_INTC IRQ_IOP321_XINT2
  87. #define IRQ_IQ31244_INTD IRQ_IOP321_XINT3
  88. #endif // _IOP321_IRQ_H_