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/bge | |
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/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 6 |
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, ®) == 0) { + if (pci_find_cap(dev, PCIY_EXPRESS, ®) == 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, ®) == 0) + if (pci_find_cap(dev, PCIY_PCIX, ®) == 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, ®) == 0) { + if (pci_find_cap(sc->bge_dev, PCIY_MSI, ®) == 0) { sc->bge_msicap = reg; if (bge_can_use_msi(sc)) { msicount = pci_msi_count(dev); |