summaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/if_bxe.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-03-23 13:10:15 +0000
committerjhb <jhb@FreeBSD.org>2011-03-23 13:10:15 +0000
commit00c3c01f4fbb02387e132c417f8a035d0366ee0d (patch)
tree69012038abf9668bf675409fa3f6a3717df04dbe /sys/dev/bxe/if_bxe.c
parentc38540fcc91acf7efba68d2816bd1ab0babb248a (diff)
downloadFreeBSD-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/bxe/if_bxe.c')
-rw-r--r--sys/dev/bxe/if_bxe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/bxe/if_bxe.c b/sys/dev/bxe/if_bxe.c
index 2d81933..f3e5e16 100644
--- a/sys/dev/bxe/if_bxe.c
+++ b/sys/dev/bxe/if_bxe.c
@@ -1568,7 +1568,7 @@ bxe_probe_pci_caps(struct bxe_softc *sc)
DBENTER(BXE_EXTREME_LOAD);
/* Check if PCI Power Management capability is enabled. */
- if (pci_find_extcap(dev, PCIY_PMG, &reg) == 0) {
+ if (pci_find_cap(dev, PCIY_PMG, &reg) == 0) {
if (reg != 0) {
DBPRINT(sc, BXE_EXTREME_LOAD,
"%s(): Found PM capability at 0x%04X\n",
@@ -1578,7 +1578,7 @@ bxe_probe_pci_caps(struct bxe_softc *sc)
}
/* Check if PCIe capability is enabled. */
- if (pci_find_extcap(dev, PCIY_EXPRESS, &reg) == 0) {
+ if (pci_find_cap(dev, PCIY_EXPRESS, &reg) == 0) {
if (reg != 0) {
link_status = pci_read_config(dev, reg + 0x12, 2);
@@ -1612,7 +1612,7 @@ bxe_probe_pci_caps(struct bxe_softc *sc)
/* Check if MSI capability is enabled. */
- if (pci_find_extcap(dev, PCIY_MSI, &reg) == 0) {
+ if (pci_find_cap(dev, PCIY_MSI, &reg) == 0) {
if (reg != 0) {
DBPRINT(sc, BXE_EXTREME_LOAD,
"%s(): Found MSI capability at 0x%04X\n",
@@ -1622,7 +1622,7 @@ bxe_probe_pci_caps(struct bxe_softc *sc)
}
/* Check if MSI-X capability is enabled. */
- if (pci_find_extcap(dev, PCIY_MSIX, &reg) == 0) {
+ if (pci_find_cap(dev, PCIY_MSIX, &reg) == 0) {
if (reg != 0) {
DBPRINT(sc, BXE_EXTREME_LOAD,
"%s(): Found MSI-X capability at 0x%04X\n",
OpenPOWER on IntegriCloud