X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4d898e0be101cef5e2a09fe78a04c695c44cdb6b..d6f56afa7470cf4c29f4f9fa4bf2dd1bd0ba9193:/pci/pci-bother.c diff --git a/pci/pci-bother.c b/pci/pci-bother.c index 0c3c0ec..dd1ff21 100644 --- a/pci/pci-bother.c +++ b/pci/pci-bother.c @@ -1,4 +1,5 @@ #include +#include 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); }