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 __MSM_ISP_H__ 20#define __MSM_ISP_H__ 21#define BIT(nr) (1UL << (nr)) 22#define MSG_ID_RESET_ACK 0 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#define MSG_ID_START_ACK 1 25#define MSG_ID_STOP_ACK 2 26#define MSG_ID_UPDATE_ACK 3 27#define MSG_ID_OUTPUT_P 4 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define MSG_ID_OUTPUT_T 5 30#define MSG_ID_OUTPUT_S 6 31#define MSG_ID_OUTPUT_V 7 32#define MSG_ID_SNAPSHOT_DONE 8 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define MSG_ID_STATS_AEC 9 35#define MSG_ID_STATS_AF 10 36#define MSG_ID_STATS_AWB 11 37#define MSG_ID_STATS_RS 12 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39#define MSG_ID_STATS_CS 13 40#define MSG_ID_STATS_IHIST 14 41#define MSG_ID_STATS_SKIN 15 42#define MSG_ID_EPOCH1 16 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define MSG_ID_EPOCH2 17 45#define MSG_ID_SYNC_TIMER0_DONE 18 46#define MSG_ID_SYNC_TIMER1_DONE 19 47#define MSG_ID_SYNC_TIMER2_DONE 20 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49#define MSG_ID_ASYNC_TIMER0_DONE 21 50#define MSG_ID_ASYNC_TIMER1_DONE 22 51#define MSG_ID_ASYNC_TIMER2_DONE 23 52#define MSG_ID_ASYNC_TIMER3_DONE 24 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54#define MSG_ID_AE_OVERFLOW 25 55#define MSG_ID_AF_OVERFLOW 26 56#define MSG_ID_AWB_OVERFLOW 27 57#define MSG_ID_RS_OVERFLOW 28 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59#define MSG_ID_CS_OVERFLOW 29 60#define MSG_ID_IHIST_OVERFLOW 30 61#define MSG_ID_SKIN_OVERFLOW 31 62#define MSG_ID_AXI_ERROR 32 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64#define MSG_ID_CAMIF_OVERFLOW 33 65#define MSG_ID_VIOLATION 34 66#define MSG_ID_CAMIF_ERROR 35 67#define MSG_ID_BUS_OVERFLOW 36 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69#define MSG_ID_SOF_ACK 37 70#define MSG_ID_STOP_REC_ACK 38 71#define MSG_ID_STATS_AWB_AEC 39 72#define MSG_ID_OUTPUT_PRIMARY 40 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74#define MSG_ID_OUTPUT_SECONDARY 41 75#define MSG_ID_STATS_COMPOSITE 42 76#define MSG_ID_OUTPUT_TERTIARY1 43 77#define MSG_ID_STOP_LS_ACK 44 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79#define MSG_ID_OUTPUT_TERTIARY2 45 80#define MSG_ID_STATS_BG 46 81#define MSG_ID_STATS_BF 47 82#define MSG_ID_STATS_BHIST 48 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84#define MSG_ID_RDI0_UPDATE_ACK 49 85#define MSG_ID_RDI1_UPDATE_ACK 50 86#define MSG_ID_RDI2_UPDATE_ACK 51 87#define VFE_CMD_DUMMY_0 0 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89#define VFE_CMD_SET_CLK 1 90#define VFE_CMD_RESET 2 91#define VFE_CMD_START 3 92#define VFE_CMD_TEST_GEN_START 4 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94#define VFE_CMD_OPERATION_CFG 5 95#define VFE_CMD_AXI_OUT_CFG 6 96#define VFE_CMD_CAMIF_CFG 7 97#define VFE_CMD_AXI_INPUT_CFG 8 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99#define VFE_CMD_BLACK_LEVEL_CFG 9 100#define VFE_CMD_MESH_ROLL_OFF_CFG 10 101#define VFE_CMD_DEMUX_CFG 11 102#define VFE_CMD_FOV_CFG 12 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104#define VFE_CMD_MAIN_SCALER_CFG 13 105#define VFE_CMD_WB_CFG 14 106#define VFE_CMD_COLOR_COR_CFG 15 107#define VFE_CMD_RGB_G_CFG 16 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109#define VFE_CMD_LA_CFG 17 110#define VFE_CMD_CHROMA_EN_CFG 18 111#define VFE_CMD_CHROMA_SUP_CFG 19 112#define VFE_CMD_MCE_CFG 20 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114#define VFE_CMD_SK_ENHAN_CFG 21 115#define VFE_CMD_ASF_CFG 22 116#define VFE_CMD_S2Y_CFG 23 117#define VFE_CMD_S2CbCr_CFG 24 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119#define VFE_CMD_CHROMA_SUBS_CFG 25 120#define VFE_CMD_OUT_CLAMP_CFG 26 121#define VFE_CMD_FRAME_SKIP_CFG 27 122#define VFE_CMD_DUMMY_1 28 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124#define VFE_CMD_DUMMY_2 29 125#define VFE_CMD_DUMMY_3 30 126#define VFE_CMD_UPDATE 31 127#define VFE_CMD_BL_LVL_UPDATE 32 128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129#define VFE_CMD_DEMUX_UPDATE 33 130#define VFE_CMD_FOV_UPDATE 34 131#define VFE_CMD_MAIN_SCALER_UPDATE 35 132#define VFE_CMD_WB_UPDATE 36 133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134#define VFE_CMD_COLOR_COR_UPDATE 37 135#define VFE_CMD_RGB_G_UPDATE 38 136#define VFE_CMD_LA_UPDATE 39 137#define VFE_CMD_CHROMA_EN_UPDATE 40 138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139#define VFE_CMD_CHROMA_SUP_UPDATE 41 140#define VFE_CMD_MCE_UPDATE 42 141#define VFE_CMD_SK_ENHAN_UPDATE 43 142#define VFE_CMD_S2CbCr_UPDATE 44 143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144#define VFE_CMD_S2Y_UPDATE 45 145#define VFE_CMD_ASF_UPDATE 46 146#define VFE_CMD_FRAME_SKIP_UPDATE 47 147#define VFE_CMD_CAMIF_FRAME_UPDATE 48 148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149#define VFE_CMD_STATS_AF_UPDATE 49 150#define VFE_CMD_STATS_AE_UPDATE 50 151#define VFE_CMD_STATS_AWB_UPDATE 51 152#define VFE_CMD_STATS_RS_UPDATE 52 153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154#define VFE_CMD_STATS_CS_UPDATE 53 155#define VFE_CMD_STATS_SKIN_UPDATE 54 156#define VFE_CMD_STATS_IHIST_UPDATE 55 157#define VFE_CMD_DUMMY_4 56 158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159#define VFE_CMD_EPOCH1_ACK 57 160#define VFE_CMD_EPOCH2_ACK 58 161#define VFE_CMD_START_RECORDING 59 162#define VFE_CMD_STOP_RECORDING 60 163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164#define VFE_CMD_DUMMY_5 61 165#define VFE_CMD_DUMMY_6 62 166#define VFE_CMD_CAPTURE 63 167#define VFE_CMD_DUMMY_7 64 168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169#define VFE_CMD_STOP 65 170#define VFE_CMD_GET_HW_VERSION 66 171#define VFE_CMD_GET_FRAME_SKIP_COUNTS 67 172#define VFE_CMD_OUTPUT1_BUFFER_ENQ 68 173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174#define VFE_CMD_OUTPUT2_BUFFER_ENQ 69 175#define VFE_CMD_OUTPUT3_BUFFER_ENQ 70 176#define VFE_CMD_JPEG_OUT_BUF_ENQ 71 177#define VFE_CMD_RAW_OUT_BUF_ENQ 72 178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179#define VFE_CMD_RAW_IN_BUF_ENQ 73 180#define VFE_CMD_STATS_AF_ENQ 74 181#define VFE_CMD_STATS_AE_ENQ 75 182#define VFE_CMD_STATS_AWB_ENQ 76 183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184#define VFE_CMD_STATS_RS_ENQ 77 185#define VFE_CMD_STATS_CS_ENQ 78 186#define VFE_CMD_STATS_SKIN_ENQ 79 187#define VFE_CMD_STATS_IHIST_ENQ 80 188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189#define VFE_CMD_DUMMY_8 81 190#define VFE_CMD_JPEG_ENC_CFG 82 191#define VFE_CMD_DUMMY_9 83 192#define VFE_CMD_STATS_AF_START 84 193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194#define VFE_CMD_STATS_AF_STOP 85 195#define VFE_CMD_STATS_AE_START 86 196#define VFE_CMD_STATS_AE_STOP 87 197#define VFE_CMD_STATS_AWB_START 88 198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199#define VFE_CMD_STATS_AWB_STOP 89 200#define VFE_CMD_STATS_RS_START 90 201#define VFE_CMD_STATS_RS_STOP 91 202#define VFE_CMD_STATS_CS_START 92 203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204#define VFE_CMD_STATS_CS_STOP 93 205#define VFE_CMD_STATS_SKIN_START 94 206#define VFE_CMD_STATS_SKIN_STOP 95 207#define VFE_CMD_STATS_IHIST_START 96 208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209#define VFE_CMD_STATS_IHIST_STOP 97 210#define VFE_CMD_DUMMY_10 98 211#define VFE_CMD_SYNC_TIMER_SETTING 99 212#define VFE_CMD_ASYNC_TIMER_SETTING 100 213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214#define VFE_CMD_LIVESHOT 101 215#define VFE_CMD_LA_SETUP 102 216#define VFE_CMD_LINEARIZATION_CFG 103 217#define VFE_CMD_DEMOSAICV3 104 218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219#define VFE_CMD_DEMOSAICV3_ABCC_CFG 105 220#define VFE_CMD_DEMOSAICV3_DBCC_CFG 106 221#define VFE_CMD_DEMOSAICV3_DBPC_CFG 107 222#define VFE_CMD_DEMOSAICV3_ABF_CFG 108 223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224#define VFE_CMD_DEMOSAICV3_ABCC_UPDATE 109 225#define VFE_CMD_DEMOSAICV3_DBCC_UPDATE 110 226#define VFE_CMD_DEMOSAICV3_DBPC_UPDATE 111 227#define VFE_CMD_XBAR_CFG 112 228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229#define VFE_CMD_MODULE_CFG 113 230#define VFE_CMD_ZSL 114 231#define VFE_CMD_LINEARIZATION_UPDATE 115 232#define VFE_CMD_DEMOSAICV3_ABF_UPDATE 116 233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234#define VFE_CMD_CLF_CFG 117 235#define VFE_CMD_CLF_LUMA_UPDATE 118 236#define VFE_CMD_CLF_CHROMA_UPDATE 119 237#define VFE_CMD_PCA_ROLL_OFF_CFG 120 238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239#define VFE_CMD_PCA_ROLL_OFF_UPDATE 121 240#define VFE_CMD_GET_REG_DUMP 122 241#define VFE_CMD_GET_LINEARIZATON_TABLE 123 242#define VFE_CMD_GET_MESH_ROLLOFF_TABLE 124 243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244#define VFE_CMD_GET_PCA_ROLLOFF_TABLE 125 245#define VFE_CMD_GET_RGB_G_TABLE 126 246#define VFE_CMD_GET_LA_TABLE 127 247#define VFE_CMD_DEMOSAICV3_UPDATE 128 248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249#define VFE_CMD_ACTIVE_REGION_CFG 129 250#define VFE_CMD_COLOR_PROCESSING_CONFIG 130 251#define VFE_CMD_STATS_WB_AEC_CONFIG 131 252#define VFE_CMD_STATS_WB_AEC_UPDATE 132 253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254#define VFE_CMD_Y_GAMMA_CONFIG 133 255#define VFE_CMD_SCALE_OUTPUT1_CONFIG 134 256#define VFE_CMD_SCALE_OUTPUT2_CONFIG 135 257#define VFE_CMD_CAPTURE_RAW 136 258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 259#define VFE_CMD_STOP_LIVESHOT 137 260#define VFE_CMD_RECONFIG_VFE 138 261#define VFE_CMD_STATS_REQBUF 139 262#define VFE_CMD_STATS_ENQUEUEBUF 140 263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 264#define VFE_CMD_STATS_FLUSH_BUFQ 141 265#define VFE_CMD_STATS_UNREGBUF 142 266#define VFE_CMD_STATS_BG_START 143 267#define VFE_CMD_STATS_BG_STOP 144 268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 269#define VFE_CMD_STATS_BF_START 145 270#define VFE_CMD_STATS_BF_STOP 146 271#define VFE_CMD_STATS_BHIST_START 147 272#define VFE_CMD_STATS_BHIST_STOP 148 273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 274#define VFE_CMD_RESET_2 149 275#define VFE_CMD_FOV_ENC_CFG 150 276#define VFE_CMD_FOV_VIEW_CFG 151 277#define VFE_CMD_FOV_ENC_UPDATE 152 278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 279#define VFE_CMD_FOV_VIEW_UPDATE 153 280#define VFE_CMD_SCALER_ENC_CFG 154 281#define VFE_CMD_SCALER_VIEW_CFG 155 282#define VFE_CMD_SCALER_ENC_UPDATE 156 283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 284#define VFE_CMD_SCALER_VIEW_UPDATE 157 285#define VFE_CMD_COLORXFORM_ENC_CFG 158 286#define VFE_CMD_COLORXFORM_VIEW_CFG 159 287#define VFE_CMD_COLORXFORM_ENC_UPDATE 160 288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 289#define VFE_CMD_COLORXFORM_VIEW_UPDATE 161 290#define VFE_CMD_TEST_GEN_CFG 162 291struct msm_isp_cmd { 292 int32_t id; 293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294 uint16_t length; 295 void *value; 296}; 297#define VPE_CMD_DUMMY_0 0 298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 299#define VPE_CMD_INIT 1 300#define VPE_CMD_DEINIT 2 301#define VPE_CMD_ENABLE 3 302#define VPE_CMD_DISABLE 4 303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 304#define VPE_CMD_RESET 5 305#define VPE_CMD_FLUSH 6 306#define VPE_CMD_OPERATION_MODE_CFG 7 307#define VPE_CMD_INPUT_PLANE_CFG 8 308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 309#define VPE_CMD_OUTPUT_PLANE_CFG 9 310#define VPE_CMD_INPUT_PLANE_UPDATE 10 311#define VPE_CMD_SCALE_CFG_TYPE 11 312#define VPE_CMD_ZOOM 13 313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 314#define VPE_CMD_MAX 14 315#define MSM_PP_CMD_TYPE_NOT_USED 0 316#define MSM_PP_CMD_TYPE_VPE 1 317#define MSM_PP_CMD_TYPE_MCTL 2 318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 319#define MCTL_CMD_DUMMY_0 0 320#define MCTL_CMD_GET_FRAME_BUFFER 1 321#define MCTL_CMD_PUT_FRAME_BUFFER 2 322#define MCTL_CMD_DIVERT_FRAME_PP_PATH 3 323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 324#define MCTL_PP_EVENT_NOTUSED 0 325#define MCTL_PP_EVENT_CMD_ACK 1 326#define VPE_OPERATION_MODE_CFG_LEN 4 327#define VPE_INPUT_PLANE_CFG_LEN 24 328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 329#define VPE_OUTPUT_PLANE_CFG_LEN 20 330#define VPE_INPUT_PLANE_UPDATE_LEN 12 331#define VPE_SCALER_CONFIG_LEN 260 332#define VPE_DIS_OFFSET_CFG_LEN 12 333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 334#define CAPTURE_WIDTH 1280 335#define IMEM_Y_SIZE (CAPTURE_WIDTH*16) 336#define IMEM_CBCR_SIZE (CAPTURE_WIDTH*8) 337#define IMEM_Y_PING_OFFSET 0x2E000000 338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 339#define IMEM_CBCR_PING_OFFSET (IMEM_Y_PING_OFFSET + IMEM_Y_SIZE) 340#define IMEM_Y_PONG_OFFSET (IMEM_CBCR_PING_OFFSET + IMEM_CBCR_SIZE) 341#define IMEM_CBCR_PONG_OFFSET (IMEM_Y_PONG_OFFSET + IMEM_Y_SIZE) 342struct msm_vpe_op_mode_cfg { 343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344 uint8_t op_mode_cfg[VPE_OPERATION_MODE_CFG_LEN]; 345}; 346struct msm_vpe_input_plane_cfg { 347 uint8_t input_plane_cfg[VPE_INPUT_PLANE_CFG_LEN]; 348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 349}; 350struct msm_vpe_output_plane_cfg { 351 uint8_t output_plane_cfg[VPE_OUTPUT_PLANE_CFG_LEN]; 352}; 353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 354struct msm_vpe_input_plane_update_cfg { 355 uint8_t input_plane_update_cfg[VPE_INPUT_PLANE_UPDATE_LEN]; 356}; 357struct msm_vpe_scaler_cfg { 358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 359 uint8_t scaler_cfg[VPE_SCALER_CONFIG_LEN]; 360}; 361struct msm_vpe_flush_frame_buffer { 362 uint32_t src_buf_handle; 363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 364 uint32_t dest_buf_handle; 365 int path; 366}; 367struct msm_mctl_pp_frame_buffer { 368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 369 uint32_t buf_handle; 370 int path; 371}; 372struct msm_mctl_pp_divert_pp { 373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 374 int path; 375 int enable; 376}; 377struct msm_vpe_clock_rate { 378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 379 uint32_t rate; 380}; 381struct msm_pp_crop { 382 uint32_t src_x; 383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 384 uint32_t src_y; 385 uint32_t src_w; 386 uint32_t src_h; 387 uint32_t dst_x; 388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 389 uint32_t dst_y; 390 uint32_t dst_w; 391 uint32_t dst_h; 392 uint8_t update_flag; 393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394}; 395#define MSM_MCTL_PP_VPE_FRAME_ACK (1<<0) 396#define MSM_MCTL_PP_VPE_FRAME_TO_APP (1<<1) 397struct msm_mctl_pp_frame_cmd { 398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 399 uint32_t cookie; 400 uint8_t vpe_output_action; 401 uint32_t src_buf_handle; 402 uint32_t dest_buf_handle; 403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 404 struct msm_pp_crop crop; 405 int path; 406}; 407#define VFE_OUTPUTS_MAIN_AND_PREVIEW BIT(0) 408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 409#define VFE_OUTPUTS_MAIN_AND_VIDEO BIT(1) 410#define VFE_OUTPUTS_MAIN_AND_THUMB BIT(2) 411#define VFE_OUTPUTS_THUMB_AND_MAIN BIT(3) 412#define VFE_OUTPUTS_PREVIEW_AND_VIDEO BIT(4) 413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 414#define VFE_OUTPUTS_VIDEO_AND_PREVIEW BIT(5) 415#define VFE_OUTPUTS_PREVIEW BIT(6) 416#define VFE_OUTPUTS_VIDEO BIT(7) 417#define VFE_OUTPUTS_RAW BIT(8) 418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 419#define VFE_OUTPUTS_JPEG_AND_THUMB BIT(9) 420#define VFE_OUTPUTS_THUMB_AND_JPEG BIT(10) 421#define VFE_OUTPUTS_RDI0 BIT(11) 422#define VFE_OUTPUTS_RDI1 BIT(12) 423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 424struct msm_frame_info { 425 uint32_t inst_handle; 426 uint32_t path; 427}; 428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 429#endif 430 431