summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/local/pcib_if.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-04-04 09:36:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-04-04 14:46:23 +0200
commitde8a76da2f374792594ce03a203b3f30e4889f6f (patch)
tree12b5e1e59358005c3c522955c08aee4795e4829c /rtemsbsd/include/rtems/bsd/local/pcib_if.h
parentEnable bridging by default (diff)
downloadrtems-libbsd-de8a76da2f374792594ce03a203b3f30e4889f6f.tar.bz2
Update to FreeBSD head 2017-04-04
Git mirror commit 642b174daddbd0efd9bb5f242c43f4ab4db6869f.
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/local/pcib_if.h')
-rw-r--r--rtemsbsd/include/rtems/bsd/local/pcib_if.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/pcib_if.h b/rtemsbsd/include/rtems/bsd/local/pcib_if.h
index a7c06c31..a362d74f 100644
--- a/rtemsbsd/include/rtems/bsd/local/pcib_if.h
+++ b/rtemsbsd/include/rtems/bsd/local/pcib_if.h
@@ -214,4 +214,18 @@ static __inline void PCIB_DECODE_RID(device_t pcib, uint16_t rid, int *bus,
((pcib_decode_rid_t *) _m)(pcib, rid, bus, slot, func);
}
+/** @brief Unique descriptor for the PCIB_REQUEST_FEATURE() method */
+extern struct kobjop_desc pcib_request_feature_desc;
+/** @brief A function implementing the PCIB_REQUEST_FEATURE() method */
+typedef int pcib_request_feature_t(device_t pcib, device_t dev,
+ enum pci_feature feature);
+
+static __inline int PCIB_REQUEST_FEATURE(device_t pcib, device_t dev,
+ enum pci_feature feature)
+{
+ kobjop_t _m;
+ KOBJOPLOOKUP(((kobj_t)pcib)->ops,pcib_request_feature);
+ return ((pcib_request_feature_t *) _m)(pcib, dev, feature);
+}
+
#endif /* _pcib_if_h_ */