mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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
This commit is contained in:
parent
bb376a990c
commit
2cd8f54b87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342865
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue