Home | History | Annotate | Download | only in media
      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 __UAPI_LINUX_MSMB_CAMERA_H
     20 #define __UAPI_LINUX_MSMB_CAMERA_H
     21 #include <linux/videodev2.h>
     22 #include <linux/types.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <linux/ioctl.h>
     25 #define MSM_CAM_LOGSYNC_FILE_NAME "logsync"
     26 #define MSM_CAM_LOGSYNC_FILE_BASEDIR "camera"
     27 #define MSM_CAM_V4L2_IOCTL_NOTIFY _IOW('V', BASE_VIDIOC_PRIVATE + 30, struct msm_v4l2_event_data)
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define MSM_CAM_V4L2_IOCTL_NOTIFY_META _IOW('V', BASE_VIDIOC_PRIVATE + 31, struct msm_v4l2_event_data)
     30 #define MSM_CAM_V4L2_IOCTL_CMD_ACK _IOW('V', BASE_VIDIOC_PRIVATE + 32, struct msm_v4l2_event_data)
     31 #define MSM_CAM_V4L2_IOCTL_NOTIFY_ERROR _IOW('V', BASE_VIDIOC_PRIVATE + 33, struct msm_v4l2_event_data)
     32 #define MSM_CAM_V4L2_IOCTL_NOTIFY_DEBUG _IOW('V', BASE_VIDIOC_PRIVATE + 34, struct msm_v4l2_event_data)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define MSM_CAM_V4L2_IOCTL_DAEMON_DISABLED _IOW('V', BASE_VIDIOC_PRIVATE + 35, struct msm_v4l2_event_data)
     35 #define QCAMERA_DEVICE_GROUP_ID 1
     36 #define QCAMERA_VNODE_GROUP_ID 2
     37 #define MSM_CAMERA_NAME "msm_camera"
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define MSM_CONFIGURATION_NAME "msm_config"
     40 #define MSM_CAMERA_SUBDEV_CSIPHY 0
     41 #define MSM_CAMERA_SUBDEV_CSID 1
     42 #define MSM_CAMERA_SUBDEV_ISPIF 2
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define MSM_CAMERA_SUBDEV_VFE 3
     45 #define MSM_CAMERA_SUBDEV_AXI 4
     46 #define MSM_CAMERA_SUBDEV_VPE 5
     47 #define MSM_CAMERA_SUBDEV_SENSOR 6
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define MSM_CAMERA_SUBDEV_ACTUATOR 7
     50 #define MSM_CAMERA_SUBDEV_EEPROM 8
     51 #define MSM_CAMERA_SUBDEV_CPP 9
     52 #define MSM_CAMERA_SUBDEV_CCI 10
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define MSM_CAMERA_SUBDEV_LED_FLASH 11
     55 #define MSM_CAMERA_SUBDEV_STROBE_FLASH 12
     56 #define MSM_CAMERA_SUBDEV_BUF_MNGR 13
     57 #define MSM_CAMERA_SUBDEV_SENSOR_INIT 14
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define MSM_CAMERA_SUBDEV_OIS 15
     60 #define MSM_CAMERA_SUBDEV_FLASH 16
     61 #define MSM_CAMERA_SUBDEV_EXT 17
     62 #define MSM_MAX_CAMERA_SENSORS 5
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define MSM_CAMERA_MAX_STREAM_BUF 72
     65 #define MSM_CAMERA_MAX_USER_BUFF_CNT 16
     66 #define MSM_CAMERA_FEATURE_BASE 0x00010000
     67 #define MSM_CAMERA_FEATURE_SHUTDOWN (MSM_CAMERA_FEATURE_BASE + 1)
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define MSM_CAMERA_STATUS_BASE 0x00020000
     70 #define MSM_CAMERA_STATUS_FAIL (MSM_CAMERA_STATUS_BASE + 1)
     71 #define MSM_CAMERA_STATUS_SUCCESS (MSM_CAMERA_STATUS_BASE + 2)
     72 #define MSM_CAMERA_V4L2_EVENT_TYPE (V4L2_EVENT_PRIVATE_START + 0x00002000)
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define MSM_CAMERA_EVENT_MIN 0
     75 #define MSM_CAMERA_NEW_SESSION (MSM_CAMERA_EVENT_MIN + 1)
     76 #define MSM_CAMERA_DEL_SESSION (MSM_CAMERA_EVENT_MIN + 2)
     77 #define MSM_CAMERA_SET_PARM (MSM_CAMERA_EVENT_MIN + 3)
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define MSM_CAMERA_GET_PARM (MSM_CAMERA_EVENT_MIN + 4)
     80 #define MSM_CAMERA_MAPPING_CFG (MSM_CAMERA_EVENT_MIN + 5)
     81 #define MSM_CAMERA_MAPPING_SES (MSM_CAMERA_EVENT_MIN + 6)
     82 #define MSM_CAMERA_MSM_NOTIFY (MSM_CAMERA_EVENT_MIN + 7)
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define MSM_CAMERA_EVENT_MAX (MSM_CAMERA_EVENT_MIN + 8)
     85 #define MSM_CAMERA_PRIV_S_CROP (V4L2_CID_PRIVATE_BASE + 1)
     86 #define MSM_CAMERA_PRIV_G_CROP (V4L2_CID_PRIVATE_BASE + 2)
     87 #define MSM_CAMERA_PRIV_G_FMT (V4L2_CID_PRIVATE_BASE + 3)
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define MSM_CAMERA_PRIV_S_FMT (V4L2_CID_PRIVATE_BASE + 4)
     90 #define MSM_CAMERA_PRIV_TRY_FMT (V4L2_CID_PRIVATE_BASE + 5)
     91 #define MSM_CAMERA_PRIV_METADATA (V4L2_CID_PRIVATE_BASE + 6)
     92 #define MSM_CAMERA_PRIV_QUERY_CAP (V4L2_CID_PRIVATE_BASE + 7)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define MSM_CAMERA_PRIV_STREAM_ON (V4L2_CID_PRIVATE_BASE + 8)
     95 #define MSM_CAMERA_PRIV_STREAM_OFF (V4L2_CID_PRIVATE_BASE + 9)
     96 #define MSM_CAMERA_PRIV_NEW_STREAM (V4L2_CID_PRIVATE_BASE + 10)
     97 #define MSM_CAMERA_PRIV_DEL_STREAM (V4L2_CID_PRIVATE_BASE + 11)
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define MSM_CAMERA_PRIV_SHUTDOWN (V4L2_CID_PRIVATE_BASE + 12)
    100 #define MSM_CAMERA_PRIV_STREAM_INFO_SYNC (V4L2_CID_PRIVATE_BASE + 13)
    101 #define MSM_CAMERA_PRIV_G_SESSION_ID (V4L2_CID_PRIVATE_BASE + 14)
    102 #define MSM_CAMERA_PRIV_CMD_MAX 20
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define MSM_CAMERA_CMD_SUCESS 0x00000001
    105 #define MSM_CAMERA_BUF_MAP_SUCESS 0x00000002
    106 #define MSM_CAMERA_ERR_EVT_BASE 0x00010000
    107 #define MSM_CAMERA_ERR_CMD_FAIL (MSM_CAMERA_ERR_EVT_BASE + 1)
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define MSM_CAMERA_ERR_MAPPING (MSM_CAMERA_ERR_EVT_BASE + 2)
    110 #define MSM_CAMERA_ERR_DEVICE_BUSY (MSM_CAMERA_ERR_EVT_BASE + 3)
    111 struct msm_v4l2_event_data {
    112   unsigned int command;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114   unsigned int status;
    115   unsigned int session_id;
    116   unsigned int stream_id;
    117   unsigned int map_op;
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119   unsigned int map_buf_idx;
    120   unsigned int notify;
    121   unsigned int arg_value;
    122   unsigned int ret_value;
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124   unsigned int v4l2_event_type;
    125   unsigned int v4l2_event_id;
    126   unsigned int handle;
    127   unsigned int nop6;
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129   unsigned int nop7;
    130   unsigned int nop8;
    131   unsigned int nop9;
    132 };
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 struct msm_v4l2_format_data {
    135   enum v4l2_buf_type type;
    136   unsigned int width;
    137   unsigned int height;
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139   unsigned int pixelformat;
    140   unsigned char num_planes;
    141   unsigned int plane_sizes[VIDEO_MAX_PLANES];
    142 };
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define msm_v4l2_fourcc(a,b,c,d) ((__u32) (a) | ((__u32) (b) << 8) | ((__u32) (c) << 16) | ((__u32) (d) << 24))
    145 #define MSM_V4L2_PIX_FMT_STATS_COMB v4l2_fourcc('S', 'T', 'C', 'M')
    146 #define MSM_V4L2_PIX_FMT_STATS_AE v4l2_fourcc('S', 'T', 'A', 'E')
    147 #define MSM_V4L2_PIX_FMT_STATS_AF v4l2_fourcc('S', 'T', 'A', 'F')
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define MSM_V4L2_PIX_FMT_STATS_AWB v4l2_fourcc('S', 'T', 'W', 'B')
    150 #define MSM_V4L2_PIX_FMT_STATS_IHST v4l2_fourcc('I', 'H', 'S', 'T')
    151 #define MSM_V4L2_PIX_FMT_STATS_CS v4l2_fourcc('S', 'T', 'C', 'S')
    152 #define MSM_V4L2_PIX_FMT_STATS_RS v4l2_fourcc('S', 'T', 'R', 'S')
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #define MSM_V4L2_PIX_FMT_STATS_BG v4l2_fourcc('S', 'T', 'B', 'G')
    155 #define MSM_V4L2_PIX_FMT_STATS_BF v4l2_fourcc('S', 'T', 'B', 'F')
    156 #define MSM_V4L2_PIX_FMT_STATS_BHST v4l2_fourcc('B', 'H', 'S', 'T')
    157 enum smmu_attach_mode {
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159   NON_SECURE_MODE = 0x01,
    160   SECURE_MODE = 0x02,
    161   MAX_PROTECTION_MODE = 0x03,
    162 };
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164 struct msm_camera_smmu_attach_type {
    165   enum smmu_attach_mode attach;
    166 };
    167 struct msm_camera_user_buf_cont_t {
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169   unsigned int buf_cnt;
    170   unsigned int buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
    171 };
    172 struct msm_camera_return_buf {
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174   __u32 index;
    175   __u32 reserved;
    176 };
    177 #define MSM_CAMERA_PRIV_IOCTL_ID_BASE 0
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 #define MSM_CAMERA_PRIV_IOCTL_ID_RETURN_BUF 1
    180 struct msm_camera_private_ioctl_arg {
    181   __u32 id;
    182   __u32 size;
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184   __u32 result;
    185   __u32 reserved;
    186   __user __u64 ioctl_ptr;
    187 };
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189 #define VIDIOC_MSM_CAMERA_PRIVATE_IOCTL_CMD _IOWR('V', BASE_VIDIOC_PRIVATE, struct msm_camera_private_ioctl_arg)
    190 #endif
    191 
    192