Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 1 | #ifndef __ASM_IRQ_H |
| 2 | #define __ASM_IRQ_H |
| 3 | |
Tomasz Nowicki | d60fc38 | 2015-03-24 14:02:49 +0000 | [diff] [blame] | 4 | #include <linux/irqchip/arm-gic-acpi.h> |
| 5 | |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 6 | #include <asm-generic/irq.h> |
| 7 | |
Chunyan Zhang | af2c632 | 2014-12-04 06:29:35 +0000 | [diff] [blame] | 8 | struct pt_regs; |
| 9 | |
Catalin Marinas | e851b58 | 2013-01-14 12:39:31 +0000 | [diff] [blame] | 10 | extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 11 | |
Tomasz Nowicki | d60fc38 | 2015-03-24 14:02:49 +0000 | [diff] [blame] | 12 | static inline void acpi_irq_init(void) |
| 13 | { |
| 14 | /* |
| 15 | * Hardcode ACPI IRQ chip initialization to GICv2 for now. |
| 16 | * Proper irqchip infrastructure will be implemented along with |
| 17 | * incoming GICv2m|GICv3|ITS bits. |
| 18 | */ |
| 19 | acpi_gic_init(); |
| 20 | } |
| 21 | #define acpi_irq_init acpi_irq_init |
| 22 | |
Marc Zyngier | fb9bd7d6 | 2012-03-05 11:49:29 +0000 | [diff] [blame] | 23 | #endif |