aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bge
diff options
context:
space:
mode:
authorGavin Atkinson <gavin@FreeBSD.org>2012-10-24 19:04:17 +0000
committerGavin Atkinson <gavin@FreeBSD.org>2012-10-24 19:04:17 +0000
commit5ea65cf54e3d30c510bdff867eee7d219798b08c (patch)
tree242542a2e1a330bace22153a9e698e8c8adb85e2 /sys/dev/bge
parent6cfaa6277d3c3d12745ca6b8704d13f87339eb3b (diff)
Notes
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index b85dc942601c..f98051e0595b 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -3650,17 +3650,17 @@ bge_reset(struct bge_softc *sc)
pci_write_config(dev, 0xC4, val | (1 << 15), 4);
}
devctl = pci_read_config(dev,
- sc->bge_expcap + PCIR_EXPRESS_DEVICE_CTL, 2);
+ sc->bge_expcap + PCIER_DEVICE_CTL, 2);
/* Clear enable no snoop and disable relaxed ordering. */
- devctl &= ~(PCIM_EXP_CTL_RELAXED_ORD_ENABLE |
- PCIM_EXP_CTL_NOSNOOP_ENABLE);
- pci_write_config(dev, sc->bge_expcap + PCIR_EXPRESS_DEVICE_CTL,
+ devctl &= ~(PCIEM_CTL_RELAXED_ORD_ENABLE |
+ PCIEM_CTL_NOSNOOP_ENABLE);
+ pci_write_config(dev, sc->bge_expcap + PCIER_DEVICE_CTL,
devctl, 2);
/* Clear error status. */
- pci_write_config(dev, sc->bge_expcap + PCIR_EXPRESS_DEVICE_STA,
- PCIM_EXP_STA_CORRECTABLE_ERROR |
- PCIM_EXP_STA_NON_FATAL_ERROR | PCIM_EXP_STA_FATAL_ERROR |
- PCIM_EXP_STA_UNSUPPORTED_REQ, 2);
+ pci_write_config(dev, sc->bge_expcap + PCIER_DEVICE_STA,
+ PCIEM_STA_CORRECTABLE_ERROR |
+ PCIEM_STA_NON_FATAL_ERROR | PCIEM_STA_FATAL_ERROR |
+ PCIEM_STA_UNSUPPORTED_REQ, 2);
}
/* Reset some of the PCI state that got zapped by reset. */