GNU Linux-libre 4.14.266-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / atomisp_file.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_FILE_H__
25 #define __ATOMISP_FILE_H__
26
27 #include <media/media-entity.h>
28 #include <media/v4l2-subdev.h>
29
30 struct atomisp_device;
31
32 struct atomisp_file_device {
33         struct v4l2_subdev sd;
34         struct atomisp_device *isp;
35         struct media_pad pads[1];
36
37         struct workqueue_struct *work_queue;
38         struct work_struct work;
39 };
40
41 void atomisp_file_input_cleanup(struct atomisp_device *isp);
42 int atomisp_file_input_init(struct atomisp_device *isp);
43 void atomisp_file_input_unregister_entities(
44                                 struct atomisp_file_device *file_dev);
45 int atomisp_file_input_register_entities(struct atomisp_file_device *file_dev,
46                         struct v4l2_device *vdev);
47 #endif /* __ATOMISP_FILE_H__ */