summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/local/usb_if.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/local/usb_if.h')
-rw-r--r--rtemsbsd/include/rtems/bsd/local/usb_if.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/usb_if.h b/rtemsbsd/include/rtems/bsd/local/usb_if.h
index 6f4a15a3..1c5b9199 100644
--- a/rtemsbsd/include/rtems/bsd/local/usb_if.h
+++ b/rtemsbsd/include/rtems/bsd/local/usb_if.h
@@ -3,7 +3,7 @@
* Do not modify anything in here by hand.
*
* Created from source file
- * dev/usb/usb_if.m
+ * freebsd-org/sys/dev/usb/usb_if.m
* with
* makeobjops.awk
*
@@ -28,4 +28,16 @@ static __inline int USB_HANDLE_REQUEST(device_t dev, const void *req,
return ((usb_handle_request_t *) _m)(dev, req, pptr, plen, offset, pstate);
}
+/** @brief Unique descriptor for the USB_TAKE_CONTROLLER() method */
+extern struct kobjop_desc usb_take_controller_desc;
+/** @brief A function implementing the USB_TAKE_CONTROLLER() method */
+typedef int usb_take_controller_t(device_t dev);
+
+static __inline int USB_TAKE_CONTROLLER(device_t dev)
+{
+ kobjop_t _m;
+ KOBJOPLOOKUP(((kobj_t)dev)->ops,usb_take_controller);
+ return ((usb_take_controller_t *) _m)(dev);
+}
+
#endif /* _usb_if_h_ */