[POWERPC] Adapt ipic driver to new host_ops interface, add set_irq_type to set IRQ...
authorKim Phillips <kim.phillips@freescale.com>
Fri, 25 Aug 2006 16:59:07 +0000 (11:59 -0500)
committerPaul Mackerras <paulus@samba.org>
Wed, 30 Aug 2006 00:34:33 +0000 (10:34 +1000)
commitb9f0f1bb2bcaae96dd3267f6bd3ad1ca44a1f5ad
tree3b9f29de777df859406ee649cc5a29b703c026ae
parentbf4152dd7ccb6c060d786200a893dfe30193a07f
[POWERPC] Adapt ipic driver to new host_ops interface, add set_irq_type to set IRQ sense

This converts ipic code to Benh's IRQ mods.  For the IPIC, IRQ sense values in the device tree equal those in include/linux/irq.h; that's 8 for low assertion (most internal IRQs on mpc83xx), and 2 for high-to-low change.

spinlocks added to [un]mask, ack operations; default handler and type now set in host_map; and redundant condition check eliminated.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/ipic.c
arch/powerpc/sysdev/ipic.h