1 /*
2  * u_uvc.h
3  *
4  * Utility definitions for the uvc function
5  *
6  * Copyright (c) 2013-2014 Samsung Electronics Co., Ltd.
7  *		http://www.samsung.com
8  *
9  * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2 as
13  * published by the Free Software Foundation.
14  */
15 
16 #ifndef U_UVC_H
17 #define U_UVC_H
18 
19 #include <linux/usb/composite.h>
20 
21 #define to_f_uvc_opts(f)	container_of(f, struct f_uvc_opts, func_inst)
22 
23 struct f_uvc_opts {
24 	struct usb_function_instance			func_inst;
25 	unsigned int					uvc_gadget_trace_param;
26 	unsigned int					streaming_interval;
27 	unsigned int					streaming_maxpacket;
28 	unsigned int					streaming_maxburst;
29 	const struct uvc_descriptor_header * const	*fs_control;
30 	const struct uvc_descriptor_header * const	*ss_control;
31 	const struct uvc_descriptor_header * const	*fs_streaming;
32 	const struct uvc_descriptor_header * const	*hs_streaming;
33 	const struct uvc_descriptor_header * const	*ss_streaming;
34 };
35 
36 void uvc_set_trace_param(unsigned int trace);
37 
38 #endif /* U_UVC_H */
39 
40