msmb_isp.h revision 108b6a5ff4a0211169a47e44ad156b57b7c73b67
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 __MSMB_ISP__ 20#define __MSMB_ISP__ 21#include <linux/videodev2.h> 22#define MAX_PLANES_PER_STREAM 3 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#define MAX_NUM_STREAM 7 25#define ISP_VERSION_46 46 26#define ISP_VERSION_44 44 27#define ISP_VERSION_40 40 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define ISP_VERSION_32 32 30#define ISP_NATIVE_BUF_BIT (0x10000 << 0) 31#define ISP0_BIT (0x10000 << 1) 32#define ISP1_BIT (0x10000 << 2) 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define ISP_META_CHANNEL_BIT (0x10000 << 3) 35#define ISP_SCRATCH_BUF_BIT (0x10000 << 4) 36#define ISP_STATS_STREAM_BIT 0x80000000 37struct msm_vfe_cfg_cmd_list; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39enum ISP_START_PIXEL_PATTERN { 40 ISP_BAYER_RGRGRG, 41 ISP_BAYER_GRGRGR, 42 ISP_BAYER_BGBGBG, 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 ISP_BAYER_GBGBGB, 45 ISP_YUV_YCbYCr, 46 ISP_YUV_YCrYCb, 47 ISP_YUV_CbYCrY, 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 ISP_YUV_CrYCbY, 50 ISP_PIX_PATTERN_MAX 51}; 52enum msm_vfe_plane_fmt { 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 Y_PLANE, 55 CB_PLANE, 56 CR_PLANE, 57 CRCB_PLANE, 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 CBCR_PLANE, 60 VFE_PLANE_FMT_MAX 61}; 62enum msm_vfe_input_src { 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 VFE_PIX_0, 65 VFE_RAW_0, 66 VFE_RAW_1, 67 VFE_RAW_2, 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 VFE_SRC_MAX, 70}; 71enum msm_vfe_axi_stream_src { 72 PIX_ENCODER, 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 PIX_VIEWFINDER, 75 PIX_VIDEO, 76 CAMIF_RAW, 77 IDEAL_RAW, 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 RDI_INTF_0, 80 RDI_INTF_1, 81 RDI_INTF_2, 82 VFE_AXI_SRC_MAX 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84}; 85enum msm_vfe_frame_skip_pattern { 86 NO_SKIP, 87 EVERY_2FRAME, 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 EVERY_3FRAME, 90 EVERY_4FRAME, 91 EVERY_5FRAME, 92 EVERY_6FRAME, 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 EVERY_7FRAME, 95 EVERY_8FRAME, 96 EVERY_16FRAME, 97 EVERY_32FRAME, 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 SKIP_ALL, 100 MAX_SKIP, 101}; 102enum msm_vfe_camif_input { 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 CAMIF_DISABLED, 105 CAMIF_PAD_REG_INPUT, 106 CAMIF_MIDDI_INPUT, 107 CAMIF_MIPI_INPUT, 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109}; 110struct msm_vfe_camif_cfg { 111 uint32_t lines_per_frame; 112 uint32_t pixels_per_line; 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 uint32_t first_pixel; 115 uint32_t last_pixel; 116 uint32_t first_line; 117 uint32_t last_line; 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 uint32_t epoch_line0; 120 uint32_t epoch_line1; 121 enum msm_vfe_camif_input camif_input; 122}; 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124enum msm_vfe_inputmux { 125 CAMIF, 126 TESTGEN, 127 EXTERNAL_READ, 128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129}; 130enum msm_vfe_stats_composite_group { 131 STATS_COMPOSITE_GRP_NONE, 132 STATS_COMPOSITE_GRP_1, 133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 STATS_COMPOSITE_GRP_2, 135 STATS_COMPOSITE_GRP_MAX, 136}; 137struct msm_vfe_pix_cfg { 138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 struct msm_vfe_camif_cfg camif_cfg; 140 enum msm_vfe_inputmux input_mux; 141 enum ISP_START_PIXEL_PATTERN pixel_pattern; 142 uint32_t input_format; 143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144}; 145struct msm_vfe_rdi_cfg { 146 uint8_t cid; 147 uint8_t frame_based; 148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149}; 150struct msm_vfe_input_cfg { 151 union { 152 struct msm_vfe_pix_cfg pix_cfg; 153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 struct msm_vfe_rdi_cfg rdi_cfg; 155 } d; 156 enum msm_vfe_input_src input_src; 157 uint32_t input_pix_clk; 158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159}; 160struct msm_vfe_axi_plane_cfg { 161 uint32_t output_width; 162 uint32_t output_height; 163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 uint32_t output_stride; 165 uint32_t output_scan_lines; 166 uint32_t output_plane_format; 167 uint32_t plane_addr_offset; 168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 uint8_t csid_src; 170 uint8_t rdi_cid; 171}; 172struct msm_vfe_axi_stream_request_cmd { 173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 uint32_t session_id; 175 uint32_t stream_id; 176 uint32_t vt_enable; 177 uint32_t output_format; 178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 enum msm_vfe_axi_stream_src stream_src; 180 struct msm_vfe_axi_plane_cfg plane_cfg[MAX_PLANES_PER_STREAM]; 181 uint32_t burst_count; 182 uint32_t hfr_mode; 183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 uint8_t frame_base; 185 uint32_t init_frame_drop; 186 enum msm_vfe_frame_skip_pattern frame_skip_pattern; 187 uint8_t buf_divert; 188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 uint32_t axi_stream_handle; 190 uint32_t controllable_output; 191}; 192struct msm_vfe_axi_stream_release_cmd { 193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 uint32_t stream_handle; 195}; 196enum msm_vfe_axi_stream_cmd { 197 STOP_STREAM, 198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 START_STREAM, 200 STOP_IMMEDIATELY, 201}; 202struct msm_vfe_axi_stream_cfg_cmd { 203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 uint8_t num_streams; 205 uint32_t stream_handle[MAX_NUM_STREAM]; 206 enum msm_vfe_axi_stream_cmd cmd; 207}; 208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209enum msm_vfe_axi_stream_update_type { 210 ENABLE_STREAM_BUF_DIVERT, 211 DISABLE_STREAM_BUF_DIVERT, 212 UPDATE_STREAM_FRAMEDROP_PATTERN, 213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 UPDATE_STREAM_STATS_FRAMEDROP_PATTERN, 215 UPDATE_STREAM_AXI_CONFIG, 216 UPDATE_STREAM_REQUEST_FRAMES, 217 UPDATE_STREAM_ADD_BUFQ, 218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 UPDATE_STREAM_REMOVE_BUFQ, 220}; 221enum msm_vfe_iommu_type { 222 IOMMU_ATTACH, 223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224 IOMMU_DETACH, 225}; 226struct msm_vfe_axi_stream_cfg_update_info { 227 uint32_t stream_handle; 228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 uint32_t output_format; 230 uint32_t user_stream_id; 231 uint8_t need_divert; 232 enum msm_vfe_frame_skip_pattern skip_pattern; 233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 struct msm_vfe_axi_plane_cfg plane_cfg[MAX_PLANES_PER_STREAM]; 235}; 236struct msm_vfe_axi_stream_update_cmd { 237 uint32_t num_streams; 238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239 enum msm_vfe_axi_stream_update_type update_type; 240 struct msm_vfe_axi_stream_cfg_update_info update_info[MAX_NUM_STREAM]; 241}; 242struct msm_vfe_smmu_attach_cmd { 243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244 uint32_t security_mode; 245 uint32_t iommu_attach_mode; 246}; 247enum msm_isp_stats_type { 248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249 MSM_ISP_STATS_AEC, 250 MSM_ISP_STATS_AF, 251 MSM_ISP_STATS_AWB, 252 MSM_ISP_STATS_RS, 253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254 MSM_ISP_STATS_CS, 255 MSM_ISP_STATS_IHIST, 256 MSM_ISP_STATS_SKIN, 257 MSM_ISP_STATS_BG, 258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 259 MSM_ISP_STATS_BF, 260 MSM_ISP_STATS_BE, 261 MSM_ISP_STATS_BHIST, 262 MSM_ISP_STATS_BF_SCALE, 263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 264 MSM_ISP_STATS_HDR_BE, 265 MSM_ISP_STATS_HDR_BHIST, 266 MSM_ISP_STATS_MAX 267}; 268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 269struct msm_vfe_stats_stream_request_cmd { 270 uint32_t session_id; 271 uint32_t stream_id; 272 enum msm_isp_stats_type stats_type; 273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 274 uint32_t composite_flag; 275 uint32_t framedrop_pattern; 276 uint32_t init_frame_drop; 277 uint32_t irq_subsample_pattern; 278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 279 uint32_t buffer_offset; 280 uint32_t stream_handle; 281}; 282struct msm_vfe_stats_stream_release_cmd { 283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 284 uint32_t stream_handle; 285}; 286struct msm_vfe_stats_stream_cfg_cmd { 287 uint8_t num_streams; 288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 289 uint32_t stream_handle[MSM_ISP_STATS_MAX]; 290 uint8_t enable; 291}; 292enum msm_vfe_reg_cfg_type { 293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294 VFE_WRITE, 295 VFE_WRITE_MB, 296 VFE_READ, 297 VFE_CFG_MASK, 298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 299 VFE_WRITE_DMI_16BIT, 300 VFE_WRITE_DMI_32BIT, 301 VFE_WRITE_DMI_64BIT, 302 VFE_READ_DMI_16BIT, 303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 304 VFE_READ_DMI_32BIT, 305 VFE_READ_DMI_64BIT, 306 GET_MAX_CLK_RATE, 307 GET_ISP_ID, 308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 309}; 310struct msm_vfe_cfg_cmd2 { 311 uint16_t num_cfg; 312 uint16_t cmd_len; 313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 314 void __user *cfg_data; 315 void __user *cfg_cmd; 316}; 317struct msm_vfe_cfg_cmd_list { 318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 319 struct msm_vfe_cfg_cmd2 cfg_cmd; 320 struct msm_vfe_cfg_cmd_list *next; 321 uint32_t next_size; 322}; 323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 324struct msm_vfe_reg_rw_info { 325 uint32_t reg_offset; 326 uint32_t cmd_data_offset; 327 uint32_t len; 328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 329}; 330struct msm_vfe_reg_mask_info { 331 uint32_t reg_offset; 332 uint32_t mask; 333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 334 uint32_t val; 335}; 336struct msm_vfe_reg_dmi_info { 337 uint32_t hi_tbl_offset; 338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 339 uint32_t lo_tbl_offset; 340 uint32_t len; 341}; 342struct msm_vfe_reg_cfg_cmd { 343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344 union { 345 struct msm_vfe_reg_rw_info rw_info; 346 struct msm_vfe_reg_mask_info mask_info; 347 struct msm_vfe_reg_dmi_info dmi_info; 348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 349 } u; 350 enum msm_vfe_reg_cfg_type cmd_type; 351}; 352enum msm_isp_buf_type { 353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 354 ISP_PRIVATE_BUF, 355 ISP_SHARE_BUF, 356 MAX_ISP_BUF_TYPE, 357}; 358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 359struct msm_isp_buf_request { 360 uint32_t session_id; 361 uint32_t stream_id; 362 uint8_t num_buf; 363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 364 uint32_t handle; 365 enum msm_isp_buf_type buf_type; 366}; 367struct msm_isp_qbuf_plane { 368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 369 uint32_t addr; 370 uint32_t offset; 371}; 372struct msm_isp_qbuf_buffer { 373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 374 struct msm_isp_qbuf_plane planes[MAX_PLANES_PER_STREAM]; 375 uint32_t num_planes; 376}; 377struct msm_isp_qbuf_info { 378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 379 uint32_t handle; 380 int32_t buf_idx; 381 struct msm_isp_qbuf_buffer buffer; 382 uint32_t dirty_buf; 383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 384}; 385struct msm_vfe_axi_src_state { 386 enum msm_vfe_input_src input_src; 387 uint32_t src_active; 388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 389}; 390enum msm_isp_event_idx { 391 ISP_REG_UPDATE = 0, 392 ISP_START_ACK = 1, 393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394 ISP_STOP_ACK = 2, 395 ISP_IRQ_VIOLATION = 3, 396 ISP_WM_BUS_OVERFLOW = 4, 397 ISP_STATS_OVERFLOW = 5, 398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 399 ISP_CAMIF_ERROR = 6, 400 ISP_BUF_DONE = 9, 401 ISP_EVENT_MAX = 10 402}; 403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 404#define ISP_EVENT_OFFSET 8 405#define ISP_EVENT_BASE (V4L2_EVENT_PRIVATE_START) 406#define ISP_BUF_EVENT_BASE (ISP_EVENT_BASE + (1 << ISP_EVENT_OFFSET)) 407#define ISP_STATS_EVENT_BASE (ISP_EVENT_BASE + (2 << ISP_EVENT_OFFSET)) 408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 409#define ISP_SOF_EVENT_BASE (ISP_EVENT_BASE + (3 << ISP_EVENT_OFFSET)) 410#define ISP_EOF_EVENT_BASE (ISP_EVENT_BASE + (4 << ISP_EVENT_OFFSET)) 411#define ISP_EVENT_REG_UPDATE (ISP_EVENT_BASE + ISP_REG_UPDATE) 412#define ISP_EVENT_START_ACK (ISP_EVENT_BASE + ISP_START_ACK) 413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 414#define ISP_EVENT_STOP_ACK (ISP_EVENT_BASE + ISP_STOP_ACK) 415#define ISP_EVENT_IRQ_VIOLATION (ISP_EVENT_BASE + ISP_IRQ_VIOLATION) 416#define ISP_EVENT_WM_BUS_OVERFLOW (ISP_EVENT_BASE + ISP_WM_BUS_OVERFLOW) 417#define ISP_EVENT_STATS_OVERFLOW (ISP_EVENT_BASE + ISP_STATS_OVERFLOW) 418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 419#define ISP_EVENT_CAMIF_ERROR (ISP_EVENT_BASE + ISP_CAMIF_ERROR) 420#define ISP_EVENT_SOF (ISP_SOF_EVENT_BASE) 421#define ISP_EVENT_EOF (ISP_EOF_EVENT_BASE) 422#define ISP_EVENT_BUF_DONE (ISP_EVENT_BASE + ISP_BUF_DONE) 423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 424#define ISP_EVENT_BUF_DIVERT (ISP_BUF_EVENT_BASE) 425#define ISP_EVENT_STATS_NOTIFY (ISP_STATS_EVENT_BASE) 426#define ISP_EVENT_COMP_STATS_NOTIFY (ISP_EVENT_STATS_NOTIFY + MSM_ISP_STATS_MAX) 427struct msm_isp_buf_event { 428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 429 uint32_t session_id; 430 uint32_t stream_id; 431 uint32_t handle; 432 uint32_t output_format; 433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 434 int8_t buf_idx; 435}; 436struct msm_isp_stats_event { 437 uint32_t stats_mask; 438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 439 uint8_t stats_buf_idxs[MSM_ISP_STATS_MAX]; 440}; 441struct msm_isp_stream_ack { 442 uint32_t session_id; 443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444 uint32_t stream_id; 445 uint32_t handle; 446}; 447struct msm_isp_event_data { 448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 449 struct timeval timestamp; 450 struct timeval mono_timestamp; 451 enum msm_vfe_input_src input_intf; 452 uint32_t frame_id; 453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 454 union { 455 struct msm_isp_stats_event stats; 456 struct msm_isp_buf_event buf_done; 457 } u; 458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 459}; 460#define V4L2_PIX_FMT_QBGGR8 v4l2_fourcc('Q', 'B', 'G', '8') 461#define V4L2_PIX_FMT_QGBRG8 v4l2_fourcc('Q', 'G', 'B', '8') 462#define V4L2_PIX_FMT_QGRBG8 v4l2_fourcc('Q', 'G', 'R', '8') 463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 464#define V4L2_PIX_FMT_QRGGB8 v4l2_fourcc('Q', 'R', 'G', '8') 465#define V4L2_PIX_FMT_QBGGR10 v4l2_fourcc('Q', 'B', 'G', '0') 466#define V4L2_PIX_FMT_QGBRG10 v4l2_fourcc('Q', 'G', 'B', '0') 467#define V4L2_PIX_FMT_QGRBG10 v4l2_fourcc('Q', 'G', 'R', '0') 468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 469#define V4L2_PIX_FMT_QRGGB10 v4l2_fourcc('Q', 'R', 'G', '0') 470#define V4L2_PIX_FMT_QBGGR12 v4l2_fourcc('Q', 'B', 'G', '2') 471#define V4L2_PIX_FMT_QGBRG12 v4l2_fourcc('Q', 'G', 'B', '2') 472#define V4L2_PIX_FMT_QGRBG12 v4l2_fourcc('Q', 'G', 'R', '2') 473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 474#define V4L2_PIX_FMT_QRGGB12 v4l2_fourcc('Q', 'R', 'G', '2') 475#define V4L2_PIX_FMT_NV14 v4l2_fourcc('N', 'V', '1', '4') 476#define V4L2_PIX_FMT_NV41 v4l2_fourcc('N', 'V', '4', '1') 477#define V4L2_PIX_FMT_META v4l2_fourcc('Q', 'M', 'E', 'T') 478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 479#define VIDIOC_MSM_VFE_REG_CFG _IOWR('V', BASE_VIDIOC_PRIVATE, struct msm_vfe_cfg_cmd2) 480#define VIDIOC_MSM_ISP_REQUEST_BUF _IOWR('V', BASE_VIDIOC_PRIVATE+1, struct msm_isp_buf_request) 481#define VIDIOC_MSM_ISP_ENQUEUE_BUF _IOWR('V', BASE_VIDIOC_PRIVATE+2, struct msm_isp_qbuf_info) 482#define VIDIOC_MSM_ISP_RELEASE_BUF _IOWR('V', BASE_VIDIOC_PRIVATE+3, struct msm_isp_buf_request) 483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 484#define VIDIOC_MSM_ISP_REQUEST_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+4, struct msm_vfe_axi_stream_request_cmd) 485#define VIDIOC_MSM_ISP_CFG_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+5, struct msm_vfe_axi_stream_cfg_cmd) 486#define VIDIOC_MSM_ISP_RELEASE_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+6, struct msm_vfe_axi_stream_release_cmd) 487#define VIDIOC_MSM_ISP_INPUT_CFG _IOWR('V', BASE_VIDIOC_PRIVATE+7, struct msm_vfe_input_cfg) 488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 489#define VIDIOC_MSM_ISP_SET_SRC_STATE _IOWR('V', BASE_VIDIOC_PRIVATE+8, struct msm_vfe_axi_src_state) 490#define VIDIOC_MSM_ISP_REQUEST_STATS_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+9, struct msm_vfe_stats_stream_request_cmd) 491#define VIDIOC_MSM_ISP_CFG_STATS_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+10, struct msm_vfe_stats_stream_cfg_cmd) 492#define VIDIOC_MSM_ISP_RELEASE_STATS_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+11, struct msm_vfe_stats_stream_release_cmd) 493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 494#define VIDIOC_MSM_ISP_UPDATE_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+13, struct msm_vfe_axi_stream_update_cmd) 495#define VIDIOC_MSM_VFE_REG_LIST_CFG _IOWR('V', BASE_VIDIOC_PRIVATE+14, struct msm_vfe_cfg_cmd_list) 496#define VIDIOC_MSM_ISP_SMMU_ATTACH _IOWR('V', BASE_VIDIOC_PRIVATE+15, struct msm_vfe_smmu_attach_cmd) 497#define VIDIOC_MSM_ISP_UPDATE_STATS_STREAM _IOWR('V', BASE_VIDIOC_PRIVATE+16, struct msm_vfe_axi_stream_update_cmd) 498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 499#endif 500