GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / microblaze / include / asm / irq.h
blobc176ce86efaae43f1383cd076658ab0ebc4c8387
1 /*
2 * Copyright (C) 2006 Atmark Techno, Inc.
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 */
9 #ifndef _ASM_MICROBLAZE_IRQ_H
10 #define _ASM_MICROBLAZE_IRQ_H
12 #define NR_IRQS 32
13 #include <asm-generic/irq.h>
15 #include <linux/interrupt.h>
17 /* This type is the placeholder for a hardware interrupt number. It has to
18 * be big enough to enclose whatever representation is used by a given
19 * platform.
21 typedef unsigned long irq_hw_number_t;
23 extern unsigned int nr_irq;
25 #define NO_IRQ (-1)
27 struct pt_regs;
28 extern void do_IRQ(struct pt_regs *regs);
30 static inline void irq_dispose_mapping(unsigned int virq)
32 return;
35 struct irq_host;
37 /**
38 * irq_create_mapping - Map a hardware interrupt into linux virq space
39 * @host: host owning this hardware interrupt or NULL for default host
40 * @hwirq: hardware irq number in that host space
42 * Only one mapping per hardware interrupt is permitted. Returns a linux
43 * virq number.
44 * If the sense/trigger is to be specified, set_irq_type() should be called
45 * on the number returned from that call.
47 extern unsigned int irq_create_mapping(struct irq_host *host,
48 irq_hw_number_t hwirq);
50 #endif /* _ASM_MICROBLAZE_IRQ_H */