irq.h 831 字节
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
void handle_IRQ(unsigned int, struct pt_regs *);
30 31
void init_IRQ(void);

32
#ifdef CONFIG_SMP
33 34
#include <linux/cpumask.h>

35
extern bool arch_trigger_cpumask_backtrace(const cpumask_t *mask,
36 37
					   bool exclude_self);
#define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
38 39
#endif

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

L
Linus Torvalds 已提交
45 46
#endif

47 48
#endif