From 9009df51237ea0c30916feaba75f456afc112d20 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 24 Oct 2019 02:28:28 +0000 Subject: [PATCH] MFC r342865: 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 --- stand/i386/libfirewire/firewire.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stand/i386/libfirewire/firewire.c b/stand/i386/libfirewire/firewire.c index f961f2b1f30..b9cb1ec0b19 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); -- 2.45.0