Pratap Nirujogi | 6e75991 | 2018-01-17 17:51:17 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef __MSMB_ISP__ |
| 13 | #define __MSMB_ISP__ |
| 14 | |
| 15 | #include <uapi/media/msmb_isp.h> |
| 16 | |
| 17 | #ifdef CONFIG_COMPAT |
| 18 | struct msm_isp_event_data32 { |
| 19 | struct compat_timeval timestamp; |
| 20 | struct compat_timeval mono_timestamp; |
| 21 | uint32_t frame_id; |
| 22 | union { |
| 23 | struct msm_isp_stats_event stats; |
| 24 | struct msm_isp_buf_event buf_done; |
| 25 | struct msm_isp_fetch_eng_event fetch_done; |
| 26 | struct msm_isp_error_info error_info; |
| 27 | struct msm_isp_output_info output_info; |
| 28 | struct msm_isp_sof_info sof_info; |
| 29 | } u; |
| 30 | }; |
Sundara Vinayagam | 16b4b35 | 2018-05-15 17:13:10 +0530 | [diff] [blame] | 31 | |
| 32 | struct msm_isp32_event_data32 { |
| 33 | struct compat_timeval timestamp; |
| 34 | struct compat_timeval mono_timestamp; |
| 35 | enum msm_vfe_input_src input_intf; |
| 36 | uint32_t frame_id; |
| 37 | union { |
| 38 | struct msm_isp_stats_event stats; |
| 39 | struct msm_isp_buf_event buf_done; |
| 40 | struct msm_isp32_error_info error_info; |
| 41 | } u; |
| 42 | }; |
| 43 | |
Pratap Nirujogi | 6e75991 | 2018-01-17 17:51:17 +0530 | [diff] [blame] | 44 | #endif |
Srikanth Uyyala | 2d52bd1 | 2018-03-05 14:05:21 +0530 | [diff] [blame] | 45 | #ifdef CONFIG_MSM_AVTIMER |
| 46 | struct avtimer_fptr_t { |
| 47 | int (*fptr_avtimer_open)(void); |
| 48 | int (*fptr_avtimer_enable)(int enable); |
| 49 | int (*fptr_avtimer_get_time)(uint64_t *avtimer_tick); |
| 50 | }; |
| 51 | void msm_isp_set_avtimer_fptr(struct avtimer_fptr_t avtimer_func); |
| 52 | #endif |
Pratap Nirujogi | 6e75991 | 2018-01-17 17:51:17 +0530 | [diff] [blame] | 53 | #endif |
| 54 | |