1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver
4  *
5  * Copyright (C) 2013 Samsung Electronics Co., Ltd.
6  * Sylwester Nawrocki <s.nawrocki@samsung.com>
7  */
8 #ifndef FIMC_ISP_VIDEO__
9 #define FIMC_ISP_VIDEO__
10 
11 #include <media/videobuf2-v4l2.h>
12 #include "fimc-isp.h"
13 
14 #ifdef CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE
15 int fimc_isp_video_device_register(struct fimc_isp *isp,
16 				struct v4l2_device *v4l2_dev,
17 				enum v4l2_buf_type type);
18 
19 void fimc_isp_video_device_unregister(struct fimc_isp *isp,
20 				enum v4l2_buf_type type);
21 
22 void fimc_isp_video_irq_handler(struct fimc_is *is);
23 #else
24 static inline void fimc_isp_video_irq_handler(struct fimc_is *is)
25 {
26 }
27 
28 static inline int fimc_isp_video_device_register(struct fimc_isp *isp,
29 						struct v4l2_device *v4l2_dev,
30 						enum v4l2_buf_type type)
31 {
32 	return 0;
33 }
34 
35 void fimc_isp_video_device_unregister(struct fimc_isp *isp,
36 				enum v4l2_buf_type type)
37 {
38 }
39 #endif /* !CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE */
40 
41 #endif /* FIMC_ISP_VIDEO__ */
42