16 #include <linux/list.h>
19 #include <mach/hardware.h>
22 static u32 iop32x_mask;
24 static void intctl_write(
u32 val)
26 asm volatile(
"mcr p6, 0, %0, c0, c0, 0" : :
"r" (
val));
29 static void intstr_write(
u32 val)
31 asm volatile(
"mcr p6, 0, %0, c4, c0, 0" : :
"r" (
val));
37 iop32x_mask &= ~(1 << d->
irq);
38 intctl_write(iop32x_mask);
44 iop32x_mask |= 1 << d->
irq;
45 intctl_write(iop32x_mask);
50 .irq_ack = iop32x_irq_mask,
51 .irq_mask = iop32x_irq_mask,
52 .irq_unmask = iop32x_irq_unmask,
63 if (machine_is_glantank() ||
64 machine_is_iq80321() ||
65 machine_is_iq31244() ||