cpu-irqs.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* cpu-irqs.h: on-CPU peripheral irqs
  2. *
  3. * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_CPU_IRQS_H
  12. #define _ASM_CPU_IRQS_H
  13. #ifndef __ASSEMBLY__
  14. /* IRQ to level mappings */
  15. #define IRQ_GDBSTUB_LEVEL 15
  16. #define IRQ_UART_LEVEL 13
  17. #ifdef CONFIG_GDBSTUB_UART0
  18. #define IRQ_UART0_LEVEL IRQ_GDBSTUB_LEVEL
  19. #else
  20. #define IRQ_UART0_LEVEL IRQ_UART_LEVEL
  21. #endif
  22. #ifdef CONFIG_GDBSTUB_UART1
  23. #define IRQ_UART1_LEVEL IRQ_GDBSTUB_LEVEL
  24. #else
  25. #define IRQ_UART1_LEVEL IRQ_UART_LEVEL
  26. #endif
  27. #define IRQ_DMA0_LEVEL 14
  28. #define IRQ_DMA1_LEVEL 14
  29. #define IRQ_DMA2_LEVEL 14
  30. #define IRQ_DMA3_LEVEL 14
  31. #define IRQ_DMA4_LEVEL 14
  32. #define IRQ_DMA5_LEVEL 14
  33. #define IRQ_DMA6_LEVEL 14
  34. #define IRQ_DMA7_LEVEL 14
  35. #define IRQ_TIMER0_LEVEL 12
  36. #define IRQ_TIMER1_LEVEL 11
  37. #define IRQ_TIMER2_LEVEL 10
  38. #define IRQ_XIRQ0_LEVEL 1
  39. #define IRQ_XIRQ1_LEVEL 2
  40. #define IRQ_XIRQ2_LEVEL 3
  41. #define IRQ_XIRQ3_LEVEL 4
  42. #define IRQ_XIRQ4_LEVEL 5
  43. #define IRQ_XIRQ5_LEVEL 6
  44. #define IRQ_XIRQ6_LEVEL 7
  45. #define IRQ_XIRQ7_LEVEL 8
  46. /* IRQ IDs presented to drivers */
  47. #define IRQ_CPU__UNUSED IRQ_BASE_CPU
  48. #define IRQ_CPU_UART0 (IRQ_BASE_CPU + IRQ_UART0_LEVEL)
  49. #define IRQ_CPU_UART1 (IRQ_BASE_CPU + IRQ_UART1_LEVEL)
  50. #define IRQ_CPU_TIMER0 (IRQ_BASE_CPU + IRQ_TIMER0_LEVEL)
  51. #define IRQ_CPU_TIMER1 (IRQ_BASE_CPU + IRQ_TIMER1_LEVEL)
  52. #define IRQ_CPU_TIMER2 (IRQ_BASE_CPU + IRQ_TIMER2_LEVEL)
  53. #define IRQ_CPU_DMA0 (IRQ_BASE_CPU + IRQ_DMA0_LEVEL)
  54. #define IRQ_CPU_DMA1 (IRQ_BASE_CPU + IRQ_DMA1_LEVEL)
  55. #define IRQ_CPU_DMA2 (IRQ_BASE_CPU + IRQ_DMA2_LEVEL)
  56. #define IRQ_CPU_DMA3 (IRQ_BASE_CPU + IRQ_DMA3_LEVEL)
  57. #define IRQ_CPU_DMA4 (IRQ_BASE_CPU + IRQ_DMA4_LEVEL)
  58. #define IRQ_CPU_DMA5 (IRQ_BASE_CPU + IRQ_DMA5_LEVEL)
  59. #define IRQ_CPU_DMA6 (IRQ_BASE_CPU + IRQ_DMA6_LEVEL)
  60. #define IRQ_CPU_DMA7 (IRQ_BASE_CPU + IRQ_DMA7_LEVEL)
  61. #define IRQ_CPU_EXTERNAL0 (IRQ_BASE_CPU + IRQ_XIRQ0_LEVEL)
  62. #define IRQ_CPU_EXTERNAL1 (IRQ_BASE_CPU + IRQ_XIRQ1_LEVEL)
  63. #define IRQ_CPU_EXTERNAL2 (IRQ_BASE_CPU + IRQ_XIRQ2_LEVEL)
  64. #define IRQ_CPU_EXTERNAL3 (IRQ_BASE_CPU + IRQ_XIRQ3_LEVEL)
  65. #define IRQ_CPU_EXTERNAL4 (IRQ_BASE_CPU + IRQ_XIRQ4_LEVEL)
  66. #define IRQ_CPU_EXTERNAL5 (IRQ_BASE_CPU + IRQ_XIRQ5_LEVEL)
  67. #define IRQ_CPU_EXTERNAL6 (IRQ_BASE_CPU + IRQ_XIRQ6_LEVEL)
  68. #define IRQ_CPU_EXTERNAL7 (IRQ_BASE_CPU + IRQ_XIRQ7_LEVEL)
  69. #endif /* !__ASSEMBLY__ */
  70. #endif /* _ASM_CPU_IRQS_H */