diff options
Diffstat (limited to 'arch/powerpc/sysdev/mpic.h')
-rw-r--r-- | arch/powerpc/sysdev/mpic.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/mpic.h b/arch/powerpc/sysdev/mpic.h index 13f3e8913a93..24bf07a63924 100644 --- a/arch/powerpc/sysdev/mpic.h +++ b/arch/powerpc/sysdev/mpic.h | |||
@@ -40,4 +40,26 @@ extern int mpic_set_affinity(struct irq_data *d, | |||
40 | const struct cpumask *cpumask, bool force); | 40 | const struct cpumask *cpumask, bool force); |
41 | extern void mpic_reset_core(int cpu); | 41 | extern void mpic_reset_core(int cpu); |
42 | 42 | ||
43 | #ifdef CONFIG_FSL_SOC | ||
44 | extern int mpic_map_error_int(struct mpic *mpic, unsigned int virq, irq_hw_number_t hw); | ||
45 | extern void mpic_err_int_init(struct mpic *mpic, irq_hw_number_t irqnum); | ||
46 | extern int mpic_setup_error_int(struct mpic *mpic, int intvec); | ||
47 | #else | ||
48 | static inline int mpic_map_error_int(struct mpic *mpic, unsigned int virq, irq_hw_number_t hw) | ||
49 | { | ||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | |||
54 | static inline void mpic_err_int_init(struct mpic *mpic, irq_hw_number_t irqnum) | ||
55 | { | ||
56 | return; | ||
57 | } | ||
58 | |||
59 | static inline int mpic_setup_error_int(struct mpic *mpic, int intvec) | ||
60 | { | ||
61 | return -1; | ||
62 | } | ||
63 | #endif | ||
64 | |||
43 | #endif /* _POWERPC_SYSDEV_MPIC_H */ | 65 | #endif /* _POWERPC_SYSDEV_MPIC_H */ |