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_MSM_GESTURES_H
20 #define __LINUX_MSM_GESTURES_H
21 #include <linux/types.h>
22 #include <linux/ioctl.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <media/msm_camera.h>
25 #define MSM_GES_IOCTL_CTRL_COMMAND   _IOW('V', BASE_VIDIOC_PRIVATE + 20, struct v4l2_control)
26 #define VIDIOC_MSM_GESTURE_EVT   _IOWR('V', BASE_VIDIOC_PRIVATE + 21, struct v4l2_event)
27 #define MSM_GES_GET_EVT_PAYLOAD   _IOW('V', BASE_VIDIOC_PRIVATE + 22, struct msm_ges_evt)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define VIDIOC_MSM_GESTURE_CAM_EVT   _IOWR('V', BASE_VIDIOC_PRIVATE + 23, int)
30 #define MSM_GES_RESP_V4L2 MSM_CAM_RESP_MAX
31 #define MSM_GES_RESP_MAX (MSM_GES_RESP_V4L2 + 1)
32 #define MSM_SVR_RESP_MAX MSM_GES_RESP_MAX
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define MSM_V4L2_GES_BASE 100
35 #define MSM_V4L2_GES_OPEN (MSM_V4L2_GES_BASE + 0)
36 #define MSM_V4L2_GES_CLOSE (MSM_V4L2_GES_BASE + 1)
37 #define MSM_V4L2_GES_CAM_OPEN (MSM_V4L2_GES_BASE + 2)
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define MSM_V4L2_GES_CAM_CLOSE (MSM_V4L2_GES_BASE + 3)
40 #define MSM_GES_APP_EVT_MIN (V4L2_EVENT_PRIVATE_START + 0x14)
41 #define MSM_GES_APP_NOTIFY_EVENT (MSM_GES_APP_EVT_MIN + 0)
42 #define MSM_GES_APP_NOTIFY_ERROR_EVENT (MSM_GES_APP_EVT_MIN + 1)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define MSM_GES_APP_EVT_MAX (MSM_GES_APP_EVT_MIN + 2)
45 #define MSM_GESTURE_CID_CTRL_CMD V4L2_CID_BRIGHTNESS
46 #define MAX_GES_EVENTS 25
47 struct msm_ges_ctrl_cmd {
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  int type;
50  void *value;
51  int len;
52  int fd;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  uint32_t cookie;
55 };
56 struct msm_ges_evt {
57  void *evt_data;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  int evt_len;
60 };
61 #endif
62 
63