blob: 4fd7d62a6e30aa513b9e04f6ee881c219b96da96 [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
Christian Rupperta37cdac2013-04-11 15:19:39 +020012#define NR_CPU_IRQS 32 /* number of interrupt lines of ARC770 CPU */
13#define NR_IRQS 128 /* allow some CPU external IRQ handling */
Vineet Guptadecae9d2013-01-18 15:12:26 +053014
Vineet Guptabacdf482013-01-18 15:12:18 +053015/* Platform Independent IRQs */
Vineet Gupta1f6ccff2013-05-13 18:30:41 +053016#ifdef CONFIG_ISA_ARCOMPACT
Vineet Guptabacdf482013-01-18 15:12:18 +053017#define TIMER0_IRQ 3
18#define TIMER1_IRQ 4
Vineet Guptae0868e62015-10-12 14:58:54 +053019#define IPI_IRQ (NR_CPU_IRQS-1) /* dummy to enable SMP build for up hardware */
Vineet Gupta1f6ccff2013-05-13 18:30:41 +053020#else
21#define TIMER0_IRQ 16
22#define TIMER1_IRQ 17
Vineet Gupta82fea5a2014-09-10 19:05:38 +053023#define IPI_IRQ 19
Vineet Gupta1f6ccff2013-05-13 18:30:41 +053024#endif
Vineet Guptabacdf482013-01-18 15:12:18 +053025
Vineet Gupta2b75c0f2014-05-07 15:25:10 +053026#include <linux/interrupt.h>
Vineet Guptabacdf482013-01-18 15:12:18 +053027#include <asm-generic/irq.h>
28
Chen Gangef3a6612013-10-23 10:12:05 +080029extern void arc_init_IRQ(void);
Vineet Gupta2d4899f2014-05-08 14:06:38 +053030void arc_local_timer_setup(void);
Vineet Gupta2b75c0f2014-05-07 15:25:10 +053031void arc_request_percpu_irq(int irq, int cpu,
32 irqreturn_t (*isr)(int irq, void *dev),
33 const char *irq_nm, void *percpu_dev);
Vineet Guptad8005e62013-01-18 15:12:18 +053034
Vineet Guptabacdf482013-01-18 15:12:18 +053035#endif