Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 1 | #ifndef __MSMB_ISP__ |
| 2 | #define __MSMB_ISP__ |
| 3 | |
| 4 | #include <linux/videodev2.h> |
| 5 | |
| 6 | #define MAX_PLANES_PER_STREAM 3 |
| 7 | #define MAX_NUM_STREAM 7 |
| 8 | |
| 9 | #define ISP_VERSION_40 40 |
| 10 | #define ISP_VERSION_32 32 |
Mingcheng Zhu | 503a6f9 | 2013-01-06 13:23:24 -0800 | [diff] [blame] | 11 | #define ISP_NATIVE_BUF_BIT 0x10000 |
Peter Liu | 11cbc22 | 2013-03-13 15:27:24 -0700 | [diff] [blame] | 12 | #define ISP0_BIT 0x20000 |
| 13 | #define ISP1_BIT 0x40000 |
Mingcheng Zhu | 503a6f9 | 2013-01-06 13:23:24 -0800 | [diff] [blame] | 14 | #define ISP_STATS_STREAM_BIT 0x80000000 |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 15 | |
| 16 | enum ISP_START_PIXEL_PATTERN { |
| 17 | ISP_BAYER_RGRGRG, |
| 18 | ISP_BAYER_GRGRGR, |
| 19 | ISP_BAYER_BGBGBG, |
| 20 | ISP_BAYER_GBGBGB, |
| 21 | ISP_YUV_YCbYCr, |
| 22 | ISP_YUV_YCrYCb, |
| 23 | ISP_YUV_CbYCrY, |
| 24 | ISP_YUV_CrYCbY, |
| 25 | ISP_PIX_PATTERN_MAX |
| 26 | }; |
| 27 | |
| 28 | enum msm_vfe_plane_fmt { |
| 29 | Y_PLANE, |
| 30 | CB_PLANE, |
| 31 | CR_PLANE, |
| 32 | CRCB_PLANE, |
| 33 | CBCR_PLANE, |
| 34 | VFE_PLANE_FMT_MAX |
| 35 | }; |
| 36 | |
| 37 | enum msm_vfe_input_src { |
| 38 | VFE_PIX_0, |
| 39 | VFE_RAW_0, |
| 40 | VFE_RAW_1, |
| 41 | VFE_RAW_2, |
| 42 | VFE_SRC_MAX, |
| 43 | }; |
| 44 | |
| 45 | enum msm_vfe_axi_stream_src { |
| 46 | PIX_ENCODER, |
| 47 | PIX_VIEWFINDER, |
| 48 | CAMIF_RAW, |
| 49 | IDEAL_RAW, |
Kevin Chan | 80b7b6d | 2013-01-31 16:08:35 -0800 | [diff] [blame] | 50 | RDI_INTF_0, |
| 51 | RDI_INTF_1, |
| 52 | RDI_INTF_2, |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 53 | VFE_AXI_SRC_MAX |
| 54 | }; |
| 55 | |
| 56 | enum msm_vfe_frame_skip_pattern { |
| 57 | NO_SKIP, |
| 58 | EVERY_2FRAME, |
Kevin Chan | 1fe7fb7 | 2013-02-12 19:33:38 -0800 | [diff] [blame] | 59 | EVERY_3FRAME, |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 60 | EVERY_4FRAME, |
Kevin Chan | 1fe7fb7 | 2013-02-12 19:33:38 -0800 | [diff] [blame] | 61 | EVERY_5FRAME, |
| 62 | EVERY_6FRAME, |
| 63 | EVERY_7FRAME, |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 64 | EVERY_8FRAME, |
| 65 | EVERY_16FRAME, |
| 66 | EVERY_32FRAME, |
| 67 | MAX_SKIP, |
| 68 | }; |
| 69 | |
| 70 | enum msm_vfe_camif_input { |
| 71 | CAMIF_DISABLED, |
| 72 | CAMIF_PAD_REG_INPUT, |
| 73 | CAMIF_MIDDI_INPUT, |
| 74 | CAMIF_MIPI_INPUT, |
| 75 | }; |
| 76 | |
| 77 | struct msm_vfe_camif_cfg { |
| 78 | uint32_t lines_per_frame; |
| 79 | uint32_t pixels_per_line; |
| 80 | uint32_t first_pixel; |
| 81 | uint32_t last_pixel; |
| 82 | uint32_t first_line; |
| 83 | uint32_t last_line; |
| 84 | uint32_t epoch_line0; |
| 85 | uint32_t epoch_line1; |
| 86 | enum msm_vfe_camif_input camif_input; |
| 87 | }; |
| 88 | |
| 89 | enum msm_vfe_inputmux { |
| 90 | CAMIF, |
| 91 | TESTGEN, |
| 92 | EXTERNAL_READ, |
| 93 | }; |
| 94 | |
| 95 | struct msm_vfe_pix_cfg { |
| 96 | struct msm_vfe_camif_cfg camif_cfg; |
| 97 | enum msm_vfe_inputmux input_mux; |
| 98 | enum ISP_START_PIXEL_PATTERN pixel_pattern; |
| 99 | }; |
| 100 | |
Kevin Chan | 80b7b6d | 2013-01-31 16:08:35 -0800 | [diff] [blame] | 101 | struct msm_vfe_rdi_cfg { |
| 102 | uint8_t cid; |
| 103 | uint8_t frame_based; |
| 104 | }; |
| 105 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 106 | struct msm_vfe_input_cfg { |
| 107 | union { |
| 108 | struct msm_vfe_pix_cfg pix_cfg; |
Kevin Chan | 80b7b6d | 2013-01-31 16:08:35 -0800 | [diff] [blame] | 109 | struct msm_vfe_rdi_cfg rdi_cfg; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 110 | } d; |
| 111 | enum msm_vfe_input_src input_src; |
Kevin Chan | 9a8301b1 | 2013-03-18 15:39:37 -0700 | [diff] [blame] | 112 | uint32_t input_pix_clk; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 113 | }; |
| 114 | |
| 115 | struct msm_vfe_axi_plane_cfg { |
| 116 | uint32_t output_width; /*Include padding*/ |
| 117 | uint32_t output_height; |
| 118 | uint32_t output_stride; |
| 119 | uint32_t output_scan_lines; |
| 120 | uint32_t output_plane_format; /*Y/Cb/Cr/CbCr*/ |
Kevin Chan | baf0a13 | 2013-03-05 20:08:23 -0800 | [diff] [blame] | 121 | uint32_t plane_addr_offset; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 122 | uint8_t csid_src; /*RDI 0-2*/ |
| 123 | uint8_t rdi_cid;/*CID 1-16*/ |
| 124 | }; |
| 125 | |
| 126 | struct msm_vfe_axi_stream_request_cmd { |
| 127 | uint32_t session_id; |
| 128 | uint32_t stream_id; |
| 129 | uint32_t output_format;/*Planar/RAW/Misc*/ |
| 130 | enum msm_vfe_axi_stream_src stream_src; /*CAMIF/IDEAL/RDIs*/ |
| 131 | struct msm_vfe_axi_plane_cfg plane_cfg[MAX_PLANES_PER_STREAM]; |
| 132 | |
| 133 | uint32_t burst_count; |
| 134 | uint32_t hfr_mode; |
| 135 | uint8_t frame_base; |
| 136 | |
| 137 | uint32_t init_frame_drop; /*MAX 31 Frames*/ |
| 138 | enum msm_vfe_frame_skip_pattern frame_skip_pattern; |
| 139 | uint8_t buf_divert; /* if TRUE no vb2 buf done. */ |
| 140 | /*Return values*/ |
| 141 | uint32_t axi_stream_handle; |
| 142 | }; |
| 143 | |
| 144 | struct msm_vfe_axi_stream_release_cmd { |
| 145 | uint32_t stream_handle; |
| 146 | }; |
| 147 | |
| 148 | enum msm_vfe_axi_stream_cmd { |
| 149 | STOP_STREAM, |
| 150 | START_STREAM, |
| 151 | }; |
| 152 | |
| 153 | struct msm_vfe_axi_stream_cfg_cmd { |
| 154 | uint8_t num_streams; |
| 155 | uint32_t stream_handle[MAX_NUM_STREAM]; |
| 156 | enum msm_vfe_axi_stream_cmd cmd; |
| 157 | }; |
| 158 | |
Kevin Chan | 5bebd2e | 2013-01-30 20:25:05 -0800 | [diff] [blame] | 159 | enum msm_vfe_axi_stream_update_type { |
| 160 | ENABLE_STREAM_BUF_DIVERT, |
| 161 | DISABLE_STREAM_BUF_DIVERT, |
| 162 | UPDATE_STREAM_FRAMEDROP_PATTERN, |
| 163 | }; |
| 164 | |
| 165 | struct msm_vfe_axi_stream_update_cmd { |
| 166 | uint32_t stream_handle; |
| 167 | enum msm_vfe_axi_stream_update_type update_type; |
| 168 | enum msm_vfe_frame_skip_pattern skip_pattern; |
| 169 | }; |
| 170 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 171 | enum msm_isp_stats_type { |
| 172 | MSM_ISP_STATS_AEC, /* legacy based AEC */ |
| 173 | MSM_ISP_STATS_AF, /* legacy based AF */ |
| 174 | MSM_ISP_STATS_AWB, /* legacy based AWB */ |
| 175 | MSM_ISP_STATS_RS, /* legacy based RS */ |
| 176 | MSM_ISP_STATS_CS, /* legacy based CS */ |
| 177 | MSM_ISP_STATS_IHIST, /* legacy based HIST */ |
| 178 | MSM_ISP_STATS_SKIN, /* legacy based SKIN */ |
| 179 | MSM_ISP_STATS_BG, /* Bayer Grids */ |
| 180 | MSM_ISP_STATS_BF, /* Bayer Focus */ |
| 181 | MSM_ISP_STATS_BE, /* Bayer Exposure*/ |
| 182 | MSM_ISP_STATS_BHIST, /* Bayer Hist */ |
| 183 | MSM_ISP_STATS_MAX /* MAX */ |
| 184 | }; |
| 185 | |
| 186 | struct msm_vfe_stats_stream_request_cmd { |
| 187 | uint32_t session_id; |
| 188 | uint32_t stream_id; |
| 189 | enum msm_isp_stats_type stats_type; |
Kevin Chan | 1f15249 | 2013-03-21 23:36:48 -0700 | [diff] [blame] | 190 | uint32_t composite_flag; |
Mingcheng Zhu | 503a6f9 | 2013-01-06 13:23:24 -0800 | [diff] [blame] | 191 | uint32_t framedrop_pattern; |
Kevin Chan | 3454e2b | 2013-01-17 19:18:57 -0800 | [diff] [blame] | 192 | uint32_t irq_subsample_pattern; |
Kevin Chan | ce198ee | 2013-03-14 18:47:18 -0700 | [diff] [blame] | 193 | uint32_t buffer_offset; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 194 | uint32_t stream_handle; |
| 195 | }; |
Kevin Chan | 3454e2b | 2013-01-17 19:18:57 -0800 | [diff] [blame] | 196 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 197 | struct msm_vfe_stats_stream_release_cmd { |
| 198 | uint32_t stream_handle; |
| 199 | }; |
| 200 | struct msm_vfe_stats_stream_cfg_cmd { |
| 201 | uint8_t num_streams; |
| 202 | uint32_t stream_handle[MSM_ISP_STATS_MAX]; |
| 203 | uint8_t enable; |
| 204 | }; |
Kevin Chan | 3454e2b | 2013-01-17 19:18:57 -0800 | [diff] [blame] | 205 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 206 | enum msm_vfe_reg_cfg_type { |
| 207 | VFE_WRITE, |
| 208 | VFE_WRITE_MB, |
| 209 | VFE_READ, |
Kevin Chan | 7672ef3 | 2013-01-21 22:10:53 -0800 | [diff] [blame] | 210 | VFE_CFG_MASK, |
| 211 | VFE_WRITE_DMI_16BIT, |
| 212 | VFE_WRITE_DMI_32BIT, |
| 213 | VFE_WRITE_DMI_64BIT, |
| 214 | VFE_READ_DMI_16BIT, |
| 215 | VFE_READ_DMI_32BIT, |
| 216 | VFE_READ_DMI_64BIT, |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 217 | }; |
| 218 | |
| 219 | struct msm_vfe_cfg_cmd2 { |
| 220 | uint16_t num_cfg; |
| 221 | uint16_t cmd_len; |
| 222 | void __user *cfg_data; |
| 223 | void __user *cfg_cmd; |
| 224 | }; |
| 225 | |
Kevin Chan | 7672ef3 | 2013-01-21 22:10:53 -0800 | [diff] [blame] | 226 | struct msm_vfe_reg_rw_info { |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 227 | uint32_t reg_offset; |
Kevin Chan | 7672ef3 | 2013-01-21 22:10:53 -0800 | [diff] [blame] | 228 | uint32_t cmd_data_offset; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 229 | uint32_t len; |
Kevin Chan | 7672ef3 | 2013-01-21 22:10:53 -0800 | [diff] [blame] | 230 | }; |
| 231 | |
| 232 | struct msm_vfe_reg_mask_info { |
| 233 | uint32_t reg_offset; |
| 234 | uint32_t mask; |
| 235 | uint32_t val; |
| 236 | }; |
| 237 | |
| 238 | struct msm_vfe_reg_dmi_info { |
| 239 | uint32_t hi_tbl_offset; /*Optional*/ |
| 240 | uint32_t lo_tbl_offset; /*Required*/ |
| 241 | uint32_t len; |
| 242 | }; |
| 243 | |
| 244 | struct msm_vfe_reg_cfg_cmd { |
| 245 | union { |
| 246 | struct msm_vfe_reg_rw_info rw_info; |
| 247 | struct msm_vfe_reg_mask_info mask_info; |
| 248 | struct msm_vfe_reg_dmi_info dmi_info; |
| 249 | } u; |
| 250 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 251 | enum msm_vfe_reg_cfg_type cmd_type; |
| 252 | }; |
| 253 | |
Kevin Chan | baf0a13 | 2013-03-05 20:08:23 -0800 | [diff] [blame] | 254 | enum msm_isp_buf_type { |
| 255 | ISP_PRIVATE_BUF, |
| 256 | ISP_SHARE_BUF, |
| 257 | MAX_ISP_BUF_TYPE, |
| 258 | }; |
| 259 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 260 | struct msm_isp_buf_request { |
| 261 | uint32_t session_id; |
| 262 | uint32_t stream_id; |
| 263 | uint8_t num_buf; |
| 264 | uint32_t handle; |
Kevin Chan | baf0a13 | 2013-03-05 20:08:23 -0800 | [diff] [blame] | 265 | enum msm_isp_buf_type buf_type; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 266 | }; |
| 267 | |
| 268 | struct msm_isp_qbuf_info { |
| 269 | uint32_t handle; |
| 270 | int buf_idx; |
| 271 | /*Only used for prepare buffer*/ |
| 272 | struct v4l2_buffer buffer; |
Kevin Chan | 5bebd2e | 2013-01-30 20:25:05 -0800 | [diff] [blame] | 273 | /*Only used for diverted buffer*/ |
| 274 | uint32_t dirty_buf; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 275 | }; |
| 276 | |
| 277 | struct msm_vfe_axi_src_state { |
| 278 | enum msm_vfe_input_src input_src; |
| 279 | uint32_t src_active; |
| 280 | }; |
| 281 | |
| 282 | enum msm_isp_event_idx { |
| 283 | ISP_REG_UPDATE = 0, |
| 284 | ISP_START_ACK = 1, |
| 285 | ISP_STOP_ACK = 2, |
| 286 | ISP_IRQ_VIOLATION = 3, |
| 287 | ISP_WM_BUS_OVERFLOW = 4, |
| 288 | ISP_STATS_OVERFLOW = 5, |
| 289 | ISP_CAMIF_ERROR = 6, |
Kevin Chan | 9c74c52 | 2013-02-06 22:27:47 -0800 | [diff] [blame] | 290 | ISP_SOF = 7, |
| 291 | ISP_EOF = 8, |
| 292 | ISP_EVENT_MAX = 9 |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 293 | }; |
| 294 | |
Kevin Chan | 9c74c52 | 2013-02-06 22:27:47 -0800 | [diff] [blame] | 295 | #define ISP_EVENT_OFFSET 8 |
| 296 | #define ISP_EVENT_BASE (V4L2_EVENT_PRIVATE_START) |
| 297 | #define ISP_BUF_EVENT_BASE (ISP_EVENT_BASE + (1 << ISP_EVENT_OFFSET)) |
| 298 | #define ISP_STATS_EVENT_BASE (ISP_EVENT_BASE + (2 << ISP_EVENT_OFFSET)) |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 299 | #define ISP_EVENT_REG_UPDATE (ISP_EVENT_BASE + ISP_REG_UPDATE) |
| 300 | #define ISP_EVENT_START_ACK (ISP_EVENT_BASE + ISP_START_ACK) |
| 301 | #define ISP_EVENT_STOP_ACK (ISP_EVENT_BASE + ISP_STOP_ACK) |
| 302 | #define ISP_EVENT_IRQ_VIOLATION (ISP_EVENT_BASE + ISP_IRQ_VIOLATION) |
| 303 | #define ISP_EVENT_WM_BUS_OVERFLOW (ISP_EVENT_BASE + ISP_WM_BUS_OVERFLOW) |
| 304 | #define ISP_EVENT_STATS_OVERFLOW (ISP_EVENT_BASE + ISP_STATS_OVERFLOW) |
| 305 | #define ISP_EVENT_CAMIF_ERROR (ISP_EVENT_BASE + ISP_CAMIF_ERROR) |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 306 | #define ISP_EVENT_SOF (ISP_EVENT_BASE + ISP_SOF) |
| 307 | #define ISP_EVENT_EOF (ISP_EVENT_BASE + ISP_EOF) |
Kevin Chan | 9c74c52 | 2013-02-06 22:27:47 -0800 | [diff] [blame] | 308 | #define ISP_EVENT_BUF_DIVERT (ISP_BUF_EVENT_BASE) |
| 309 | #define ISP_EVENT_STATS_NOTIFY (ISP_STATS_EVENT_BASE) |
Kevin Chan | 1f15249 | 2013-03-21 23:36:48 -0700 | [diff] [blame] | 310 | #define ISP_EVENT_COMP_STATS_NOTIFY (ISP_EVENT_STATS_NOTIFY + MSM_ISP_STATS_MAX) |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 311 | /* The msm_v4l2_event_data structure should match the |
| 312 | * v4l2_event.u.data field. |
| 313 | * should not exceed 64 bytes */ |
| 314 | |
| 315 | struct msm_isp_buf_event { |
| 316 | uint32_t session_id; |
| 317 | uint32_t stream_id; |
| 318 | uint32_t handle; |
| 319 | int8_t buf_idx; |
| 320 | }; |
| 321 | struct msm_isp_stats_event { |
| 322 | uint32_t stats_mask; /* 4 bytes */ |
| 323 | uint8_t stats_buf_idxs[MSM_ISP_STATS_MAX]; /* 11 bytes */ |
| 324 | }; |
| 325 | |
| 326 | struct msm_isp_stream_ack { |
| 327 | uint32_t session_id; |
| 328 | uint32_t stream_id; |
| 329 | uint32_t handle; |
| 330 | }; |
| 331 | |
| 332 | struct msm_isp_event_data { |
Kevin Chan | 9f7785c | 2013-02-22 22:09:57 -0800 | [diff] [blame] | 333 | /*Wall clock except for buffer divert events |
| 334 | *which use monotonic clock |
| 335 | */ |
| 336 | struct timeval timestamp; |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 337 | /* if pix is a src frame_id is from camif */ |
| 338 | uint32_t frame_id; |
| 339 | union { |
| 340 | /* START_ACK, STOP_ACK */ |
| 341 | struct msm_isp_stream_ack stream_ack; |
| 342 | /* REG_UPDATE_TRIGGER, bus over flow */ |
| 343 | enum msm_vfe_input_src input_src; |
| 344 | /* stats notify */ |
| 345 | struct msm_isp_stats_event stats; |
| 346 | /* IRQ_VIOLATION, STATS_OVER_FLOW, WM_OVER_FLOW */ |
| 347 | uint32_t irq_status_mask; |
| 348 | struct msm_isp_buf_event buf_done; |
| 349 | } u; /* union can have max 52 bytes */ |
| 350 | }; |
| 351 | |
Kevin Chan | 80b7b6d | 2013-01-31 16:08:35 -0800 | [diff] [blame] | 352 | #define V4L2_PIX_FMT_QBGGR8 v4l2_fourcc('Q', 'B', 'G', '8') |
| 353 | #define V4L2_PIX_FMT_QGBRG8 v4l2_fourcc('Q', 'G', 'B', '8') |
| 354 | #define V4L2_PIX_FMT_QGRBG8 v4l2_fourcc('Q', 'G', 'R', '8') |
| 355 | #define V4L2_PIX_FMT_QRGGB8 v4l2_fourcc('Q', 'R', 'G', '8') |
| 356 | #define V4L2_PIX_FMT_QBGGR10 v4l2_fourcc('Q', 'B', 'G', '0') |
| 357 | #define V4L2_PIX_FMT_QGBRG10 v4l2_fourcc('Q', 'G', 'B', '0') |
| 358 | #define V4L2_PIX_FMT_QGRBG10 v4l2_fourcc('Q', 'G', 'R', '0') |
| 359 | #define V4L2_PIX_FMT_QRGGB10 v4l2_fourcc('Q', 'R', 'G', '0') |
| 360 | #define V4L2_PIX_FMT_QBGGR12 v4l2_fourcc('Q', 'B', 'G', '2') |
| 361 | #define V4L2_PIX_FMT_QGBRG12 v4l2_fourcc('Q', 'G', 'B', '2') |
| 362 | #define V4L2_PIX_FMT_QGRBG12 v4l2_fourcc('Q', 'G', 'R', '2') |
| 363 | #define V4L2_PIX_FMT_QRGGB12 v4l2_fourcc('Q', 'R', 'G', '2') |
| 364 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 365 | #define VIDIOC_MSM_VFE_REG_CFG \ |
| 366 | _IOWR('V', BASE_VIDIOC_PRIVATE, struct msm_vfe_cfg_cmd2) |
| 367 | |
| 368 | #define VIDIOC_MSM_ISP_REQUEST_BUF \ |
| 369 | _IOWR('V', BASE_VIDIOC_PRIVATE+1, struct msm_isp_buf_request) |
| 370 | |
| 371 | #define VIDIOC_MSM_ISP_ENQUEUE_BUF \ |
| 372 | _IOWR('V', BASE_VIDIOC_PRIVATE+2, struct msm_isp_qbuf_info) |
| 373 | |
| 374 | #define VIDIOC_MSM_ISP_RELEASE_BUF \ |
| 375 | _IOWR('V', BASE_VIDIOC_PRIVATE+3, struct msm_isp_buf_request) |
| 376 | |
| 377 | #define VIDIOC_MSM_ISP_REQUEST_STREAM \ |
| 378 | _IOWR('V', BASE_VIDIOC_PRIVATE+4, struct msm_vfe_axi_stream_request_cmd) |
| 379 | |
| 380 | #define VIDIOC_MSM_ISP_CFG_STREAM \ |
| 381 | _IOWR('V', BASE_VIDIOC_PRIVATE+5, struct msm_vfe_axi_stream_cfg_cmd) |
| 382 | |
| 383 | #define VIDIOC_MSM_ISP_RELEASE_STREAM \ |
| 384 | _IOWR('V', BASE_VIDIOC_PRIVATE+6, struct msm_vfe_axi_stream_release_cmd) |
| 385 | |
| 386 | #define VIDIOC_MSM_ISP_INPUT_CFG \ |
| 387 | _IOWR('V', BASE_VIDIOC_PRIVATE+7, struct msm_vfe_input_cfg) |
| 388 | |
| 389 | #define VIDIOC_MSM_ISP_SET_SRC_STATE \ |
| 390 | _IOWR('V', BASE_VIDIOC_PRIVATE+8, struct msm_vfe_axi_src_state) |
| 391 | |
| 392 | #define VIDIOC_MSM_ISP_REQUEST_STATS_STREAM \ |
| 393 | _IOWR('V', BASE_VIDIOC_PRIVATE+9, \ |
| 394 | struct msm_vfe_stats_stream_request_cmd) |
| 395 | |
| 396 | #define VIDIOC_MSM_ISP_CFG_STATS_STREAM \ |
| 397 | _IOWR('V', BASE_VIDIOC_PRIVATE+10, struct msm_vfe_stats_stream_cfg_cmd) |
| 398 | |
| 399 | #define VIDIOC_MSM_ISP_RELEASE_STATS_STREAM \ |
| 400 | _IOWR('V', BASE_VIDIOC_PRIVATE+11, \ |
| 401 | struct msm_vfe_stats_stream_release_cmd) |
| 402 | |
Kevin Chan | 5bebd2e | 2013-01-30 20:25:05 -0800 | [diff] [blame] | 403 | #define VIDIOC_MSM_ISP_UPDATE_STREAM \ |
| 404 | _IOWR('V', BASE_VIDIOC_PRIVATE+13, struct msm_vfe_axi_stream_update_cmd) |
| 405 | |
Kevin Chan | 1d5fd4a | 2013-01-11 14:08:14 -0800 | [diff] [blame] | 406 | #endif /* __MSMB_ISP__ */ |