summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
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/bge
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/bge')
-rw-r--r--sys/dev/bge/if_bge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index e5318c2..b1fc382 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -2883,7 +2883,7 @@ bge_attach(device_t dev)
/*
* Check if this is a PCI-X or PCI Express device.
*/
- if (pci_find_extcap(dev, PCIY_EXPRESS, &reg) == 0) {
+ if (pci_find_cap(dev, PCIY_EXPRESS, &reg) == 0) {
/*
* Found a PCI Express capabilities register, this
* must be a PCI Express device.
@@ -2897,7 +2897,7 @@ bge_attach(device_t dev)
* Check if the device is in PCI-X Mode.
* (This bit is not valid on PCI Express controllers.)
*/
- if (pci_find_extcap(dev, PCIY_PCIX, &reg) == 0)
+ if (pci_find_cap(dev, PCIY_PCIX, &reg) == 0)
sc->bge_pcixcap = reg;
if ((pci_read_config(dev, BGE_PCI_PCISTATE, 4) &
BGE_PCISTATE_PCI_BUSMODE) == 0)
@@ -2917,7 +2917,7 @@ bge_attach(device_t dev)
* normal operation.
*/
rid = 0;
- if (pci_find_extcap(sc->bge_dev, PCIY_MSI, &reg) == 0) {
+ if (pci_find_cap(sc->bge_dev, PCIY_MSI, &reg) == 0) {
sc->bge_msicap = reg;
if (bge_can_use_msi(sc)) {
msicount = pci_msi_count(dev);
OpenPOWER on IntegriCloud