diff options
Diffstat (limited to 'sys/dev/ale/if_ale.c')
-rw-r--r-- | sys/dev/ale/if_ale.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ale/if_ale.c b/sys/dev/ale/if_ale.c index dac0351..e4272df 100644 --- a/sys/dev/ale/if_ale.c +++ b/sys/dev/ale/if_ale.c @@ -330,7 +330,7 @@ ale_get_macaddr(struct ale_softc *sc) CSR_WRITE_4(sc, ALE_SPI_CTRL, reg); } - if (pci_find_extcap(sc->ale_dev, PCIY_VPD, &vpdc) == 0) { + if (pci_find_cap(sc->ale_dev, PCIY_VPD, &vpdc) == 0) { /* * PCI VPD capability found, let TWSI reload EEPROM. * This will set ethernet address of controller. @@ -544,7 +544,7 @@ ale_attach(device_t dev) } /* Get DMA parameters from PCIe device control register. */ - if (pci_find_extcap(dev, PCIY_EXPRESS, &i) == 0) { + if (pci_find_cap(dev, PCIY_EXPRESS, &i) == 0) { sc->ale_flags |= ALE_FLAG_PCIE; burst = pci_read_config(dev, i + 0x08, 2); /* Max read request size. */ @@ -591,7 +591,7 @@ ale_attach(device_t dev) IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_RXCSUM | IFCAP_TXCSUM | IFCAP_TSO4; ifp->if_hwassist = ALE_CSUM_FEATURES | CSUM_TSO; - if (pci_find_extcap(dev, PCIY_PMG, &pmc) == 0) { + if (pci_find_cap(dev, PCIY_PMG, &pmc) == 0) { sc->ale_flags |= ALE_FLAG_PMCAP; ifp->if_capabilities |= IFCAP_WOL_MAGIC | IFCAP_WOL_MCAST; } @@ -1469,7 +1469,7 @@ ale_setwol(struct ale_softc *sc) ALE_LOCK_ASSERT(sc); - if (pci_find_extcap(sc->ale_dev, PCIY_PMG, &pmc) != 0) { + if (pci_find_cap(sc->ale_dev, PCIY_PMG, &pmc) != 0) { /* Disable WOL. */ CSR_WRITE_4(sc, ALE_WOL_CFG, 0); reg = CSR_READ_4(sc, ALE_PCIE_PHYMISC); @@ -1548,7 +1548,7 @@ ale_resume(device_t dev) sc = device_get_softc(dev); ALE_LOCK(sc); - if (pci_find_extcap(sc->ale_dev, PCIY_PMG, &pmc) == 0) { + if (pci_find_cap(sc->ale_dev, PCIY_PMG, &pmc) == 0) { /* Disable PME and clear PME status. */ pmstat = pci_read_config(sc->ale_dev, pmc + PCIR_POWER_STATUS, 2); |