xref: /linux/arch/mips/sgi-ip22/ip22-int.c (revision 119537c092638bf8a0672415024639353c773bb1)
11da177e4SLinus Torvalds /*
21da177e4SLinus Torvalds  * ip22-int.c: Routines for generic manipulation of the INT[23] ASIC
31da177e4SLinus Torvalds  *             found on INDY and Indigo2 workstations.
41da177e4SLinus Torvalds  *
51da177e4SLinus Torvalds  * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
61da177e4SLinus Torvalds  * Copyright (C) 1997, 1998 Ralf Baechle (ralf@gnu.org)
71da177e4SLinus Torvalds  * Copyright (C) 1999 Andrew R. Baker (andrewb@uab.edu)
81da177e4SLinus Torvalds  *                    - Indigo2 changes
91da177e4SLinus Torvalds  *                    - Interrupt handling fixes
101da177e4SLinus Torvalds  * Copyright (C) 2001, 2003 Ladislav Michl (ladis@linux-mips.org)
111da177e4SLinus Torvalds  */
121da177e4SLinus Torvalds #include <linux/types.h>
131da177e4SLinus Torvalds #include <linux/init.h>
141da177e4SLinus Torvalds #include <linux/kernel_stat.h>
151da177e4SLinus Torvalds #include <linux/signal.h>
161da177e4SLinus Torvalds #include <linux/sched.h>
171da177e4SLinus Torvalds #include <linux/interrupt.h>
181da177e4SLinus Torvalds #include <linux/irq.h>
191da177e4SLinus Torvalds 
201da177e4SLinus Torvalds #include <asm/mipsregs.h>
211da177e4SLinus Torvalds #include <asm/addrspace.h>
2297dcb82dSAtsushi Nemoto #include <asm/irq_cpu.h>
231da177e4SLinus Torvalds 
241da177e4SLinus Torvalds #include <asm/sgi/ioc.h>
251da177e4SLinus Torvalds #include <asm/sgi/hpc3.h>
261da177e4SLinus Torvalds #include <asm/sgi/ip22.h>
271da177e4SLinus Torvalds 
281da177e4SLinus Torvalds /* #define DEBUG_SGINT */
291da177e4SLinus Torvalds 
301da177e4SLinus Torvalds /* So far nothing hangs here */
311da177e4SLinus Torvalds #undef USE_LIO3_IRQ
321da177e4SLinus Torvalds 
331da177e4SLinus Torvalds struct sgint_regs *sgint;
341da177e4SLinus Torvalds 
351da177e4SLinus Torvalds static char lc0msk_to_irqnr[256];
361da177e4SLinus Torvalds static char lc1msk_to_irqnr[256];
371da177e4SLinus Torvalds static char lc2msk_to_irqnr[256];
381da177e4SLinus Torvalds static char lc3msk_to_irqnr[256];
391da177e4SLinus Torvalds 
401da177e4SLinus Torvalds extern int ip22_eisa_init(void);
411da177e4SLinus Torvalds 
421da177e4SLinus Torvalds static void enable_local0_irq(unsigned int irq)
431da177e4SLinus Torvalds {
441da177e4SLinus Torvalds 	/* don't allow mappable interrupt to be enabled from setup_irq,
451da177e4SLinus Torvalds 	 * we have our own way to do so */
461da177e4SLinus Torvalds 	if (irq != SGI_MAP_0_IRQ)
471da177e4SLinus Torvalds 		sgint->imask0 |= (1 << (irq - SGINT_LOCAL0));
481da177e4SLinus Torvalds }
491da177e4SLinus Torvalds 
501da177e4SLinus Torvalds static void disable_local0_irq(unsigned int irq)
511da177e4SLinus Torvalds {
521da177e4SLinus Torvalds 	sgint->imask0 &= ~(1 << (irq - SGINT_LOCAL0));
531da177e4SLinus Torvalds }
541da177e4SLinus Torvalds 
5594dee171SRalf Baechle static struct irq_chip ip22_local0_irq_type = {
5670d21cdeSAtsushi Nemoto 	.name		= "IP22 local 0",
571603b5acSAtsushi Nemoto 	.ack		= disable_local0_irq,
581603b5acSAtsushi Nemoto 	.mask		= disable_local0_irq,
591603b5acSAtsushi Nemoto 	.mask_ack	= disable_local0_irq,
601603b5acSAtsushi Nemoto 	.unmask		= enable_local0_irq,
611da177e4SLinus Torvalds };
621da177e4SLinus Torvalds 
631da177e4SLinus Torvalds static void enable_local1_irq(unsigned int irq)
641da177e4SLinus Torvalds {
651da177e4SLinus Torvalds 	/* don't allow mappable interrupt to be enabled from setup_irq,
661da177e4SLinus Torvalds 	 * we have our own way to do so */
671da177e4SLinus Torvalds 	if (irq != SGI_MAP_1_IRQ)
681da177e4SLinus Torvalds 		sgint->imask1 |= (1 << (irq - SGINT_LOCAL1));
691da177e4SLinus Torvalds }
701da177e4SLinus Torvalds 
711da177e4SLinus Torvalds void disable_local1_irq(unsigned int irq)
721da177e4SLinus Torvalds {
731da177e4SLinus Torvalds 	sgint->imask1 &= ~(1 << (irq - SGINT_LOCAL1));
741da177e4SLinus Torvalds }
751da177e4SLinus Torvalds 
7694dee171SRalf Baechle static struct irq_chip ip22_local1_irq_type = {
7770d21cdeSAtsushi Nemoto 	.name		= "IP22 local 1",
781603b5acSAtsushi Nemoto 	.ack		= disable_local1_irq,
791603b5acSAtsushi Nemoto 	.mask		= disable_local1_irq,
801603b5acSAtsushi Nemoto 	.mask_ack	= disable_local1_irq,
811603b5acSAtsushi Nemoto 	.unmask		= enable_local1_irq,
821da177e4SLinus Torvalds };
831da177e4SLinus Torvalds 
841da177e4SLinus Torvalds static void enable_local2_irq(unsigned int irq)
851da177e4SLinus Torvalds {
861da177e4SLinus Torvalds 	sgint->imask0 |= (1 << (SGI_MAP_0_IRQ - SGINT_LOCAL0));
871da177e4SLinus Torvalds 	sgint->cmeimask0 |= (1 << (irq - SGINT_LOCAL2));
881da177e4SLinus Torvalds }
891da177e4SLinus Torvalds 
901da177e4SLinus Torvalds void disable_local2_irq(unsigned int irq)
911da177e4SLinus Torvalds {
921da177e4SLinus Torvalds 	sgint->cmeimask0 &= ~(1 << (irq - SGINT_LOCAL2));
931da177e4SLinus Torvalds 	if (!sgint->cmeimask0)
941da177e4SLinus Torvalds 		sgint->imask0 &= ~(1 << (SGI_MAP_0_IRQ - SGINT_LOCAL0));
951da177e4SLinus Torvalds }
961da177e4SLinus Torvalds 
9794dee171SRalf Baechle static struct irq_chip ip22_local2_irq_type = {
9870d21cdeSAtsushi Nemoto 	.name		= "IP22 local 2",
991603b5acSAtsushi Nemoto 	.ack		= disable_local2_irq,
1001603b5acSAtsushi Nemoto 	.mask		= disable_local2_irq,
1011603b5acSAtsushi Nemoto 	.mask_ack	= disable_local2_irq,
1021603b5acSAtsushi Nemoto 	.unmask		= enable_local2_irq,
1031da177e4SLinus Torvalds };
1041da177e4SLinus Torvalds 
1051da177e4SLinus Torvalds static void enable_local3_irq(unsigned int irq)
1061da177e4SLinus Torvalds {
1071da177e4SLinus Torvalds 	sgint->imask1 |= (1 << (SGI_MAP_1_IRQ - SGINT_LOCAL1));
1081da177e4SLinus Torvalds 	sgint->cmeimask1 |= (1 << (irq - SGINT_LOCAL3));
1091da177e4SLinus Torvalds }
1101da177e4SLinus Torvalds 
1111da177e4SLinus Torvalds void disable_local3_irq(unsigned int irq)
1121da177e4SLinus Torvalds {
1131da177e4SLinus Torvalds 	sgint->cmeimask1 &= ~(1 << (irq - SGINT_LOCAL3));
1141da177e4SLinus Torvalds 	if (!sgint->cmeimask1)
1151da177e4SLinus Torvalds 		sgint->imask1 &= ~(1 << (SGI_MAP_1_IRQ - SGINT_LOCAL1));
1161da177e4SLinus Torvalds }
1171da177e4SLinus Torvalds 
11894dee171SRalf Baechle static struct irq_chip ip22_local3_irq_type = {
11970d21cdeSAtsushi Nemoto 	.name		= "IP22 local 3",
1201603b5acSAtsushi Nemoto 	.ack		= disable_local3_irq,
1211603b5acSAtsushi Nemoto 	.mask		= disable_local3_irq,
1221603b5acSAtsushi Nemoto 	.mask_ack	= disable_local3_irq,
1231603b5acSAtsushi Nemoto 	.unmask		= enable_local3_irq,
1241da177e4SLinus Torvalds };
1251da177e4SLinus Torvalds 
126937a8015SRalf Baechle static void indy_local0_irqdispatch(void)
1271da177e4SLinus Torvalds {
1281da177e4SLinus Torvalds 	u8 mask = sgint->istat0 & sgint->imask0;
1291da177e4SLinus Torvalds 	u8 mask2;
1301da177e4SLinus Torvalds 	int irq;
1311da177e4SLinus Torvalds 
1321da177e4SLinus Torvalds 	if (mask & SGINT_ISTAT0_LIO2) {
1331da177e4SLinus Torvalds 		mask2 = sgint->vmeistat & sgint->cmeimask0;
1341da177e4SLinus Torvalds 		irq = lc2msk_to_irqnr[mask2];
1351da177e4SLinus Torvalds 	} else
1361da177e4SLinus Torvalds 		irq = lc0msk_to_irqnr[mask];
1371da177e4SLinus Torvalds 
1381da177e4SLinus Torvalds 	/* if irq == 0, then the interrupt has already been cleared */
1391da177e4SLinus Torvalds 	if (irq)
140937a8015SRalf Baechle 		do_IRQ(irq);
1411da177e4SLinus Torvalds }
1421da177e4SLinus Torvalds 
143937a8015SRalf Baechle static void indy_local1_irqdispatch(void)
1441da177e4SLinus Torvalds {
1451da177e4SLinus Torvalds 	u8 mask = sgint->istat1 & sgint->imask1;
1461da177e4SLinus Torvalds 	u8 mask2;
1471da177e4SLinus Torvalds 	int irq;
1481da177e4SLinus Torvalds 
1491da177e4SLinus Torvalds 	if (mask & SGINT_ISTAT1_LIO3) {
1501da177e4SLinus Torvalds 		mask2 = sgint->vmeistat & sgint->cmeimask1;
1511da177e4SLinus Torvalds 		irq = lc3msk_to_irqnr[mask2];
1521da177e4SLinus Torvalds 	} else
1531da177e4SLinus Torvalds 		irq = lc1msk_to_irqnr[mask];
1541da177e4SLinus Torvalds 
1551da177e4SLinus Torvalds 	/* if irq == 0, then the interrupt has already been cleared */
1561da177e4SLinus Torvalds 	if (irq)
157937a8015SRalf Baechle 		do_IRQ(irq);
1581da177e4SLinus Torvalds }
1591da177e4SLinus Torvalds 
160937a8015SRalf Baechle extern void ip22_be_interrupt(int irq);
1611da177e4SLinus Torvalds 
162937a8015SRalf Baechle static void indy_buserror_irq(void)
1631da177e4SLinus Torvalds {
1641da177e4SLinus Torvalds 	int irq = SGI_BUSERR_IRQ;
1651da177e4SLinus Torvalds 
1661da177e4SLinus Torvalds 	irq_enter();
1671da177e4SLinus Torvalds 	kstat_this_cpu.irqs[irq]++;
168937a8015SRalf Baechle 	ip22_be_interrupt(irq);
1691da177e4SLinus Torvalds 	irq_exit();
1701da177e4SLinus Torvalds }
1711da177e4SLinus Torvalds 
1721da177e4SLinus Torvalds static struct irqaction local0_cascade = {
1731da177e4SLinus Torvalds 	.handler	= no_action,
174f40298fdSThomas Gleixner 	.flags		= IRQF_DISABLED,
1751da177e4SLinus Torvalds 	.name		= "local0 cascade",
1761da177e4SLinus Torvalds };
1771da177e4SLinus Torvalds 
1781da177e4SLinus Torvalds static struct irqaction local1_cascade = {
1791da177e4SLinus Torvalds 	.handler	= no_action,
180f40298fdSThomas Gleixner 	.flags		= IRQF_DISABLED,
1811da177e4SLinus Torvalds 	.name		= "local1 cascade",
1821da177e4SLinus Torvalds };
1831da177e4SLinus Torvalds 
1841da177e4SLinus Torvalds static struct irqaction buserr = {
1851da177e4SLinus Torvalds 	.handler	= no_action,
186f40298fdSThomas Gleixner 	.flags		= IRQF_DISABLED,
1871da177e4SLinus Torvalds 	.name		= "Bus Error",
1881da177e4SLinus Torvalds };
1891da177e4SLinus Torvalds 
1901da177e4SLinus Torvalds static struct irqaction map0_cascade = {
1911da177e4SLinus Torvalds 	.handler	= no_action,
192f40298fdSThomas Gleixner 	.flags		= IRQF_DISABLED,
1931da177e4SLinus Torvalds 	.name		= "mapable0 cascade",
1941da177e4SLinus Torvalds };
1951da177e4SLinus Torvalds 
1961da177e4SLinus Torvalds #ifdef USE_LIO3_IRQ
1971da177e4SLinus Torvalds static struct irqaction map1_cascade = {
1981da177e4SLinus Torvalds 	.handler	= no_action,
199f40298fdSThomas Gleixner 	.flags		= IRQF_DISABLED,
2001da177e4SLinus Torvalds 	.name		= "mapable1 cascade",
2011da177e4SLinus Torvalds };
2021da177e4SLinus Torvalds #define SGI_INTERRUPTS	SGINT_END
2031da177e4SLinus Torvalds #else
2041da177e4SLinus Torvalds #define SGI_INTERRUPTS	SGINT_LOCAL3
2051da177e4SLinus Torvalds #endif
2061da177e4SLinus Torvalds 
207937a8015SRalf Baechle extern void indy_r4k_timer_interrupt(void);
208937a8015SRalf Baechle extern void indy_8254timer_irq(void);
209e4ac58afSRalf Baechle 
210e4ac58afSRalf Baechle /*
211e4ac58afSRalf Baechle  * IRQs on the INDY look basically (barring software IRQs which we don't use
212e4ac58afSRalf Baechle  * at all) like:
213e4ac58afSRalf Baechle  *
214e4ac58afSRalf Baechle  *	MIPS IRQ	Source
215e4ac58afSRalf Baechle  *      --------        ------
216e4ac58afSRalf Baechle  *             0	Software (ignored)
217e4ac58afSRalf Baechle  *             1        Software (ignored)
218e4ac58afSRalf Baechle  *             2        Local IRQ level zero
219e4ac58afSRalf Baechle  *             3        Local IRQ level one
220e4ac58afSRalf Baechle  *             4        8254 Timer zero
221e4ac58afSRalf Baechle  *             5        8254 Timer one
222e4ac58afSRalf Baechle  *             6        Bus Error
223e4ac58afSRalf Baechle  *             7        R4k timer (what we use)
224e4ac58afSRalf Baechle  *
225e4ac58afSRalf Baechle  * We handle the IRQ according to _our_ priority which is:
226e4ac58afSRalf Baechle  *
227e4ac58afSRalf Baechle  * Highest ----     R4k Timer
228e4ac58afSRalf Baechle  *                  Local IRQ zero
229e4ac58afSRalf Baechle  *                  Local IRQ one
230e4ac58afSRalf Baechle  *                  Bus Error
231e4ac58afSRalf Baechle  *                  8254 Timer zero
232e4ac58afSRalf Baechle  * Lowest  ----     8254 Timer one
233e4ac58afSRalf Baechle  *
234e4ac58afSRalf Baechle  * then we just return, if multiple IRQs are pending then we will just take
235e4ac58afSRalf Baechle  * another exception, big deal.
236e4ac58afSRalf Baechle  */
237e4ac58afSRalf Baechle 
238937a8015SRalf Baechle asmlinkage void plat_irq_dispatch(void)
239e4ac58afSRalf Baechle {
240*119537c0SThiemo Seufer 	unsigned int pending = read_c0_status() & read_c0_cause();
241e4ac58afSRalf Baechle 
242e4ac58afSRalf Baechle 	/*
243e4ac58afSRalf Baechle 	 * First we check for r4k counter/timer IRQ.
244e4ac58afSRalf Baechle 	 */
245e4ac58afSRalf Baechle 	if (pending & CAUSEF_IP7)
246937a8015SRalf Baechle 		indy_r4k_timer_interrupt();
247e4ac58afSRalf Baechle 	else if (pending & CAUSEF_IP2)
248937a8015SRalf Baechle 		indy_local0_irqdispatch();
249e4ac58afSRalf Baechle 	else if (pending & CAUSEF_IP3)
250937a8015SRalf Baechle 		indy_local1_irqdispatch();
251e4ac58afSRalf Baechle 	else if (pending & CAUSEF_IP6)
252937a8015SRalf Baechle 		indy_buserror_irq();
253e4ac58afSRalf Baechle 	else if (pending & (CAUSEF_IP4 | CAUSEF_IP5))
254937a8015SRalf Baechle 		indy_8254timer_irq();
255e4ac58afSRalf Baechle }
256e4ac58afSRalf Baechle 
2571da177e4SLinus Torvalds void __init arch_init_irq(void)
2581da177e4SLinus Torvalds {
2591da177e4SLinus Torvalds 	int i;
2601da177e4SLinus Torvalds 
2611da177e4SLinus Torvalds 	/* Init local mask --> irq tables. */
2621da177e4SLinus Torvalds 	for (i = 0; i < 256; i++) {
2631da177e4SLinus Torvalds 		if (i & 0x80) {
2641da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 7;
2651da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 7;
2661da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 7;
2671da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 7;
2681da177e4SLinus Torvalds 		} else if (i & 0x40) {
2691da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 6;
2701da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 6;
2711da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 6;
2721da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 6;
2731da177e4SLinus Torvalds 		} else if (i & 0x20) {
2741da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 5;
2751da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 5;
2761da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 5;
2771da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 5;
2781da177e4SLinus Torvalds 		} else if (i & 0x10) {
2791da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 4;
2801da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 4;
2811da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 4;
2821da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 4;
2831da177e4SLinus Torvalds 		} else if (i & 0x08) {
2841da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 3;
2851da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 3;
2861da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 3;
2871da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 3;
2881da177e4SLinus Torvalds 		} else if (i & 0x04) {
2891da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 2;
2901da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 2;
2911da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 2;
2921da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 2;
2931da177e4SLinus Torvalds 		} else if (i & 0x02) {
2941da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 1;
2951da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 1;
2961da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 1;
2971da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 1;
2981da177e4SLinus Torvalds 		} else if (i & 0x01) {
2991da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 0;
3001da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 0;
3011da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 0;
3021da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 0;
3031da177e4SLinus Torvalds 		} else {
3041da177e4SLinus Torvalds 			lc0msk_to_irqnr[i] = 0;
3051da177e4SLinus Torvalds 			lc1msk_to_irqnr[i] = 0;
3061da177e4SLinus Torvalds 			lc2msk_to_irqnr[i] = 0;
3071da177e4SLinus Torvalds 			lc3msk_to_irqnr[i] = 0;
3081da177e4SLinus Torvalds 		}
3091da177e4SLinus Torvalds 	}
3101da177e4SLinus Torvalds 
3111da177e4SLinus Torvalds 	/* Mask out all interrupts. */
3121da177e4SLinus Torvalds 	sgint->imask0 = 0;
3131da177e4SLinus Torvalds 	sgint->imask1 = 0;
3141da177e4SLinus Torvalds 	sgint->cmeimask0 = 0;
3151da177e4SLinus Torvalds 	sgint->cmeimask1 = 0;
3161da177e4SLinus Torvalds 
3171da177e4SLinus Torvalds 	/* init CPU irqs */
31897dcb82dSAtsushi Nemoto 	mips_cpu_irq_init();
3191da177e4SLinus Torvalds 
3201da177e4SLinus Torvalds 	for (i = SGINT_LOCAL0; i < SGI_INTERRUPTS; i++) {
32194dee171SRalf Baechle 		struct irq_chip *handler;
3221da177e4SLinus Torvalds 
3231da177e4SLinus Torvalds 		if (i < SGINT_LOCAL1)
3241da177e4SLinus Torvalds 			handler		= &ip22_local0_irq_type;
3251da177e4SLinus Torvalds 		else if (i < SGINT_LOCAL2)
3261da177e4SLinus Torvalds 			handler		= &ip22_local1_irq_type;
3271da177e4SLinus Torvalds 		else if (i < SGINT_LOCAL3)
3281da177e4SLinus Torvalds 			handler		= &ip22_local2_irq_type;
3291da177e4SLinus Torvalds 		else
3301da177e4SLinus Torvalds 			handler		= &ip22_local3_irq_type;
3311da177e4SLinus Torvalds 
3321417836eSAtsushi Nemoto 		set_irq_chip_and_handler(i, handler, handle_level_irq);
3331da177e4SLinus Torvalds 	}
3341da177e4SLinus Torvalds 
3351da177e4SLinus Torvalds 	/* vector handler. this register the IRQ as non-sharable */
3361da177e4SLinus Torvalds 	setup_irq(SGI_LOCAL_0_IRQ, &local0_cascade);
3371da177e4SLinus Torvalds 	setup_irq(SGI_LOCAL_1_IRQ, &local1_cascade);
3381da177e4SLinus Torvalds 	setup_irq(SGI_BUSERR_IRQ, &buserr);
3391da177e4SLinus Torvalds 
3401da177e4SLinus Torvalds 	/* cascade in cascade. i love Indy ;-) */
3411da177e4SLinus Torvalds 	setup_irq(SGI_MAP_0_IRQ, &map0_cascade);
3421da177e4SLinus Torvalds #ifdef USE_LIO3_IRQ
3431da177e4SLinus Torvalds 	setup_irq(SGI_MAP_1_IRQ, &map1_cascade);
3441da177e4SLinus Torvalds #endif
3451da177e4SLinus Torvalds 
3461da177e4SLinus Torvalds #ifdef CONFIG_EISA
3471da177e4SLinus Torvalds 	if (ip22_is_fullhouse())	/* Only Indigo-2 has EISA stuff */
3481da177e4SLinus Torvalds 	        ip22_eisa_init ();
3491da177e4SLinus Torvalds #endif
3501da177e4SLinus Torvalds }
351