diff options
author | jhb <jhb@FreeBSD.org> | 2005-12-20 19:57:47 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-12-20 19:57:47 +0000 |
commit | 54f0fa09adeb8b48cf9720bad8972ade5f309dd6 (patch) | |
tree | d42969ab9f53b3bfbc25950e5b419054fe00bd9f /sys/sparc64/pci | |
parent | 37263a9a306bf9b47c5defaca48fa687b42a1a75 (diff) | |
download | FreeBSD-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.c | 1 |
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), |