1537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/**************************************************************************** 2537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani **************************************************************************** 3537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** 4537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** This header was automatically generated from a Linux kernel header 5537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** of the same name, to make information necessary for userspace to 6537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** call into the kernel available to libc. It contains only constants, 7537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** structures, and macros generated from the original header, and thus, 8537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** contains no copyrightable information. 9537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** 10537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** To edit the content of this header, modify the corresponding 11537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** source file (e.g. under external/kernel-headers/original/) then 12537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** run bionic/libc/kernel/tools/update_all.py 13537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** 14537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** Any manual change here will be lost the next time this script will 15537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** be run. You've been warned! 16537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani *** 17537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani **************************************************************************** 18537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani ****************************************************************************/ 19537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#ifndef __LINUX_MSMB_CAMERA_H 20537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define __LINUX_MSMB_CAMERA_H 21537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#include <linux/videodev2.h> 22537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#include <linux/types.h> 23537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#include <linux/ioctl.h> 25537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAM_V4L2_IOCTL_NOTIFY _IOW('V', BASE_VIDIOC_PRIVATE + 30, struct v4l2_event) 26537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAM_V4L2_IOCTL_NOTIFY_META _IOW('V', BASE_VIDIOC_PRIVATE + 31, struct v4l2_event) 27537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAM_V4L2_IOCTL_CMD_ACK _IOW('V', BASE_VIDIOC_PRIVATE + 32, struct v4l2_event) 28537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAM_V4L2_IOCTL_NOTIFY_ERROR _IOW('V', BASE_VIDIOC_PRIVATE + 33, struct v4l2_event) 30537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define QCAMERA_DEVICE_GROUP_ID 1 31537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define QCAMERA_VNODE_GROUP_ID 2 32537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_NAME "msm_camera" 33537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CONFIGURATION_NAME "msm_config" 35537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_CSIPHY 0 36537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_CSID 1 37537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_ISPIF 2 38537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_SUBDEV_VFE 3 40537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_AXI 4 41537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_VPE 5 42537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_SENSOR 6 43537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_SUBDEV_ACTUATOR 7 45537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_EEPROM 8 46537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_CPP 9 47537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_CCI 10 48537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 494071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_SUBDEV_LED_FLASH 11 50537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_STROBE_FLASH 12 51537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SUBDEV_BUF_MNGR 13 52537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_MAX_CAMERA_SENSORS 5 53537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 547a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_MAX_STREAM_BUF 40 554071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_FEATURE_BASE 0x00010000 56537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_FEATURE_SHUTDOWN (MSM_CAMERA_FEATURE_BASE + 1) 57537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_STATUS_BASE 0x00020000 58537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 597a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_STATUS_FAIL (MSM_CAMERA_STATUS_BASE + 1) 604071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_STATUS_SUCCESS (MSM_CAMERA_STATUS_BASE + 2) 61537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_V4L2_EVENT_TYPE (V4L2_EVENT_PRIVATE_START + 0x00002000) 62537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_EVENT_MIN 0 63537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 647a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_NEW_SESSION (MSM_CAMERA_EVENT_MIN + 1) 654071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_DEL_SESSION (MSM_CAMERA_EVENT_MIN + 2) 66537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_SET_PARM (MSM_CAMERA_EVENT_MIN + 3) 67537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_GET_PARM (MSM_CAMERA_EVENT_MIN + 4) 68537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 697a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_MAPPING_CFG (MSM_CAMERA_EVENT_MIN + 5) 704071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_MAPPING_SES (MSM_CAMERA_EVENT_MIN + 6) 71537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_MSM_NOTIFY (MSM_CAMERA_EVENT_MIN + 7) 72537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_EVENT_MAX (MSM_CAMERA_EVENT_MIN + 8) 73537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 747a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_PRIV_S_CROP (V4L2_CID_PRIVATE_BASE + 1) 754071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_PRIV_G_CROP (V4L2_CID_PRIVATE_BASE + 2) 76537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_PRIV_G_FMT (V4L2_CID_PRIVATE_BASE + 3) 77537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_PRIV_S_FMT (V4L2_CID_PRIVATE_BASE + 4) 78537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 797a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_PRIV_TRY_FMT (V4L2_CID_PRIVATE_BASE + 5) 804071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_PRIV_METADATA (V4L2_CID_PRIVATE_BASE + 6) 81537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_PRIV_QUERY_CAP (V4L2_CID_PRIVATE_BASE + 7) 82537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_PRIV_STREAM_ON (V4L2_CID_PRIVATE_BASE + 8) 83537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 847a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_PRIV_STREAM_OFF (V4L2_CID_PRIVATE_BASE + 9) 854071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_PRIV_NEW_STREAM (V4L2_CID_PRIVATE_BASE + 10) 86537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_PRIV_DEL_STREAM (V4L2_CID_PRIVATE_BASE + 11) 87537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_PRIV_SHUTDOWN (V4L2_CID_PRIVATE_BASE + 12) 88537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 897a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_PRIV_STREAM_INFO_SYNC (V4L2_CID_PRIVATE_BASE + 13) 904071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_CMD_SUCESS 0x00000001 91537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_BUF_MAP_SUCESS 0x00000002 92537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_CAMERA_ERR_EVT_BASE 0x00010000 93537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 947a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_CAMERA_ERR_CMD_FAIL (MSM_CAMERA_ERR_EVT_BASE + 1) 954071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_CAMERA_ERR_MAPPING (MSM_CAMERA_ERR_EVT_BASE + 2) 96537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudanistruct msm_v4l2_event_data { 97537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int command; 98537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 997a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim unsigned int status; 1004071280488d3a261c39278b404aacc8701daef3eBongkyu Kim unsigned int session_id; 101537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int stream_id; 102537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int map_op; 103537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1047a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim unsigned int map_buf_idx; 1054071280488d3a261c39278b404aacc8701daef3eBongkyu Kim unsigned int notify; 106537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int arg_value; 107537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int ret_value; 108537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1097a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim unsigned int nop3; 1104071280488d3a261c39278b404aacc8701daef3eBongkyu Kim unsigned int nop4; 111537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int nop5; 112537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int nop6; 113537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1147a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim unsigned int nop7; 1154071280488d3a261c39278b404aacc8701daef3eBongkyu Kim unsigned int nop8; 116537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int nop9; 117537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani}; 118537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1197a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kimstruct msm_v4l2_format_data { 1204071280488d3a261c39278b404aacc8701daef3eBongkyu Kim enum v4l2_buf_type type; 121537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int width; 122537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int height; 123537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1247a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim unsigned int pixelformat; 1254071280488d3a261c39278b404aacc8701daef3eBongkyu Kim unsigned char num_planes; 126537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani unsigned int plane_sizes[VIDEO_MAX_PLANES]; 127537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani}; 128537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1297a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define msm_v4l2_fourcc(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | ((__u32)(d) << 24)) 1304071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_V4L2_PIX_FMT_STATS_COMB v4l2_fourcc('S', 'T', 'C', 'M') 131537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_V4L2_PIX_FMT_STATS_AE v4l2_fourcc('S', 'T', 'A', 'E') 132537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_V4L2_PIX_FMT_STATS_AF v4l2_fourcc('S', 'T', 'A', 'F') 133537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1347a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_V4L2_PIX_FMT_STATS_AWB v4l2_fourcc('S', 'T', 'W', 'B') 1354071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_V4L2_PIX_FMT_STATS_IHST v4l2_fourcc('I', 'H', 'S', 'T') 136537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_V4L2_PIX_FMT_STATS_CS v4l2_fourcc('S', 'T', 'C', 'S') 137537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_V4L2_PIX_FMT_STATS_RS v4l2_fourcc('S', 'T', 'R', 'S') 138537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1397a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim#define MSM_V4L2_PIX_FMT_STATS_BG v4l2_fourcc('S', 'T', 'B', 'G') 1404071280488d3a261c39278b404aacc8701daef3eBongkyu Kim#define MSM_V4L2_PIX_FMT_STATS_BF v4l2_fourcc('S', 'T', 'B', 'F') 141537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#define MSM_V4L2_PIX_FMT_STATS_BHST v4l2_fourcc('B', 'H', 'S', 'T') 142537a84edd4d8369012dbe56730096d1eb3e0401dAjay Dudani#endif 1437a90a415fdbdc9397677f6339f0c2fb402dcae29Devin Kim/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144