summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-12-20 19:57:47 +0000
committerjhb <jhb@FreeBSD.org>2005-12-20 19:57:47 +0000
commit54f0fa09adeb8b48cf9720bad8972ade5f309dd6 (patch)
treed42969ab9f53b3bfbc25950e5b419054fe00bd9f /sys/sparc64/pci
parent37263a9a306bf9b47c5defaca48fa687b42a1a75 (diff)
downloadFreeBSD-src-54f0fa09adeb8b48cf9720bad8972ade5f309dd6.zip
FreeBSD-src-54f0fa09adeb8b48cf9720bad8972ade5f309dd6.tar.gz
Add a new method PCI_FIND_EXTCAP() to the pci bus interface that is used
to search for a specific extended capability. If the specified capability is found for the given device, then the function returns success and optionally returns the offset of that capability. If the capability is not found, the function returns an error.
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r--sys/sparc64/pci/ofw_pcibus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/pci/ofw_pcibus.c b/sys/sparc64/pci/ofw_pcibus.c
index 0ee2456..b986a57 100644
--- a/sys/sparc64/pci/ofw_pcibus.c
+++ b/sys/sparc64/pci/ofw_pcibus.c
@@ -106,6 +106,7 @@ static device_method_t ofw_pcibus_methods[] = {
DEVMETHOD(pci_get_powerstate, pci_get_powerstate_method),
DEVMETHOD(pci_set_powerstate, pci_set_powerstate_method),
DEVMETHOD(pci_assign_interrupt, ofw_pcibus_assign_interrupt),
+ DEVMETHOD(pci_find_extcap, pci_find_extcap_method),
/* ofw_bus interface */
DEVMETHOD(ofw_bus_get_devinfo, ofw_pcibus_get_devinfo),
OpenPOWER on IntegriCloud