blob: 90f050535ebef0f51881fdc451bac5df84816a9d [file] [log] [blame]
Michal Simekeedbdab2009-03-27 14:25:49 +01001/*
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
Remis Lima Baima0a584582009-06-18 19:55:33 +020013#include <asm-generic/irq.h>
Michal Simekeedbdab2009-03-27 14:25:49 +010014
15#include <linux/interrupt.h>
16
17extern unsigned int nr_irq;
18
19#define NO_IRQ (-1)
20
Michal Simekeedbdab2009-03-27 14:25:49 +010021struct pt_regs;
22extern 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 */
31struct device_node;
32extern 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 */
38static inline void irq_dispose_mapping(unsigned int virq)
39{
40 return;
41}
42
43#endif /* _ASM_MICROBLAZE_IRQ_H */