bcm963xx: rewrite irq handling code