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 | |
Yuriy Kolerov | f33b8cd | 2017-01-31 14:45:22 +0300 | [diff] [blame] | 12 | /* |
| 13 | * ARCv2 can support 240 interrupts in the core interrupts controllers and |
| 14 | * 128 interrupts in IDU. Thus 512 virtual IRQs must be enough for most |
| 15 | * configurations of boards. |
| 16 | * This doesnt affect ARCompact, but we change it to same value |
| 17 | */ |
| 18 | #define NR_IRQS 512 |
Vineet Gupta | decae9d | 2013-01-18 15:12:26 +0530 | [diff] [blame] | 19 | |
Vineet Gupta | 88555cc | 2016-03-30 18:35:28 +0530 | [diff] [blame] | 20 | /* Platform Independent IRQs */ |
| 21 | #ifdef CONFIG_ISA_ARCV2 |
| 22 | #define IPI_IRQ 19 |
| 23 | #define SOFTIRQ_IRQ 21 |
Vineet Gupta | 179cf19 | 2017-02-01 09:44:33 -0800 | [diff] [blame] | 24 | #define FIRST_EXT_IRQ 24 |
Vineet Gupta | 88555cc | 2016-03-30 18:35:28 +0530 | [diff] [blame] | 25 | #endif |
| 26 | |
Vineet Gupta | 2b75c0f | 2014-05-07 15:25:10 +0530 | [diff] [blame] | 27 | #include <linux/interrupt.h> |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 28 | #include <asm-generic/irq.h> |
| 29 | |
Chen Gang | ef3a661 | 2013-10-23 10:12:05 +0800 | [diff] [blame] | 30 | extern void arc_init_IRQ(void); |
Vineet Gupta | d8005e6 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 31 | |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 32 | #endif |