/arch/arm/mach-ns9xxx/include/mach/irqs.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase · C++ Header · 86 lines · 62 code · 7 blank · 17 comment · 0 complexity · 7aa0a73201350d244111692b8327c9d0 MD5 · raw file

  1. /*
  2. * arch/arm/mach-ns9xxx/include/mach/irqs.h
  3. *
  4. * Copyright (C) 2006,2007 by Digi International Inc.
  5. * All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. */
  11. #ifndef __ASM_ARCH_IRQS_H
  12. #define __ASM_ARCH_IRQS_H
  13. /* NetSilicon 9360 */
  14. #define IRQ_NS9XXX_WATCHDOG 0
  15. #define IRQ_NS9XXX_AHBBUSERR 1
  16. #define IRQ_NS9360_BBUSAGG 2
  17. /* irq 3 is reserved for NS9360 */
  18. #define IRQ_NS9XXX_ETHRX 4
  19. #define IRQ_NS9XXX_ETHTX 5
  20. #define IRQ_NS9XXX_ETHPHY 6
  21. #define IRQ_NS9360_LCD 7
  22. #define IRQ_NS9360_SERBRX 8
  23. #define IRQ_NS9360_SERBTX 9
  24. #define IRQ_NS9360_SERARX 10
  25. #define IRQ_NS9360_SERATX 11
  26. #define IRQ_NS9360_SERCRX 12
  27. #define IRQ_NS9360_SERCTX 13
  28. #define IRQ_NS9360_I2C 14
  29. #define IRQ_NS9360_BBUSDMA 15
  30. #define IRQ_NS9360_TIMER0 16
  31. #define IRQ_NS9360_TIMER1 17
  32. #define IRQ_NS9360_TIMER2 18
  33. #define IRQ_NS9360_TIMER3 19
  34. #define IRQ_NS9360_TIMER4 20
  35. #define IRQ_NS9360_TIMER5 21
  36. #define IRQ_NS9360_TIMER6 22
  37. #define IRQ_NS9360_TIMER7 23
  38. #define IRQ_NS9360_RTC 24
  39. #define IRQ_NS9360_USBHOST 25
  40. #define IRQ_NS9360_USBDEVICE 26
  41. #define IRQ_NS9360_IEEE1284 27
  42. #define IRQ_NS9XXX_EXT0 28
  43. #define IRQ_NS9XXX_EXT1 29
  44. #define IRQ_NS9XXX_EXT2 30
  45. #define IRQ_NS9XXX_EXT3 31
  46. #define BBUS_IRQ(irq) (32 + irq)
  47. #define IRQ_BBUS_DMA BBUS_IRQ(0)
  48. #define IRQ_BBUS_SERBRX BBUS_IRQ(2)
  49. #define IRQ_BBUS_SERBTX BBUS_IRQ(3)
  50. #define IRQ_BBUS_SERARX BBUS_IRQ(4)
  51. #define IRQ_BBUS_SERATX BBUS_IRQ(5)
  52. #define IRQ_BBUS_SERCRX BBUS_IRQ(6)
  53. #define IRQ_BBUS_SERCTX BBUS_IRQ(7)
  54. #define IRQ_BBUS_SERDRX BBUS_IRQ(8)
  55. #define IRQ_BBUS_SERDTX BBUS_IRQ(9)
  56. #define IRQ_BBUS_I2C BBUS_IRQ(10)
  57. #define IRQ_BBUS_1284 BBUS_IRQ(11)
  58. #define IRQ_BBUS_UTIL BBUS_IRQ(12)
  59. #define IRQ_BBUS_RTC BBUS_IRQ(13)
  60. #define IRQ_BBUS_USBHST BBUS_IRQ(14)
  61. #define IRQ_BBUS_USBDEV BBUS_IRQ(15)
  62. #define IRQ_BBUS_AHBDMA1 BBUS_IRQ(24)
  63. #define IRQ_BBUS_AHBDMA2 BBUS_IRQ(25)
  64. /*
  65. * these Interrupts are specific for the a9m9750dev board.
  66. * They are generated by an FPGA that interrupts the CPU on
  67. * IRQ_NS9360_EXT2
  68. */
  69. #define FPGA_IRQ(irq) (64 + irq)
  70. #define IRQ_FPGA_UARTA FPGA_IRQ(0)
  71. #define IRQ_FPGA_UARTB FPGA_IRQ(1)
  72. #define IRQ_FPGA_UARTC FPGA_IRQ(2)
  73. #define IRQ_FPGA_UARTD FPGA_IRQ(3)
  74. #define IRQ_FPGA_TOUCH FPGA_IRQ(4)
  75. #define IRQ_FPGA_CF FPGA_IRQ(5)
  76. #define IRQ_FPGA_CAN0 FPGA_IRQ(6)
  77. #define IRQ_FPGA_CAN1 FPGA_IRQ(7)
  78. #define NR_IRQS 72
  79. #endif /* __ASM_ARCH_IRQS_H */