summaryrefslogtreecommitdiffstats
path: root/sys/dev/ae/if_ae.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ae/if_ae.c')
-rw-r--r--sys/dev/ae/if_ae.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c
index d315607..eb9260d 100644
--- a/sys/dev/ae/if_ae.c
+++ b/sys/dev/ae/if_ae.c
@@ -341,7 +341,7 @@ ae_attach(device_t dev)
ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
IFQ_SET_READY(&ifp->if_snd);
- if (pci_find_extcap(dev, PCIY_PMG, &pmc) == 0) {
+ if (pci_find_cap(dev, PCIY_PMG, &pmc) == 0) {
ifp->if_capabilities |= IFCAP_WOL_MAGIC;
sc->flags |= AE_FLAG_PMG;
}
@@ -929,7 +929,7 @@ ae_check_eeprom_present(ae_softc_t *sc, int *vpdc)
val &= ~AE_SPICTL_VPD_EN;
AE_WRITE_4(sc, AE_SPICTL_REG, val);
}
- error = pci_find_extcap(sc->dev, PCIY_VPD, vpdc);
+ error = pci_find_cap(sc->dev, PCIY_VPD, vpdc);
return (error);
}
@@ -1383,7 +1383,7 @@ ae_pm_init(ae_softc_t *sc)
/*
* Configure PME.
*/
- pci_find_extcap(sc->dev, PCIY_PMG, &pmc);
+ pci_find_cap(sc->dev, PCIY_PMG, &pmc);
pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2);
pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE);
if ((ifp->if_capenable & IFCAP_WOL) != 0)
OpenPOWER on IntegriCloud