Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.17-rc1 49 lines 1.3 kB view raw
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle 7 * Copyright (C) 1995, 96, 97, 98, 99, 2000, 01, 02, 03 by Ralf Baechle 8 */ 9#ifndef _ASM_IRQ_H 10#define _ASM_IRQ_H 11 12#include <linux/linkage.h> 13#include <linux/smp.h> 14#include <linux/irqdomain.h> 15 16#include <asm/mipsmtregs.h> 17 18#include <irq.h> 19 20#ifdef CONFIG_I8259 21static inline int irq_canonicalize(int irq) 22{ 23 return ((irq == I8259A_IRQ_BASE + 2) ? I8259A_IRQ_BASE + 9 : irq); 24} 25#else 26#define irq_canonicalize(irq) (irq) /* Sane hardware, sane code ... */ 27#endif 28 29extern void do_IRQ(unsigned int irq); 30 31extern void arch_init_irq(void); 32extern void spurious_interrupt(void); 33 34extern int allocate_irqno(void); 35extern void alloc_legacy_irqno(void); 36extern void free_irqno(unsigned int irq); 37 38/* 39 * Before R2 the timer and performance counter interrupts were both fixed to 40 * IE7. Since R2 their number has to be read from the c0_intctl register. 41 */ 42#define CP0_LEGACY_COMPARE_IRQ 7 43#define CP0_LEGACY_PERFCNT_IRQ 7 44 45extern int cp0_compare_irq; 46extern int cp0_compare_irq_shift; 47extern int cp0_perfcount_irq; 48 49#endif /* _ASM_IRQ_H */