source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/asm/irq.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[2]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 <irq.h>
14
15#ifdef CONFIG_I8259
16static inline int irq_canonicalize(int irq)
17{
18        return ((irq == 2) ? 9 : irq);
19}
20#else
21#define irq_canonicalize(irq) (irq)     /* Sane hardware, sane code ... */
22#endif
23
24struct pt_regs;
25
26#ifdef CONFIG_PREEMPT
27
28extern asmlinkage unsigned int do_IRQ(unsigned int irq, struct pt_regs *regs);
29
30#else
31
32/*
33 * do_IRQ handles all normal device IRQ's (the special
34 * SMP cross-CPU interrupts have their own specific
35 * handlers).
36 *
37 * Ideally there should be away to get this into kernel/irq/handle.c to
38 * avoid the overhead of a call for just a tiny function ...
39 */
40#define do_IRQ(irq, regs)                                               \
41do {                                                                    \
42        irq_enter();                                                    \
43        __do_IRQ((irq), (regs));                                        \
44        irq_exit();                                                     \
45} while (0)
46
47#endif
48
49extern void arch_init_irq(void);
50
51struct irqaction;
52int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
53
54#endif /* _ASM_IRQ_H */
Note: See TracBrowser for help on using the repository browser.