irq.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * include/asm-mips/vr41xx/irq.h
  3. *
  4. * Interrupt numbers for NEC VR4100 series.
  5. *
  6. * Copyright (C) 1999 Michael Klar
  7. * Copyright (C) 2001, 2002 Paul Mundt
  8. * Copyright (C) 2002 MontaVista Software, Inc.
  9. * Copyright (C) 2002 TimeSys Corp.
  10. * Copyright (C) 2003-2006 Yoichi Yuasa <yuasa@linux-mips.org>
  11. *
  12. * This program is free software; you can redistribute it and/or modify it
  13. * under the terms of the GNU General Public License as published by the
  14. * Free Software Foundation; either version 2 of the License, or (at your
  15. * option) any later version.
  16. */
  17. #ifndef __NEC_VR41XX_IRQ_H
  18. #define __NEC_VR41XX_IRQ_H
  19. /*
  20. * CPU core Interrupt Numbers
  21. */
  22. #define MIPS_CPU_IRQ_BASE 0
  23. #define MIPS_CPU_IRQ(x) (MIPS_CPU_IRQ_BASE + (x))
  24. #define MIPS_SOFTINT0_IRQ MIPS_CPU_IRQ(0)
  25. #define MIPS_SOFTINT1_IRQ MIPS_CPU_IRQ(1)
  26. #define INT0_IRQ MIPS_CPU_IRQ(2)
  27. #define INT1_IRQ MIPS_CPU_IRQ(3)
  28. #define INT2_IRQ MIPS_CPU_IRQ(4)
  29. #define INT3_IRQ MIPS_CPU_IRQ(5)
  30. #define INT4_IRQ MIPS_CPU_IRQ(6)
  31. #define TIMER_IRQ MIPS_CPU_IRQ(7)
  32. /*
  33. * SYINT1 Interrupt Numbers
  34. */
  35. #define SYSINT1_IRQ_BASE 8
  36. #define SYSINT1_IRQ(x) (SYSINT1_IRQ_BASE + (x))
  37. #define BATTRY_IRQ SYSINT1_IRQ(0)
  38. #define POWER_IRQ SYSINT1_IRQ(1)
  39. #define RTCLONG1_IRQ SYSINT1_IRQ(2)
  40. #define ELAPSEDTIME_IRQ SYSINT1_IRQ(3)
  41. /* RFU */
  42. #define PIU_IRQ SYSINT1_IRQ(5)
  43. #define AIU_IRQ SYSINT1_IRQ(6)
  44. #define KIU_IRQ SYSINT1_IRQ(7)
  45. #define GIUINT_IRQ SYSINT1_IRQ(8)
  46. #define SIU_IRQ SYSINT1_IRQ(9)
  47. #define BUSERR_IRQ SYSINT1_IRQ(10)
  48. #define SOFTINT_IRQ SYSINT1_IRQ(11)
  49. #define CLKRUN_IRQ SYSINT1_IRQ(12)
  50. #define DOZEPIU_IRQ SYSINT1_IRQ(13)
  51. #define SYSINT1_IRQ_LAST DOZEPIU_IRQ
  52. /*
  53. * SYSINT2 Interrupt Numbers
  54. */
  55. #define SYSINT2_IRQ_BASE 24
  56. #define SYSINT2_IRQ(x) (SYSINT2_IRQ_BASE + (x))
  57. #define RTCLONG2_IRQ SYSINT2_IRQ(0)
  58. #define LED_IRQ SYSINT2_IRQ(1)
  59. #define HSP_IRQ SYSINT2_IRQ(2)
  60. #define TCLOCK_IRQ SYSINT2_IRQ(3)
  61. #define FIR_IRQ SYSINT2_IRQ(4)
  62. #define CEU_IRQ SYSINT2_IRQ(4) /* same number as FIR_IRQ */
  63. #define DSIU_IRQ SYSINT2_IRQ(5)
  64. #define PCI_IRQ SYSINT2_IRQ(6)
  65. #define SCU_IRQ SYSINT2_IRQ(7)
  66. #define CSI_IRQ SYSINT2_IRQ(8)
  67. #define BCU_IRQ SYSINT2_IRQ(9)
  68. #define ETHERNET_IRQ SYSINT2_IRQ(10)
  69. #define SYSINT2_IRQ_LAST ETHERNET_IRQ
  70. /*
  71. * GIU Interrupt Numbers
  72. */
  73. #define GIU_IRQ_BASE 40
  74. #define GIU_IRQ(x) (GIU_IRQ_BASE + (x)) /* IRQ 40-71 */
  75. #define GIU_IRQ_LAST GIU_IRQ(31)
  76. /*
  77. * VRC4173 Interrupt Numbers
  78. */
  79. #define VRC4173_IRQ_BASE 72
  80. #define VRC4173_IRQ(x) (VRC4173_IRQ_BASE + (x))
  81. #define VRC4173_USB_IRQ VRC4173_IRQ(0)
  82. #define VRC4173_PCMCIA2_IRQ VRC4173_IRQ(1)
  83. #define VRC4173_PCMCIA1_IRQ VRC4173_IRQ(2)
  84. #define VRC4173_PS2CH2_IRQ VRC4173_IRQ(3)
  85. #define VRC4173_PS2CH1_IRQ VRC4173_IRQ(4)
  86. #define VRC4173_PIU_IRQ VRC4173_IRQ(5)
  87. #define VRC4173_AIU_IRQ VRC4173_IRQ(6)
  88. #define VRC4173_KIU_IRQ VRC4173_IRQ(7)
  89. #define VRC4173_GIU_IRQ VRC4173_IRQ(8)
  90. #define VRC4173_AC97_IRQ VRC4173_IRQ(9)
  91. #define VRC4173_AC97INT1_IRQ VRC4173_IRQ(10)
  92. /* RFU */
  93. #define VRC4173_DOZEPIU_IRQ VRC4173_IRQ(13)
  94. #define VRC4173_IRQ_LAST VRC4173_DOZEPIU_IRQ
  95. #endif /* __NEC_VR41XX_IRQ_H */