diff options
author | gibbs <gibbs@FreeBSD.org> | 2004-08-22 14:02:43 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2004-08-22 14:02:43 +0000 |
commit | 1ef4b0140a51f8b23f38fc06ce17cb84093b83d8 (patch) | |
tree | b1d087bad4045eade3e9d92520355a50b394e3c7 /sys/dev/aic7xxx | |
parent | 07ab4a1b955cbdd07dee19ce56ca6cb53ab443d9 (diff) | |
download | FreeBSD-src-1ef4b0140a51f8b23f38fc06ce17cb84093b83d8.zip FreeBSD-src-1ef4b0140a51f8b23f38fc06ce17cb84093b83d8.tar.gz |
In the PCI error interrupt handler, specify the width of the PCI configuration
cycle using the correct argument. The location and width were reversed.
MFC in: 2 days
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx_pci.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_pci.c b/sys/dev/aic7xxx/aic7xxx_pci.c index 868b693..fcb90b9 100644 --- a/sys/dev/aic7xxx/aic7xxx_pci.c +++ b/sys/dev/aic7xxx/aic7xxx_pci.c @@ -2119,12 +2119,13 @@ ahc_pci_resume(struct ahc_softc *ahc) * that the OS doesn't know about and rely on our chip * reset handler to handle the rest. */ - aic_pci_write_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4, - ahc->bus_softc.pci_softc.devconfig); - aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1, - ahc->bus_softc.pci_softc.command); - aic_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, /*bytes*/1, - ahc->bus_softc.pci_softc.csize_lattime); + aic_pci_write_config(ahc->dev_softc, DEVCONFIG, + ahc->bus_softc.pci_softc.devconfig, /*bytes*/4); + aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, + ahc->bus_softc.pci_softc.command, /*bytes*/1); + aic_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, + ahc->bus_softc.pci_softc.csize_lattime, + /*bytes*/1); if ((ahc->flags & AHC_HAS_TERM_LOGIC) != 0) { struct seeprom_descriptor sd; u_int sxfrctl1; |