u_uvc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef U_UVC_H
  16. #define U_UVC_H
  17. #include <linux/usb/composite.h>
  18. #define to_f_uvc_opts(f) container_of(f, struct f_uvc_opts, func_inst)
  19. struct f_uvc_opts {
  20. struct usb_function_instance func_inst;
  21. unsigned int uvc_gadget_trace_param;
  22. unsigned int streaming_interval;
  23. unsigned int streaming_maxpacket;
  24. unsigned int streaming_maxburst;
  25. const struct uvc_descriptor_header * const *fs_control;
  26. const struct uvc_descriptor_header * const *ss_control;
  27. const struct uvc_descriptor_header * const *fs_streaming;
  28. const struct uvc_descriptor_header * const *hs_streaming;
  29. const struct uvc_descriptor_header * const *ss_streaming;
  30. };
  31. void uvc_set_trace_param(unsigned int trace);
  32. #endif /* U_UVC_H */