blob: 176dd2e44f07faba8e1f1786e009c543fa5043ba [file] [log] [blame]
Pratap Nirujogi6e759912018-01-17 17:51:17 +05301/* 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
18struct 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 Vinayagam16b4b352018-05-15 17:13:10 +053031
32struct 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 Nirujogi6e759912018-01-17 17:51:17 +053044#endif
Srikanth Uyyala2d52bd12018-03-05 14:05:21 +053045#ifdef CONFIG_MSM_AVTIMER
46struct 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};
51void msm_isp_set_avtimer_fptr(struct avtimer_fptr_t avtimer_func);
52#endif
Pratap Nirujogi6e759912018-01-17 17:51:17 +053053#endif
54