blob: 0309cb405cfb17139f9eae4050f71360335550f6 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Vineet Guptabacdf482013-01-18 15:12:18 +05302/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
Vineet Guptabacdf482013-01-18 15:12:18 +05304 */
5
6#ifndef __ASM_ARC_IRQ_H
7#define __ASM_ARC_IRQ_H
8
Yuriy Kolerovf33b8cd2017-01-31 14:45:22 +03009/*
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 Guptadecae9d2013-01-18 15:12:26 +053016
Vineet Gupta88555cc2016-03-30 18:35:28 +053017/* Platform Independent IRQs */
18#ifdef CONFIG_ISA_ARCV2
19#define IPI_IRQ 19
20#define SOFTIRQ_IRQ 21
Vineet Gupta179cf192017-02-01 09:44:33 -080021#define FIRST_EXT_IRQ 24
Vineet Gupta88555cc2016-03-30 18:35:28 +053022#endif
23
Vineet Gupta2b75c0f2014-05-07 15:25:10 +053024#include <linux/interrupt.h>
Vineet Guptabacdf482013-01-18 15:12:18 +053025#include <asm-generic/irq.h>
26
Chen Gangef3a6612013-10-23 10:12:05 +080027extern void arc_init_IRQ(void);
Vineet Guptad8005e62013-01-18 15:12:18 +053028
Vineet Guptabacdf482013-01-18 15:12:18 +053029#endif