sysirq.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * linux/include/asm-arm/arch-arc/irqs.h
  3. *
  4. * Copyright (C) 1996 Russell King, Dave Gilbert
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Modifications:
  11. * 04-04-1998 PJB Merged arc and a5k versions
  12. */
  13. #include <linux/config.h>
  14. #if defined(CONFIG_ARCH_A5K)
  15. #define IRQ_PRINTER 0
  16. #define IRQ_BATLOW 1
  17. #define IRQ_FLOPPYINDEX 2
  18. #define IRQ_FLOPPYDISK 12
  19. #elif defined(CONFIG_ARCH_ARC)
  20. #define IRQ_PRINTERBUSY 0
  21. #define IRQ_SERIALRING 1
  22. #define IRQ_PRINTERACK 2
  23. #define IRQ_FLOPPYCHANGED 12
  24. #endif
  25. #define IRQ_VSYNCPULSE 3
  26. #define IRQ_POWERON 4
  27. #define IRQ_TIMER0 5
  28. #define IRQ_TIMER1 6
  29. #define IRQ_IMMEDIATE 7
  30. #define IRQ_EXPCARDFIQ 8
  31. #define IRQ_SOUNDCHANGE 9
  32. #define IRQ_SERIALPORT 10
  33. #define IRQ_HARDDISK 11
  34. #define IRQ_EXPANSIONCARD 13
  35. #define IRQ_KEYBOARDTX 14
  36. #define IRQ_KEYBOARDRX 15
  37. #if defined(CONFIG_ARCH_A5K)
  38. #define FIQ_SERIALPORT 4
  39. #elif defined(CONFIG_ARCH_ARC)
  40. #define FIQ_FLOPPYIRQ 1
  41. #define FIQ_FD1772 FIQ_FLOPPYIRQ
  42. #endif
  43. #define FIQ_FLOPPYDATA 0
  44. #define FIQ_ECONET 2
  45. #define FIQ_EXPANSIONCARD 6
  46. #define FIQ_FORCE 7
  47. #define IRQ_TIMER IRQ_TIMER0
  48. /*
  49. * This is the offset of the FIQ "IRQ" numbers
  50. */
  51. #define FIQ_START 64
  52. #define irq_cannonicalize(i) (i)