summaryrefslogtreecommitdiff
path: root/configfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'configfs.h')
-rw-r--r--configfs.h53
1 files changed, 42 insertions, 11 deletions
diff --git a/configfs.h b/configfs.h
index b5c7480..9f7f377 100644
--- a/configfs.h
+++ b/configfs.h
@@ -11,25 +11,56 @@
#define __CONFIGFS_H__
/*
+ * struct uvc_function_config_endpoint - Endpoint parameters
+ * @bInterval: Transfer interval (interrupt and isochronous only)
+ * @bMaxBurst: Transfer burst size (super-speed only)
+ * @wMaxPacketSize: Maximum packet size (including the multiplier)
+ */
+struct uvc_function_config_endpoint {
+ unsigned int bInterval;
+ unsigned int bMaxBurst;
+ unsigned int wMaxPacketSize;
+};
+
+/*
+ * struct uvc_function_config_interface - Interface parameters
+ * @bInterfaceNumber: Interface number
+ */
+struct uvc_function_config_interface {
+ unsigned int bInterfaceNumber;
+};
+
+/*
+ * struct uvc_function_config_control - Control interface parameters
+ * @intf: Generic interface parameters
+ */
+struct uvc_function_config_control {
+ struct uvc_function_config_interface intf;
+};
+
+/*
+ * struct uvc_function_config_streaming - Streaming interface parameters
+ * @intf: Generic interface parameters
+ * @ep: Endpoint parameters
+ */
+struct uvc_function_config_streaming {
+ struct uvc_function_config_interface intf;
+ struct uvc_function_config_endpoint ep;
+};
+
+/*
* struct uvc_function_config - UVC function configuration parameters
* @video: Full path to the video device node
* @udc: UDC name
- * @control_interface: Control interface number
- * @streaming_interface: Streaming interface number
- * @streaming_interval: Isochronous interval for the streaming endpoint
- * @streaming_maxburts: Isochronous maximum burst for the streaming endpoint
- * @streaming_maxpacket: Isochronous maximum packets for the streaming endpoint
+ * @control: Control interface configuration
+ * @streaming: Streaming interface configuration
*/
struct uvc_function_config {
char *video;
char *udc;
- unsigned int control_interface;
- unsigned int streaming_interface;
-
- unsigned int streaming_interval;
- unsigned int streaming_maxburst;
- unsigned int streaming_maxpacket;
+ struct uvc_function_config_control control;
+ struct uvc_function_config_streaming streaming;
};
struct uvc_function_config *configfs_parse_uvc_function(const char *function);