Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 2 | #ifndef __ASM_IRQ_H |
| 3 | #define __ASM_IRQ_H |
| 4 | |
AKASHI Takahiro | 132cd88 | 2015-12-04 11:02:26 +0000 | [diff] [blame] | 5 | #ifndef __ASSEMBLER__ |
| 6 | |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 7 | #include <asm-generic/irq.h> |
| 8 | |
Chunyan Zhang | af2c632 | 2014-12-04 06:29:35 +0000 | [diff] [blame] | 9 | struct pt_regs; |
| 10 | |
Catalin Marinas | e851b58 | 2013-01-14 12:39:31 +0000 | [diff] [blame] | 11 | extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 12 | |
Boris Ostrovsky | b4ff838 | 2015-11-20 11:25:04 -0500 | [diff] [blame] | 13 | static inline int nr_legacy_irqs(void) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
AKASHI Takahiro | 132cd88 | 2015-12-04 11:02:26 +0000 | [diff] [blame] | 18 | #endif /* !__ASSEMBLER__ */ |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 19 | #endif |