irq.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_ARC_IRQ_H
  9. #define __ASM_ARC_IRQ_H
  10. #define NR_CPU_IRQS 32 /* number of interrupt lines of ARC770 CPU */
  11. #define NR_IRQS 128 /* allow some CPU external IRQ handling */
  12. /* Platform Independent IRQs */
  13. #ifdef CONFIG_ISA_ARCOMPACT
  14. #define TIMER0_IRQ 3
  15. #define TIMER1_IRQ 4
  16. #define IPI_IRQ (NR_CPU_IRQS-1) /* dummy to enable SMP build for up hardware */
  17. #else
  18. #define TIMER0_IRQ 16
  19. #define TIMER1_IRQ 17
  20. #define IPI_IRQ 19
  21. #endif
  22. #include <linux/interrupt.h>
  23. #include <asm-generic/irq.h>
  24. extern void arc_init_IRQ(void);
  25. void arc_local_timer_setup(void);
  26. void arc_request_percpu_irq(int irq, int cpu,
  27. irqreturn_t (*isr)(int irq, void *dev),
  28. const char *irq_nm, void *percpu_dev);
  29. #endif