blob: 0618b1ce707cbdf184b23eeb2d4ba669e264bd5f [file] [log] [blame]
Vineet Guptabacdf482013-01-18 15:12:18 +05301/*
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 Kolerovf33b8cd2017-01-31 14:45:22 +030012/*
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 Guptadecae9d2013-01-18 15:12:26 +053019
Vineet Gupta88555cc2016-03-30 18:35:28 +053020/* Platform Independent IRQs */
21#ifdef CONFIG_ISA_ARCV2
22#define IPI_IRQ 19
23#define SOFTIRQ_IRQ 21
Vineet Gupta179cf192017-02-01 09:44:33 -080024#define FIRST_EXT_IRQ 24
Vineet Gupta88555cc2016-03-30 18:35:28 +053025#endif
26
Vineet Gupta2b75c0f2014-05-07 15:25:10 +053027#include <linux/interrupt.h>
Vineet Guptabacdf482013-01-18 15:12:18 +053028#include <asm-generic/irq.h>
29
Chen Gangef3a6612013-10-23 10:12:05 +080030extern void arc_init_IRQ(void);
Vineet Guptad8005e62013-01-18 15:12:18 +053031
Vineet Guptabacdf482013-01-18 15:12:18 +053032#endif