X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=irq.c;h=1217ee2adecf7ec606e1bdd16ea595e2fd09c918;hb=34b9e07b8eafbaef3c81dd850cdaee8610efa1f1;hp=9ab1559505b5a14be4b6619389a1a7db569a9683;hpb=0a6cd808a414dab189b1ffac82df6651dfb4ae34;p=ppcskel.git diff --git a/irq.c b/irq.c index 9ab1559..1217ee2 100644 --- a/irq.c +++ b/irq.c @@ -2,9 +2,8 @@ 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" +Copyright (C) 2009 Bernhard Urban +Copyright (C) 2009 Sebastian Falbesoner # 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 @@ -14,24 +13,34 @@ Copyright (C) 2009 Andre Heider "dhewg" #include "hollywood.h" #include "ipc.h" #include "bootmii_ppc.h" -//debug only -#include "printf.h" +#include "usb/host/host.h" +#include "mini_ipc.h" + +void show_frame_no(void); void irq_initialize(void) { - // enable OHCI0 interrupt on hollywood-pic + // clear flipper-pic (processor interface) + write32(BW_PI_IRQMASK, 0); + write32(BW_PI_IRQFLAG, 0xffffffff); + + // clear 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<