diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-v850/irq.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-v850/irq.h')
-rw-r--r-- | include/asm-v850/irq.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/include/asm-v850/irq.h b/include/asm-v850/irq.h new file mode 100644 index 000000000000..44431152b36d --- /dev/null +++ b/include/asm-v850/irq.h | |||
@@ -0,0 +1,69 @@ | |||
1 | /* | ||
2 | * include/asm-v850/irq.h -- Machine interrupt handling | ||
3 | * | ||
4 | * Copyright (C) 2001,02,04 NEC Electronics Corporation | ||
5 | * Copyright (C) 2001,02,04 Miles Bader <miles@gnu.org> | ||
6 | * | ||
7 | * This file is subject to the terms and conditions of the GNU General | ||
8 | * Public License. See the file COPYING in the main directory of this | ||
9 | * archive for more details. | ||
10 | * | ||
11 | * Written by Miles Bader <miles@gnu.org> | ||
12 | */ | ||
13 | |||
14 | #ifndef __V850_IRQ_H__ | ||
15 | #define __V850_IRQ_H__ | ||
16 | |||
17 | #include <asm/machdep.h> | ||
18 | |||
19 | /* Default NUM_MACH_IRQS. */ | ||
20 | #ifndef NUM_MACH_IRQS | ||
21 | #define NUM_MACH_IRQS NUM_CPU_IRQS | ||
22 | #endif | ||
23 | |||
24 | /* NMIs have IRQ numbers from FIRST_NMI to FIRST_NMI+NUM_NMIS-1. */ | ||
25 | #define FIRST_NMI NUM_MACH_IRQS | ||
26 | #define IRQ_NMI(n) (FIRST_NMI + (n)) | ||
27 | /* v850 processors have 3 non-maskable interrupts. */ | ||
28 | #define NUM_NMIS 3 | ||
29 | |||
30 | /* Includes both maskable and non-maskable irqs. */ | ||
31 | #define NR_IRQS (NUM_MACH_IRQS + NUM_NMIS) | ||
32 | |||
33 | |||
34 | #ifndef __ASSEMBLY__ | ||
35 | |||
36 | struct pt_regs; | ||
37 | struct hw_interrupt_type; | ||
38 | struct irqaction; | ||
39 | |||
40 | #define irq_canonicalize(irq) (irq) | ||
41 | |||
42 | /* Initialize irq handling for IRQs. | ||
43 | BASE_IRQ, BASE_IRQ+INTERVAL, ..., BASE_IRQ+NUM*INTERVAL | ||
44 | to IRQ_TYPE. An IRQ_TYPE of 0 means to use a generic interrupt type. */ | ||
45 | extern void | ||
46 | init_irq_handlers (int base_irq, int num, int interval, | ||
47 | struct hw_interrupt_type *irq_type); | ||
48 | |||
49 | typedef void (*irq_handler_t)(int irq, void *data, struct pt_regs *regs); | ||
50 | |||
51 | /* Handle interrupt IRQ. REGS are the registers at the time of ther | ||
52 | interrupt. */ | ||
53 | extern unsigned int handle_irq (int irq, struct pt_regs *regs); | ||
54 | |||
55 | |||
56 | /* Enable interrupt handling on an irq. */ | ||
57 | extern void enable_irq(unsigned int irq); | ||
58 | |||
59 | /* Disable an irq and wait for completion. */ | ||
60 | extern void disable_irq (unsigned int irq); | ||
61 | |||
62 | /* Disable an irq without waiting. */ | ||
63 | extern void disable_irq_nosync (unsigned int irq); | ||
64 | |||
65 | extern int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *); | ||
66 | |||
67 | #endif /* !__ASSEMBLY__ */ | ||
68 | |||
69 | #endif /* __V850_IRQ_H__ */ | ||