msm-4.14/include/media/msmb_isp.h
Abhishek Jain 5f7e75aebe msm: camera: Port msm-4.9 camera kernel on msm-4.14 kernel
This snapshot is taken from msm-4.9 branch as of:
'1f2808a Merge "msm: camera: fix i2c eeprom probe failed"'.

Change-Id: I3b8ecd78d4e31eac1924d53cc2b3ad2c28c2c826
Signed-off-by: Abhishek Jain <abhij@codeaurora.org>
2018-12-14 13:46:35 +05:30

54 lines
1.5 KiB
C

/* Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __MSMB_ISP__
#define __MSMB_ISP__
#include <uapi/media/msmb_isp.h>
#ifdef CONFIG_COMPAT
struct msm_isp_event_data32 {
struct compat_timeval timestamp;
struct compat_timeval mono_timestamp;
uint32_t frame_id;
union {
struct msm_isp_stats_event stats;
struct msm_isp_buf_event buf_done;
struct msm_isp_fetch_eng_event fetch_done;
struct msm_isp_error_info error_info;
struct msm_isp_output_info output_info;
struct msm_isp_sof_info sof_info;
} u;
};
struct msm_isp32_event_data32 {
struct compat_timeval timestamp;
struct compat_timeval mono_timestamp;
enum msm_vfe_input_src input_intf;
uint32_t frame_id;
union {
struct msm_isp_stats_event stats;
struct msm_isp_buf_event buf_done;
struct msm_isp32_error_info error_info;
} u;
};
#endif
#ifdef CONFIG_MSM_AVTIMER
struct avtimer_fptr_t {
int (*fptr_avtimer_open)(void);
int (*fptr_avtimer_enable)(int enable);
int (*fptr_avtimer_get_time)(uint64_t *avtimer_tick);
};
void msm_isp_set_avtimer_fptr(struct avtimer_fptr_t avtimer_func);
#endif
#endif