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:
Andrew Gallatin 2006-11-22 18:47:24 +00:00
parent 5128f7357c
commit a8ebcb1bc0

View File

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