mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Fix transposition of width and value arguments to pci_config_write()
when setting up the read request size. Pointed out by: kmacy
This commit is contained in:
parent
5128f7357c
commit
a8ebcb1bc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164520
@ -2765,7 +2765,7 @@ mxge_attach(device_t dev)
|
||||
|
||||
pectl = pci_read_config(dev, reg + 0x8, 2);
|
||||
pectl = (pectl & ~0x7000) | (5 << 12);
|
||||
pci_write_config(dev, reg + 0x8, 2, pectl);
|
||||
pci_write_config(dev, reg + 0x8, pectl, 2);
|
||||
}
|
||||
|
||||
/* Enable DMA and Memory space access */
|
||||
|
Loading…
Reference in New Issue
Block a user