irq.h 1008 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3
#ifndef __ASM_ARM_IRQ_H
#define __ASM_ARM_IRQ_H

4 5 6
#define NR_IRQS_LEGACY	16

#ifndef CONFIG_SPARSE_IRQ
7
#include <mach/irqs.h>
8 9 10
#else
#define NR_IRQS NR_IRQS_LEGACY
#endif
L
Linus Torvalds 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23

#ifndef irq_canonicalize
#define irq_canonicalize(i)	(i)
#endif

/*
 * Use this value to indicate lack of interrupt
 * capability
 */
#ifndef NO_IRQ
#define NO_IRQ	((unsigned int)(-1))
#endif

24 25
#ifndef __ASSEMBLY__
struct irqaction;
26
struct pt_regs;
27
extern void migrate_irqs(void);
28 29

extern void asm_do_IRQ(unsigned int, struct pt_regs *);
30
void handle_IRQ(unsigned int, struct pt_regs *);
31 32
void init_IRQ(void);

33 34 35 36 37
#ifdef CONFIG_MULTI_IRQ_HANDLER
extern void (*handle_arch_irq)(struct pt_regs *);
extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
#endif

38
#ifdef CONFIG_SMP
39 40 41
extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
					   bool exclude_self);
#define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
42 43
#endif

44 45 46 47 48
static inline int nr_legacy_irqs(void)
{
	return NR_IRQS_LEGACY;
}

L
Linus Torvalds 已提交
49 50
#endif

51 52
#endif