Author: imp
Date: Tue Jan  8 20:01:56 2019
New Revision: 342865
URL: https://svnweb.freebsd.org/changeset/base/342865

Log:
  biospci_write_config args were backwards
  
  biospci_write_config args swapped length and value to write. Some
  hardware coped just fine, while other hardware had issues.
  
  PR: 155441
  Submitted by: longwitz at incore dot de

Modified:
  head/stand/i386/libfirewire/firewire.c

Modified: head/stand/i386/libfirewire/firewire.c
==============================================================================
--- head/stand/i386/libfirewire/firewire.c      Tue Jan  8 17:21:59 2019        
(r342864)
+++ head/stand/i386/libfirewire/firewire.c      Tue Jan  8 20:01:56 2019        
(r342865)
@@ -107,9 +107,9 @@ fw_probe(int index, struct fwohci_softc *sc)
        }
 
        biospci_write_config(sc->locator,
-               0x4     /* command */,
-               0x6     /* enable bus master and memory mapped I/O */,
-               BIOSPCI_16BITS);
+           0x4 /* command */,
+           BIOSPCI_16BITS,
+           0x6 /* enable bus master and memory mapped I/O */);
 
        biospci_read_config(sc->locator, 0x00 /*devid*/, BIOSPCI_32BITS,
                &sc->devid);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to