aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcib_if.m
diff options
context:
space:
mode:
authorRyan Stone <rstone@FreeBSD.org>2014-04-01 15:47:24 +0000
committerRyan Stone <rstone@FreeBSD.org>2014-04-01 15:47:24 +0000
commit5605a99e36d2abf714935b2a873302b402d00992 (patch)
tree7f0e06bae021b9d1686170505f33592cd7ef149b /sys/dev/pci/pcib_if.m
parent7036ae46bf60ad64447bc9ab2152256b89dd5e5f (diff)
downloadsrc-5605a99e36d2abf714935b2a873302b402d00992.tar.gz
src-5605a99e36d2abf714935b2a873302b402d00992.zip
Add a method to get the PCI RID for a device.
Reviewed by: kib MFC after: 2 months Sponsored by: Sandvine Inc.
Notes
Notes: svn path=/head/; revision=264007
Diffstat (limited to 'sys/dev/pci/pcib_if.m')
-rw-r--r--sys/dev/pci/pcib_if.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/pci/pcib_if.m b/sys/dev/pci/pcib_if.m
index b946c0f0541b..e8147da164ce 100644
--- a/sys/dev/pci/pcib_if.m
+++ b/sys/dev/pci/pcib_if.m
@@ -154,3 +154,12 @@ METHOD int power_for_sleep {
device_t dev;
int *pstate;
};
+
+#
+# Return the PCI Routing Identifier (RID) for the device.
+#
+METHOD uint16_t get_rid {
+ device_t pcib;
+ device_t dev;
+};
+