summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2006-11-22 18:47:24 +0000
committergallatin <gallatin@FreeBSD.org>2006-11-22 18:47:24 +0000
commit74662be6c0d18bb0418dc721a9c34f28d437c478 (patch)
tree7914a8639bff6b1b3fa774e4110af4b146205805 /sys
parentb163ab721d36eb09ac8452878f52637d4b5708ae (diff)
downloadFreeBSD-src-74662be6c0d18bb0418dc721a9c34f28d437c478.zip
FreeBSD-src-74662be6c0d18bb0418dc721a9c34f28d437c478.tar.gz
Fix transposition of width and value arguments to pci_config_write()
when setting up the read request size. Pointed out by: kmacy
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mxge/if_mxge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index fb7dbae..a50d6c5 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 */
OpenPOWER on IntegriCloud