irq.h 859 字节
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
L
Linus Torvalds 已提交
2 3 4
#ifndef __ASM_ARM_IRQ_H
#define __ASM_ARM_IRQ_H

5 6 7
#define NR_IRQS_LEGACY	16

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

#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

25 26
#ifndef __ASSEMBLY__
struct irqaction;
27
struct pt_regs;
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
#ifdef CONFIG_SMP
34 35 36
extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
					   bool exclude_self);
#define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
37 38
#endif

39 40 41 42 43
static inline int nr_legacy_irqs(void)
{
	return NR_IRQS_LEGACY;
}

L
Linus Torvalds 已提交
44 45
#endif

46 47
#endif