diff options
author | jhb <jhb@FreeBSD.org> | 2011-03-23 13:10:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-03-23 13:10:15 +0000 |
commit | 00c3c01f4fbb02387e132c417f8a035d0366ee0d (patch) | |
tree | 69012038abf9668bf675409fa3f6a3717df04dbe /sys/dev/txp | |
parent | c38540fcc91acf7efba68d2816bd1ab0babb248a (diff) | |
download | FreeBSD-src-00c3c01f4fbb02387e132c417f8a035d0366ee0d.zip FreeBSD-src-00c3c01f4fbb02387e132c417f8a035d0366ee0d.tar.gz |
Do a sweep of the tree replacing calls to pci_find_extcap() with calls to
pci_find_cap() instead.
Diffstat (limited to 'sys/dev/txp')
-rw-r--r-- | sys/dev/txp/if_txp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 52d5c5f..e51489f 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -423,7 +423,7 @@ txp_attach(device_t dev) * advertise the whole capability anyway. */ ifp->if_capabilities = IFCAP_RXCSUM | IFCAP_TXCSUM; - if (pci_find_extcap(dev, PCIY_PMG, &pmc) == 0) + if (pci_find_cap(dev, PCIY_PMG, &pmc) == 0) ifp->if_capabilities |= IFCAP_WOL_MAGIC; /* Enable all capabilities. */ ifp->if_capenable = ifp->if_capabilities; @@ -1153,7 +1153,7 @@ txp_suspend(device_t dev) WRITE_REG(sc, TXP_IER, TXP_INTR_NONE); WRITE_REG(sc, TXP_IMR, TXP_INTR_ALL); txp_sleep(sc, sc->sc_ifp->if_capenable); - if (pci_find_extcap(sc->sc_dev, PCIY_PMG, &pmc) == 0) { + if (pci_find_cap(sc->sc_dev, PCIY_PMG, &pmc) == 0) { /* Request PME. */ pmstat = pci_read_config(sc->sc_dev, pmc + PCIR_POWER_STATUS, 2); @@ -1178,7 +1178,7 @@ txp_resume(device_t dev) sc = device_get_softc(dev); TXP_LOCK(sc); - if (pci_find_extcap(sc->sc_dev, PCIY_PMG, &pmc) == 0) { + if (pci_find_cap(sc->sc_dev, PCIY_PMG, &pmc) == 0) { /* Disable PME and clear PME status. */ pmstat = pci_read_config(sc->sc_dev, pmc + PCIR_POWER_STATUS, 2); |