aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/re
diff options
context:
space:
mode:
authorGavin Atkinson <gavin@FreeBSD.org>2012-10-28 13:21:35 +0000
committerGavin Atkinson <gavin@FreeBSD.org>2012-10-28 13:21:35 +0000
commit8a605e84584bb76fcd9578434bedc36c155f6761 (patch)
tree10515a8845044bf00f1b699e1d13ed2dac342173 /sys/dev/re
parent3ee0defb87c777b911b41428ea2110d397c0b1b9 (diff)
Notes
Diffstat (limited to 'sys/dev/re')
-rw-r--r--sys/dev/re/if_re.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index e11513df57c2..7796e04b50f3 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -1344,14 +1344,14 @@ re_attach(device_t dev)
/* Disable ASPM L0S/L1. */
if (sc->rl_expcap != 0) {
cap = pci_read_config(dev, sc->rl_expcap +
- PCIR_EXPRESS_LINK_CAP, 2);
- if ((cap & PCIM_LINK_CAP_ASPM) != 0) {
+ PCIER_LINK_CAP, 2);
+ if ((cap & PCIEM_LINK_CAP_ASPM) != 0) {
ctl = pci_read_config(dev, sc->rl_expcap +
- PCIR_EXPRESS_LINK_CTL, 2);
+ PCIER_LINK_CTL, 2);
if ((ctl & 0x0003) != 0) {
ctl &= ~0x0003;
pci_write_config(dev, sc->rl_expcap +
- PCIR_EXPRESS_LINK_CTL, ctl, 2);
+ PCIER_LINK_CTL, ctl, 2);
device_printf(dev, "ASPM disabled\n");
}
} else