aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/et
diff options
context:
space:
mode:
authorGavin Atkinson <gavin@FreeBSD.org>2012-09-18 22:04:59 +0000
committerGavin Atkinson <gavin@FreeBSD.org>2012-09-18 22:04:59 +0000
commit389c8bd51ead1f1c111e8f8baad65762f6823ff4 (patch)
tree7ed0c63fa2cebe3a1c0f0d218ef7d4208fbecfc4 /sys/dev/et
parent0aa5c1bbf591b48a9c27a6a55746d2314cc955cf (diff)
Notes
Diffstat (limited to 'sys/dev/et')
-rw-r--r--sys/dev/et/if_et.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c
index bde680e5981d..dfdcde73438b 100644
--- a/sys/dev/et/if_et.c
+++ b/sys/dev/et/if_et.c
@@ -700,8 +700,8 @@ et_bus_config(struct et_softc *sc)
* max playload size
*/
val = pci_read_config(sc->dev,
- sc->sc_expcap + PCIR_EXPRESS_DEVICE_CAP, 4);
- max_plsz = val & PCIM_EXP_CAP_MAX_PAYLOAD;
+ sc->sc_expcap + PCIER_DEVICE_CAP, 4);
+ max_plsz = val & PCIEM_CAP_MAX_PAYLOAD;
switch (max_plsz) {
case ET_PCIV_DEVICE_CAPS_PLSZ_128:
@@ -732,7 +732,7 @@ et_bus_config(struct et_softc *sc)
* Set L0s and L1 latency timer to 2us
*/
val = pci_read_config(sc->dev, ET_PCIR_L0S_L1_LATENCY, 4);
- val &= ~(PCIM_LINK_CAP_L0S_EXIT | PCIM_LINK_CAP_L1_EXIT);
+ val &= ~(PCIEM_LINK_CAP_L0S_EXIT | PCIEM_LINK_CAP_L1_EXIT);
/* L0s exit latency : 2us */
val |= 0x00005000;
/* L1 exit latency : 2us */