32 #include <linux/kernel.h>
39 static inline void unmask_mips_irq(
struct irq_data *
d)
45 static inline void mask_mips_irq(
struct irq_data *d)
51 static struct irq_chip mips_cpu_irq_controller = {
53 .irq_ack = mask_mips_irq,
54 .irq_mask = mask_mips_irq,
55 .irq_mask_ack = mask_mips_irq,
56 .irq_unmask = unmask_mips_irq,
57 .irq_eoi = unmask_mips_irq,
64 static unsigned int mips_mt_cpu_irq_startup(
struct irq_data *d)
66 unsigned int vpflags = dvpe();
78 static void mips_mt_cpu_irq_ack(
struct irq_data *d)
80 unsigned int vpflags = dvpe();
86 static struct irq_chip mips_mt_cpu_irq_controller = {
88 .irq_startup = mips_mt_cpu_irq_startup,
89 .irq_ack = mips_mt_cpu_irq_ack,
90 .irq_mask = mask_mips_irq,
91 .irq_mask_ack = mips_mt_cpu_irq_ack,
92 .irq_unmask = unmask_mips_irq,
93 .irq_eoi = unmask_mips_irq,
106 for (i = irq_base; i < irq_base + 2; i++)
108 &mips_mt_cpu_irq_controller :
109 &mips_cpu_irq_controller,
112 for (i = irq_base + 2; i < irq_base + 8; i++)
113 irq_set_chip_and_handler(i, &mips_cpu_irq_controller,