1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Medifield PNW Camera Imaging ISP subsystem.
4  *
5  * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
6  *
7  * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License version
11  * 2 as published by the Free Software Foundation.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  *
19  */
20 
21 #ifndef	__ATOMISP_FOPS_H__
22 #define	__ATOMISP_FOPS_H__
23 #include "atomisp_subdev.h"
24 
25 unsigned int atomisp_dev_users(struct atomisp_device *isp);
26 unsigned int atomisp_sub_dev_users(struct atomisp_sub_device *asd);
27 
28 /*
29  * Memory help functions for image frame and private parameters
30  */
31 
32 int atomisp_videobuf_mmap_mapper(struct videobuf_queue *q,
33 				 struct vm_area_struct *vma);
34 
35 int atomisp_qbuf_to_css(struct atomisp_device *isp,
36 			struct atomisp_video_pipe *pipe,
37 			struct videobuf_buffer *vb);
38 
39 int atomisp_qbuffers_to_css(struct atomisp_sub_device *asd);
40 
41 extern const struct v4l2_file_operations atomisp_fops;
42 
43 extern bool defer_fw_load;
44 
45 #endif /* __ATOMISP_FOPS_H__ */
46