irqs.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * linux/include/asm-arm/arch-iop32x/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 _IRQS_H_
  13. #define _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_IRQS (IOP321_IRQ(31) + 1)
  55. /*
  56. * Interrupts available on the IQ80321 board
  57. */
  58. /*
  59. * On board devices
  60. */
  61. #define IRQ_IQ80321_I82544 IRQ_IOP321_XINT0
  62. #define IRQ_IQ80321_UART IRQ_IOP321_XINT1
  63. /*
  64. * PCI interrupts
  65. */
  66. #define IRQ_IQ80321_INTA IRQ_IOP321_XINT0
  67. #define IRQ_IQ80321_INTB IRQ_IOP321_XINT1
  68. #define IRQ_IQ80321_INTC IRQ_IOP321_XINT2
  69. #define IRQ_IQ80321_INTD IRQ_IOP321_XINT3
  70. /*
  71. * Interrupts on the IQ31244 board
  72. */
  73. /*
  74. * On board devices
  75. */
  76. #define IRQ_IQ31244_UART IRQ_IOP321_XINT1
  77. #define IRQ_IQ31244_I82546 IRQ_IOP321_XINT0
  78. #define IRQ_IQ31244_SATA IRQ_IOP321_XINT2
  79. #define IRQ_IQ31244_PCIX_SLOT IRQ_IOP321_XINT3
  80. /*
  81. * PCI interrupts
  82. */
  83. #define IRQ_IQ31244_INTA IRQ_IOP321_XINT0
  84. #define IRQ_IQ31244_INTB IRQ_IOP321_XINT1
  85. #define IRQ_IQ31244_INTC IRQ_IOP321_XINT2
  86. #define IRQ_IQ31244_INTD IRQ_IOP321_XINT3
  87. #endif // _IRQ_H_