|
Last change
on this file was
2,
checked in by phkim, 11 years ago
|
|
1.phkim
- revision copy newcon3sk r27
|
-
Property svn:executable set to
*
|
|
File size:
1.2 KB
|
| Rev | Line | |
|---|
| [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 |
|---|
| 16 | static 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 | |
|---|
| 24 | struct pt_regs; |
|---|
| 25 | |
|---|
| 26 | #ifdef CONFIG_PREEMPT |
|---|
| 27 | |
|---|
| 28 | extern 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) \ |
|---|
| 41 | do { \ |
|---|
| 42 | irq_enter(); \ |
|---|
| 43 | __do_IRQ((irq), (regs)); \ |
|---|
| 44 | irq_exit(); \ |
|---|
| 45 | } while (0) |
|---|
| 46 | |
|---|
| 47 | #endif |
|---|
| 48 | |
|---|
| 49 | extern void arch_init_irq(void); |
|---|
| 50 | |
|---|
| 51 | struct irqaction; |
|---|
| 52 | int 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.