]> Joshua Wise's Git repositories - netwatch.git/blobdiff - pci/pci-bother.c
merge
[netwatch.git] / pci / pci-bother.c
index 0c3c0ec4d80703a2c19a68e325ea1414550e0be4..dd1ff2133048cbd7071b0ce37a076098d95c5738 100644 (file)
@@ -1,4 +1,5 @@
 #include <pci.h>
+#include <pci-bother.h>
 
 struct pci_bother {
        int bus, dev, fn;
@@ -29,7 +30,7 @@ void pci_bother_all()
        int i;
        
        for (i = 0; i < nbothers; i++)
-               pci_write16(bothers[i].bus, bothers[i].dev, bothers[i].fn, 0x0);
+               pci_write16(bothers[i].bus, bothers[i].dev, bothers[i].fn, 0x04, 0x0);
 }
 
 void pci_unbother_all()
@@ -37,5 +38,5 @@ void pci_unbother_all()
        int i;
        
        for (i = 0; i < nbothers; i++)
-               pci_write16(bothers[i].bus, bothers[i].dev, bothers[i].fn, bothers[i].origstate);
+               pci_write16(bothers[i].bus, bothers[i].dev, bothers[i].fn, 0x04, bothers[i].origstate);
 }
This page took 0.023808 seconds and 4 git commands to generate.