]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.h
8471e391501a10f573f6b46779f72fdbb8aa501b
[mirror_ubuntu-bionic-kernel.git] / drivers / staging / media / atomisp / pci / atomisp2 / atomisp_fops.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_FOPS_H__
25 #define __ATOMISP_FOPS_H__
26 #include "atomisp_subdev.h"
27
28 int atomisp_q_video_buffers_to_css(struct atomisp_sub_device *asd,
29 struct atomisp_video_pipe *pipe,
30 enum atomisp_input_stream_id stream_id,
31 enum atomisp_css_buffer_type css_buf_type,
32 enum atomisp_css_pipe_id css_pipe_id);
33
34 unsigned int atomisp_dev_users(struct atomisp_device *isp);
35 unsigned int atomisp_sub_dev_users(struct atomisp_sub_device *asd);
36
37 /*
38 * Memory help functions for image frame and private parameters
39 */
40
41 int atomisp_videobuf_mmap_mapper(struct videobuf_queue *q,
42 struct vm_area_struct *vma);
43
44 int atomisp_qbuf_to_css(struct atomisp_device *isp,
45 struct atomisp_video_pipe *pipe,
46 struct videobuf_buffer *vb);
47
48 int atomisp_qbuffers_to_css(struct atomisp_sub_device *asd);
49
50 extern const struct v4l2_file_operations atomisp_fops;
51
52 extern bool defer_fw_load;
53
54 #endif /* __ATOMISP_FOPS_H__ */