blob: f79a1b348aa6feda4a13e64eea0f7c8274f9cbc5 [file] [log] [blame]
Sylwester Nawrocki34947b82013-12-20 19:35:06 -03001/*
2 * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver
3 *
4 * Copyright (C) 2013 Samsung Electronics Co., Ltd.
5 * Sylwester Nawrocki <s.nawrocki@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11#ifndef FIMC_ISP_VIDEO__
12#define FIMC_ISP_VIDEO__
13
Junghak Sungc1399902015-09-22 10:30:29 -030014#include <media/videobuf2-v4l2.h>
Sylwester Nawrocki34947b82013-12-20 19:35:06 -030015#include "fimc-isp.h"
16
17#ifdef CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE
18int fimc_isp_video_device_register(struct fimc_isp *isp,
19 struct v4l2_device *v4l2_dev,
20 enum v4l2_buf_type type);
21
22void fimc_isp_video_device_unregister(struct fimc_isp *isp,
23 enum v4l2_buf_type type);
24
25void fimc_isp_video_irq_handler(struct fimc_is *is);
26#else
27static inline void fimc_isp_video_irq_handler(struct fimc_is *is)
28{
29}
30
31static inline int fimc_isp_video_device_register(struct fimc_isp *isp,
32 struct v4l2_device *v4l2_dev,
33 enum v4l2_buf_type type)
34{
35 return 0;
36}
37
38void fimc_isp_video_device_unregister(struct fimc_isp *isp,
39 enum v4l2_buf_type type)
40{
41}
42#endif /* !CONFIG_VIDEO_EXYNOS4_ISP_DMA_CAPTURE */
43
44#endif /* FIMC_ISP_VIDEO__ */