+static void hlwd_pic_mask_and_ack(unsigned int virq)
+{
+ int irq = virq_to_hw(virq);
+ void __iomem *io_base = get_irq_chip_data(virq);
+
+ clear_bit(irq, io_base + HW_BROADWAY_IMR);
+ set_bit(irq, io_base + HW_BROADWAY_ICR);
+}
Same comment as with flipper. BTW. It looks really similar, can't you
use the same driver ?
No, they aren't actually similar; the old PIC acks when the status reg
is read, the new PIC acks when you write a 1. Also, the new PIC has
more registers, it is an interrupt controller for the ARM as well. Not
that we use it, but still.
Segher
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev