Commit a1146f52 authored by Dave Jones's avatar Dave Jones

[PATCH] Cyrix irq router tweak

Another small change from 2.4
parent 7c73c072
...@@ -245,12 +245,12 @@ static int pirq_opti_set(struct pci_dev *router, struct pci_dev *dev, int pirq, ...@@ -245,12 +245,12 @@ static int pirq_opti_set(struct pci_dev *router, struct pci_dev *dev, int pirq,
*/ */
static int pirq_cyrix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) static int pirq_cyrix_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
{ {
return read_config_nybble(router, 0x5C, pirq-1); return read_config_nybble(router, 0x5C, (pirq-1)^1);
} }
static int pirq_cyrix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) static int pirq_cyrix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq)
{ {
write_config_nybble(router, 0x5C, pirq-1, irq); write_config_nybble(router, 0x5C, (pirq-1)^1, irq);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment