blob: ec81da4d258beccc6b1a0a936913ed8dc60e1c3e [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris9ce28842018-10-25 12:11:39 -07007#ifndef __LINUX_USB_G_UVC_H
8#define __LINUX_USB_G_UVC_H
9#include <linux/ioctl.h>
10#include <linux/types.h>
11#include <linux/usb/ch9.h>
12#define UVC_EVENT_FIRST (V4L2_EVENT_PRIVATE_START + 0)
13#define UVC_EVENT_CONNECT (V4L2_EVENT_PRIVATE_START + 0)
14#define UVC_EVENT_DISCONNECT (V4L2_EVENT_PRIVATE_START + 1)
15#define UVC_EVENT_STREAMON (V4L2_EVENT_PRIVATE_START + 2)
16#define UVC_EVENT_STREAMOFF (V4L2_EVENT_PRIVATE_START + 3)
17#define UVC_EVENT_SETUP (V4L2_EVENT_PRIVATE_START + 4)
18#define UVC_EVENT_DATA (V4L2_EVENT_PRIVATE_START + 5)
19#define UVC_EVENT_LAST (V4L2_EVENT_PRIVATE_START + 5)
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080020#define UVC_STRING_CONTROL_IDX 0
21#define UVC_STRING_STREAMING_IDX 1
Christopher Ferris9ce28842018-10-25 12:11:39 -070022struct uvc_request_data {
23 __s32 length;
24 __u8 data[60];
25};
26struct uvc_event {
27 union {
28 enum usb_device_speed speed;
29 struct usb_ctrlrequest req;
30 struct uvc_request_data data;
31 };
32};
33#define UVCIOC_SEND_RESPONSE _IOW('U', 1, struct uvc_request_data)
34#endif