[HAL]: Implement PCI Vector/IRQL translation too.
authorSir Richard <sir_richard@svn.reactos.org>
Mon, 7 Jun 2010 20:37:45 +0000 (20:37 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Mon, 7 Jun 2010 20:37:45 +0000 (20:37 +0000)
svn path=/trunk/; revision=47675

reactos/hal/halx86/generic/legacy/bus/pcibus.c

index fe49b73..e3f363d 100644 (file)
@@ -516,9 +516,16 @@ HalpGetPCIIntOnISABus(IN PBUS_HANDLER BusHandler,
                       OUT PKIRQL Irql,
                       OUT PKAFFINITY Affinity)
 {
-    UNIMPLEMENTED;
-    while (TRUE);
-    return 0;
+    /* Validate the level first */
+    if (BusInterruptLevel < 1) return 0;
+
+    /* PCI has its IRQs on top of ISA IRQs, so pass it on to the ISA handler */
+    return HalGetInterruptVector(Isa,
+                                 0,
+                                 BusInterruptLevel,
+                                 0,
+                                 Irql,
+                                 Affinity);
 }
 
 VOID