diff options
author | Andrew Gallatin <gallatin@FreeBSD.org> | 2006-11-22 18:47:24 +0000 |
---|---|---|
committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2006-11-22 18:47:24 +0000 |
commit | a8ebcb1bc0423d6a9b0703dfb94bce3e8af9eae0 (patch) | |
tree | 7914a8639bff6b1b3fa774e4110af4b146205805 /sys/dev | |
parent | 5128f7357c3e1b2b0cd3ecbfed3802bfd2820144 (diff) | |
download | src-a8ebcb1bc0423d6a9b0703dfb94bce3e8af9eae0.tar.gz src-a8ebcb1bc0423d6a9b0703dfb94bce3e8af9eae0.zip |
Fix transposition of width and value arguments to pci_config_write()
when setting up the read request size.
Pointed out by: kmacy
Notes
Notes:
svn path=/head/; revision=164520
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mxge/if_mxge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index fb7dbae336e8..a50d6c50bee6 100644 --- a/sys/dev/mxge/if_mxge.c +++ b/sys/dev/mxge/if_mxge.c @@ -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 */ |