Re: shared interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



These changes? Jeff Garzik from the ChangeLog? I guess I should get back on LKML, of course, school starts up again in a week, so I probably won't have time to read it :-)

/*
 * The VIA pirq rules are nibble-based, like ALI,
 * but without the ugly irq number munging.
+ * However, PIRQD is in the upper instead of lower nibble.
 */
static int pirq_via_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
{
-    return read_config_nybble(router, 0x55, pirq);
+    return read_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq);
}

static int pirq_via_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq)
{
-    write_config_nybble(router, 0x55, pirq, irq);
+    write_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq, irq);
    return 1;
}

Alan Cox wrote:

I am also curious where the IRQ routing changes went because I don't see any obvious changs to quirks.c. I'm looking in the wrong place?

PCI router code. It was how we interpreted the table rather than a quirk
in them.


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list







[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux