• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __LINUX_USB_G_UVC_H
20 #define __LINUX_USB_G_UVC_H
21 #include <linux/ioctl.h>
22 #include <linux/types.h>
23 #include <linux/usb/ch9.h>
24 #define UVC_EVENT_FIRST (V4L2_EVENT_PRIVATE_START + 0)
25 #define UVC_EVENT_CONNECT (V4L2_EVENT_PRIVATE_START + 0)
26 #define UVC_EVENT_DISCONNECT (V4L2_EVENT_PRIVATE_START + 1)
27 #define UVC_EVENT_STREAMON (V4L2_EVENT_PRIVATE_START + 2)
28 #define UVC_EVENT_STREAMOFF (V4L2_EVENT_PRIVATE_START + 3)
29 #define UVC_EVENT_SETUP (V4L2_EVENT_PRIVATE_START + 4)
30 #define UVC_EVENT_DATA (V4L2_EVENT_PRIVATE_START + 5)
31 #define UVC_EVENT_LAST (V4L2_EVENT_PRIVATE_START + 5)
32 struct uvc_request_data {
33   __s32 length;
34   __u8 data[60];
35 };
36 struct uvc_event {
37   union {
38     enum usb_device_speed speed;
39     struct usb_ctrlrequest req;
40     struct uvc_request_data data;
41   };
42 };
43 #define UVCIOC_SEND_RESPONSE _IOW('U', 1, struct uvc_request_data)
44 #endif
45