xref: /linux-6.15/drivers/usb/gadget/function/f_uvc.h (revision 3a83c16e)
1 /*
2  *	f_uvc.h  --  USB Video Class Gadget driver
3  *
4  *	Copyright (C) 2009-2010
5  *	    Laurent Pinchart ([email protected])
6  *
7  *	This program is free software; you can redistribute it and/or modify
8  *	it under the terms of the GNU General Public License as published by
9  *	the Free Software Foundation; either version 2 of the License, or
10  *	(at your option) any later version.
11  */
12 
13 #ifndef _F_UVC_H_
14 #define _F_UVC_H_
15 
16 #include <linux/usb/composite.h>
17 #include <linux/usb/video.h>
18 
19 #include "uvc.h"
20 
21 void uvc_function_setup_continue(struct uvc_device *uvc);
22 
23 void uvc_function_connect(struct uvc_device *uvc);
24 
25 void uvc_function_disconnect(struct uvc_device *uvc);
26 
27 int uvc_bind_config(struct usb_configuration *c,
28 		    const struct uvc_descriptor_header * const *fs_control,
29 		    const struct uvc_descriptor_header * const *hs_control,
30 		    const struct uvc_descriptor_header * const *fs_streaming,
31 		    const struct uvc_descriptor_header * const *hs_streaming,
32 		    const struct uvc_descriptor_header * const *ss_streaming,
33 		    unsigned int streaming_interval_webcam,
34 		    unsigned int streaming_maxpacket_webcam,
35 		    unsigned int streaming_maxburst_webcam,
36 		    unsigned int uvc_gadget_trace_webcam);
37 
38 #endif /* _F_UVC_H_ */
39 
40