Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_ARC_IRQ_H |
| 7 | #define __ASM_ARC_IRQ_H |
| 8 | |
Yuriy Kolerov | f33b8cd | 2017-01-31 14:45:22 +0300 | [diff] [blame] | 9 | /* |
| 10 | * ARCv2 can support 240 interrupts in the core interrupts controllers and |
| 11 | * 128 interrupts in IDU. Thus 512 virtual IRQs must be enough for most |
| 12 | * configurations of boards. |
| 13 | * This doesnt affect ARCompact, but we change it to same value |
| 14 | */ |
| 15 | #define NR_IRQS 512 |
Vineet Gupta | decae9d | 2013-01-18 15:12:26 +0530 | [diff] [blame] | 16 | |
Vineet Gupta | 88555cc | 2016-03-30 18:35:28 +0530 | [diff] [blame] | 17 | /* Platform Independent IRQs */ |
| 18 | #ifdef CONFIG_ISA_ARCV2 |
| 19 | #define IPI_IRQ 19 |
| 20 | #define SOFTIRQ_IRQ 21 |
Vineet Gupta | 179cf19 | 2017-02-01 09:44:33 -0800 | [diff] [blame] | 21 | #define FIRST_EXT_IRQ 24 |
Vineet Gupta | 88555cc | 2016-03-30 18:35:28 +0530 | [diff] [blame] | 22 | #endif |
| 23 | |
Vineet Gupta | 2b75c0f | 2014-05-07 15:25:10 +0530 | [diff] [blame] | 24 | #include <linux/interrupt.h> |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 25 | #include <asm-generic/irq.h> |
| 26 | |
Chen Gang | ef3a661 | 2013-10-23 10:12:05 +0800 | [diff] [blame] | 27 | extern void arc_init_IRQ(void); |
Vineet Gupta | d8005e6 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 28 | |
Vineet Gupta | bacdf48 | 2013-01-18 15:12:18 +0530 | [diff] [blame] | 29 | #endif |