From a8ebcb1bc0423d6a9b0703dfb94bce3e8af9eae0 Mon Sep 17 00:00:00 2001
From: Andrew Gallatin <gallatin@FreeBSD.org>
Date: Wed, 22 Nov 2006 18:47:24 +0000
Subject: [PATCH] Fix transposition of width and value arguments to
 pci_config_write() when setting up the read request size.

Pointed out by: kmacy
---
 sys/dev/mxge/if_mxge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */