summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_if.m
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/dev/pci/pci_if.m
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/dev/pci/pci_if.m')
-rw-r--r--sys/dev/pci/pci_if.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_if.m b/sys/dev/pci/pci_if.m
index 107746b..0de5696 100644
--- a/sys/dev/pci/pci_if.m
+++ b/sys/dev/pci/pci_if.m
@@ -82,3 +82,10 @@ METHOD int assign_interrupt {
device_t dev;
device_t child;
};
+
+METHOD int find_extcap {
+ device_t dev;
+ device_t child;
+ int capability;
+ int *capreg;
+};
OpenPOWER on IntegriCloud