diff options
| author | Gavin Atkinson <gavin@FreeBSD.org> | 2012-10-24 19:04:17 +0000 |
|---|---|---|
| committer | Gavin Atkinson <gavin@FreeBSD.org> | 2012-10-24 19:04:17 +0000 |
| commit | 5ea65cf54e3d30c510bdff867eee7d219798b08c (patch) | |
| tree | 242542a2e1a330bace22153a9e698e8c8adb85e2 /sys/dev/re | |
| parent | 6cfaa6277d3c3d12745ca6b8704d13f87339eb3b (diff) | |
Notes
Diffstat (limited to 'sys/dev/re')
| -rw-r--r-- | sys/dev/re/if_re.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index a056ea770565..1cd00908b203 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -1343,14 +1343,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 |
