aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-01-08 20:01:56 +0000
committerWarner Losh <imp@FreeBSD.org>2019-01-08 20:01:56 +0000
commit2cd8f54b8755a898349de3951c89cbdc32725e72 (patch)
tree4241544375758e25e31aa3c2629b50fed5868d23
parentbb376a990cfbc7ebece8faa245e2530fce163c33 (diff)
downloadsrc-2cd8f54b8755a898349de3951c89cbdc32725e72.tar.gz
src-2cd8f54b8755a898349de3951c89cbdc32725e72.zip
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
Notes
Notes: svn path=/head/; revision=342865
-rw-r--r--stand/i386/libfirewire/firewire.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stand/i386/libfirewire/firewire.c b/stand/i386/libfirewire/firewire.c
index f961f2b1f300..b9cb1ec0b19a 100644
--- a/stand/i386/libfirewire/firewire.c
+++ b/stand/i386/libfirewire/firewire.c
@@ -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);