/* ppcskel - a Free Software replacement for the Nintendo/BroadOn IOS. IRQ support Copyright (C) 2008, 2009 Hector Martin "marcan" Copyright (C) 2008, 2009 Sven Peter Copyright (C) 2009 Andre Heider "dhewg" # This code is licensed to you under the terms of the GNU GPL, version 2; # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt */ #include "irq.h" #include "hollywood.h" #include "ipc.h" #include "bootmii_ppc.h" //debug only #include "printf.h" void irq_initialize(void) { // enable OHCI0 interrupt on hollywood-pic write32(HW_PPCIRQMASK, 0); write32(HW_PPCIRQFLAG, 0xffffffff); // enable RESET and PIC (#14) interrupts on processor interface write32(BW_PI_IRQFLAG, 0xffffffff); #define BW_PI_IRQ_RESET 1 #define BW_PI_IRQ_HW 14 write32(BW_PI_IRQMASK, (1<