90f050535ebef0f51881fdc451bac5df84816a9d
[pandora-kernel.git] / arch / microblaze / include / asm / irq.h
1 /*
2  * Copyright (C) 2006 Atmark Techno, Inc.
3  *
4  * This file is subject to the terms and conditions of the GNU General Public
5  * License. See the file "COPYING" in the main directory of this archive
6  * for more details.
7  */
8
9 #ifndef _ASM_MICROBLAZE_IRQ_H
10 #define _ASM_MICROBLAZE_IRQ_H
11
12 #define NR_IRQS 32
13 #include <asm-generic/irq.h>
14
15 #include <linux/interrupt.h>
16
17 extern unsigned int nr_irq;
18
19 #define NO_IRQ (-1)
20
21 struct pt_regs;
22 extern void do_IRQ(struct pt_regs *regs);
23
24 /* irq_of_parse_and_map - Parse and Map an interrupt into linux virq space
25  * @device: Device node of the device whose interrupt is to be mapped
26  * @index: Index of the interrupt to map
27  *
28  * This function is a wrapper that chains of_irq_map_one() and
29  * irq_create_of_mapping() to make things easier to callers
30  */
31 struct device_node;
32 extern unsigned int irq_of_parse_and_map(struct device_node *dev, int index);
33
34 /** FIXME - not implement
35  * irq_dispose_mapping - Unmap an interrupt
36  * @virq: linux virq number of the interrupt to unmap
37  */
38 static inline void irq_dispose_mapping(unsigned int virq)
39 {
40         return;
41 }
42
43 #endif /* _ASM_MICROBLAZE_IRQ_H */