xref: /openbmc/linux/drivers/media/platform/samsung/exynos4-is/fimc-isp-video.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1238c84f7SMauro Carvalho Chehab /* SPDX-License-Identifier: GPL-2.0-only */
2238c84f7SMauro Carvalho Chehab /*
3238c84f7SMauro Carvalho Chehab  * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver
4238c84f7SMauro Carvalho Chehab  *
5238c84f7SMauro Carvalho Chehab  * Copyright (C) 2013 Samsung Electronics Co., Ltd.
6238c84f7SMauro Carvalho Chehab  * Sylwester Nawrocki <s.nawrocki@samsung.com>
7238c84f7SMauro Carvalho Chehab  */
8238c84f7SMauro Carvalho Chehab #ifndef FIMC_ISP_VIDEO__
9238c84f7SMauro Carvalho Chehab #define FIMC_ISP_VIDEO__
10238c84f7SMauro Carvalho Chehab 
11238c84f7SMauro Carvalho Chehab #include <media/videobuf2-v4l2.h>
12238c84f7SMauro Carvalho Chehab #include "fimc-isp.h"
13238c84f7SMauro Carvalho Chehab 
14238c84f7SMauro Carvalho Chehab #ifdef CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE
15238c84f7SMauro Carvalho Chehab int fimc_isp_video_device_register(struct fimc_isp *isp,
16238c84f7SMauro Carvalho Chehab 				struct v4l2_device *v4l2_dev,
17238c84f7SMauro Carvalho Chehab 				enum v4l2_buf_type type);
18238c84f7SMauro Carvalho Chehab 
19238c84f7SMauro Carvalho Chehab void fimc_isp_video_device_unregister(struct fimc_isp *isp,
20238c84f7SMauro Carvalho Chehab 				enum v4l2_buf_type type);
21238c84f7SMauro Carvalho Chehab 
22238c84f7SMauro Carvalho Chehab void fimc_isp_video_irq_handler(struct fimc_is *is);
23238c84f7SMauro Carvalho Chehab #else
fimc_isp_video_irq_handler(struct fimc_is * is)24238c84f7SMauro Carvalho Chehab static inline void fimc_isp_video_irq_handler(struct fimc_is *is)
25238c84f7SMauro Carvalho Chehab {
26238c84f7SMauro Carvalho Chehab }
27238c84f7SMauro Carvalho Chehab 
fimc_isp_video_device_register(struct fimc_isp * isp,struct v4l2_device * v4l2_dev,enum v4l2_buf_type type)28238c84f7SMauro Carvalho Chehab static inline int fimc_isp_video_device_register(struct fimc_isp *isp,
29238c84f7SMauro Carvalho Chehab 						struct v4l2_device *v4l2_dev,
30238c84f7SMauro Carvalho Chehab 						enum v4l2_buf_type type)
31238c84f7SMauro Carvalho Chehab {
32238c84f7SMauro Carvalho Chehab 	return 0;
33238c84f7SMauro Carvalho Chehab }
34238c84f7SMauro Carvalho Chehab 
fimc_isp_video_device_unregister(struct fimc_isp * isp,enum v4l2_buf_type type)35*e080f5c1SKwanghoon Son static inline void fimc_isp_video_device_unregister(struct fimc_isp *isp,
36238c84f7SMauro Carvalho Chehab 				enum v4l2_buf_type type)
37238c84f7SMauro Carvalho Chehab {
38238c84f7SMauro Carvalho Chehab }
39238c84f7SMauro Carvalho Chehab #endif /* !CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE */
40238c84f7SMauro Carvalho Chehab 
41238c84f7SMauro Carvalho Chehab #endif /* FIMC_ISP_VIDEO__ */
42