GNU Linux-libre 4.14.262-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / atomisp_v4l2.h
1 /*
2  * Support for Medifield PNW Camera Imaging ISP subsystem.
3  *
4  * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
5  *
6  * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License version
10  * 2 as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  * 02110-1301, USA.
21  *
22  */
23
24 #ifndef __ATOMISP_V4L2_H__
25 #define __ATOMISP_V4L2_H__
26
27 struct atomisp_video_pipe;
28 struct atomisp_acc_pipe;
29 struct v4l2_device;
30 struct atomisp_device;
31 struct firmware;
32
33 int atomisp_video_init(struct atomisp_video_pipe *video, const char *name);
34 void atomisp_acc_init(struct atomisp_acc_pipe *video, const char *name);
35 void atomisp_video_unregister(struct atomisp_video_pipe *video);
36 int atomisp_video_register(struct atomisp_video_pipe *video,
37         struct v4l2_device *vdev);
38 void atomisp_acc_unregister(struct atomisp_acc_pipe *video);
39 int atomisp_acc_register(struct atomisp_acc_pipe *video,
40         struct v4l2_device *vdev);
41 const struct firmware *atomisp_load_firmware(struct atomisp_device *isp);
42 int atomisp_csi_lane_config(struct atomisp_device *isp);
43
44 #endif /* __ATOMISP_V4L2_H__ */