Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 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) |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 32 | #define UVC_STRING_CONTROL_IDX 0 |
| 33 | #define UVC_STRING_STREAMING_IDX 1 |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 34 | struct uvc_request_data { |
| 35 | __s32 length; |
| 36 | __u8 data[60]; |
| 37 | }; |
| 38 | struct uvc_event { |
| 39 | union { |
| 40 | enum usb_device_speed speed; |
| 41 | struct usb_ctrlrequest req; |
| 42 | struct uvc_request_data data; |
| 43 | }; |
| 44 | }; |
| 45 | #define UVCIOC_SEND_RESPONSE _IOW('U', 1, struct uvc_request_data) |
| 46 | #endif |