summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcireg.h
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/pcireg.h
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/pcireg.h')
-rw-r--r--sys/dev/pci/pcireg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 44b01b5..e0bbcc3 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -88,6 +88,11 @@
#define PCIM_MFDEV 0x80
#define PCIR_BIST 0x0f
+/* Capability Register Offsets */
+
+#define PCICAP_ID 0x0
+#define PCICAP_NEXTPTR 0x1
+
/* Capability Identification Numbers */
#define PCIY_PMG 0x01 /* PCI Power Management */
OpenPOWER on IntegriCloud