oh, hello bluetooth dongle :D
[ppcskel.git] / irq.c
diff --git a/irq.c b/irq.c
index fad24848b1ca26813e7e4c933ddd02b73679e366..5b0241c4087aada266fbf5ac489ec0d16c364401 100644 (file)
--- a/irq.c
+++ b/irq.c
@@ -14,7 +14,9 @@ Copyright (C) 2009                    Andre Heider "dhewg" <dhewg@wiibrew.org>
 #include "hollywood.h"
 #include "ipc.h"
 #include "bootmii_ppc.h"
-#include "ohci.h"
+#include "usb/host/host.h"
+
+void show_frame_no(void);
 
 void irq_initialize(void)
 {
@@ -59,6 +61,7 @@ void irq_handler(void)
 
        if (flags & (1<<BW_PI_IRQ_RESET)) { 
                write32(BW_PI_IRQFLAG, 1<<BW_PI_IRQ_RESET);
+               show_frame_no();
                printf("IRQ-BW RESET\n");
        }
        if (flags & (1<<BW_PI_IRQ_HW)) { //HW-PIC IRQ
@@ -111,12 +114,12 @@ void irq_handler(void)
                        //sdhc_irq();
                }
                if (hw_flags & IRQF_OHCI0) {
-                       ohci0_irq();
+                       hcdi_irq(OHCI0_REG_BASE);
                        write32(HW_PPCIRQFLAG, IRQF_OHCI0);
                }
                if (hw_flags & IRQF_OHCI1) {
+                       hcdi_irq(OHCI1_REG_BASE);
                        write32(HW_PPCIRQFLAG, IRQF_OHCI1);
-                       //TODO: ohci1_irq();
                }
 
                hw_flags &= ~IRQF_ALL;