Commit | Line | Data |
---|---|---|
d2912cb1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
bacdf480 VG |
2 | /* |
3 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | |
bacdf480 VG |
4 | */ |
5 | ||
6 | #ifndef __ASM_ARC_IRQ_H | |
7 | #define __ASM_ARC_IRQ_H | |
8 | ||
f33b8cdd YK |
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. | |
ebfc2fd8 | 13 | * This doesn't affect ARCompact, but we change it to same value |
f33b8cdd YK |
14 | */ |
15 | #define NR_IRQS 512 | |
decae9d3 | 16 | |
88555cc5 VG |
17 | /* Platform Independent IRQs */ |
18 | #ifdef CONFIG_ISA_ARCV2 | |
19 | #define IPI_IRQ 19 | |
20 | #define SOFTIRQ_IRQ 21 | |
179cf194 | 21 | #define FIRST_EXT_IRQ 24 |
88555cc5 VG |
22 | #endif |
23 | ||
2b75c0f9 | 24 | #include <linux/interrupt.h> |
bacdf480 VG |
25 | #include <asm-generic/irq.h> |
26 | ||
ef3a661a | 27 | extern void arc_init_IRQ(void); |
4d369680 | 28 | extern void arch_do_IRQ(unsigned int, struct pt_regs *); |
d8005e6b | 29 | |
bacdf480 | 30 | #endif |