Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 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 | |
| 9 | #ifndef __ASM_ARC_IRQ_H |
| 10 | #define __ASM_ARC_IRQ_H |
| 11 | |
Christian Ruppert | a37cdac | 2013-04-11 15:19:39 +0200 | [diff] [blame] | 12 | #define NR_CPU_IRQS 32 /* number of interrupt lines of ARC770 CPU */ |
| 13 | #define NR_IRQS 128 /* allow some CPU external IRQ handling */ |
Vineet Gupta | decae9d | 2013-01-18 15:12:26 +0530 | [diff] [blame] | 14 | |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 15 | /* Platform Independent IRQs */ |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 16 | #ifdef CONFIG_ISA_ARCOMPACT |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 17 | #define TIMER0_IRQ 3 |
| 18 | #define TIMER1_IRQ 4 |
Vineet Gupta | e0868e6 | 2015-10-12 14:58:54 +0530 | [diff] [blame] | 19 | #define IPI_IRQ (NR_CPU_IRQS-1) /* dummy to enable SMP build for up hardware */ |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 20 | #else |
| 21 | #define TIMER0_IRQ 16 |
| 22 | #define TIMER1_IRQ 17 |
Vineet Gupta | 82fea5a | 2014-09-10 19:05:38 +0530 | [diff] [blame] | 23 | #define IPI_IRQ 19 |
Vineet Gupta | 1f6ccff | 2013-05-13 18:30:41 +0530 | [diff] [blame] | 24 | #endif |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 25 | |
Vineet Gupta | 2b75c0f | 2014-05-07 15:25:10 +0530 | [diff] [blame] | 26 | #include <linux/interrupt.h> |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 27 | #include <asm-generic/irq.h> |
| 28 | |
Chen Gang | ef3a661 | 2013-10-23 10:12:05 +0800 | [diff] [blame] | 29 | extern void arc_init_IRQ(void); |
Vineet Gupta | 2d4899f | 2014-05-08 14:06:38 +0530 | [diff] [blame] | 30 | void arc_local_timer_setup(void); |
Vineet Gupta | 2b75c0f | 2014-05-07 15:25:10 +0530 | [diff] [blame] | 31 | void arc_request_percpu_irq(int irq, int cpu, |
| 32 | irqreturn_t (*isr)(int irq, void *dev), |
| 33 | const char *irq_nm, void *percpu_dev); |
Vineet Gupta | d8005e6 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 34 | |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 35 | #endif |