acpi/pcib: Fix interrupt routing code
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 22 Mar 2011 07:04:16 +0000 (15:04 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 27 Mar 2011 10:34:02 +0000 (18:34 +0800)
sys/dev/acpica5/acpi_pcib.c

index 9c2da45..f31d914 100644 (file)
@@ -260,14 +260,10 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
                pci_get_slot(dev), 'A' + pin, prt->SourceIndex);
        if (prt->SourceIndex) {
            interrupt = prt->SourceIndex;
-/*     interrupt = BUS_CONFIG_INTR(device_get_parent(dev), dev, interrupt, INTR_TRIGGER_LEVEL,
-               INTR_POLARITY_LOW);
-*/
-        /* pci_apic_irq() accepts pin number (WHY?) instead of irq number, so we pass it.
-        * Interrupt routing still depends on mptable and is not of any use then.
-        */
-       interrupt = BUS_CONFIG_INTR(device_get_parent(dev), dev, pin, INTR_TRIGGER_LEVEL,
-               INTR_POLARITY_LOW);
+
+           /* TODO MachIntr.intr_find */
+           BUS_CONFIG_INTR(device_get_parent(dev), dev, interrupt,
+               INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
        } else
            device_printf(pcib, "error: invalid hard-wired IRQ of 0\n");
        goto out;