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 10 #ifndef __ATOMISP_IOCTL_H__ 11 #define __ATOMISP_IOCTL_H__ 12 13 #include "ia_css.h" 14 15 struct atomisp_device; 16 struct atomisp_video_pipe; 17 18 extern const struct atomisp_format_bridge atomisp_output_fmts[]; 19 20 const struct 21 atomisp_format_bridge *atomisp_get_format_bridge(unsigned int pixelformat); 22 23 const struct 24 atomisp_format_bridge *atomisp_get_format_bridge_from_mbus(u32 mbus_code); 25 26 int atomisp_pipe_check(struct atomisp_video_pipe *pipe, bool streaming_ok); 27 28 int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd, 29 uint16_t stream_id); 30 31 int atomisp_start_streaming(struct vb2_queue *vq, unsigned int count); 32 void atomisp_stop_streaming(struct vb2_queue *vq); 33 34 extern const struct v4l2_ioctl_ops atomisp_ioctl_ops; 35 36 /* compat_ioctl for 32bit userland app and 64bit kernel */ 37 long atomisp_compat_ioctl32(struct file *file, 38 unsigned int cmd, unsigned long arg); 39 40 #endif /* __ATOMISP_IOCTL_H__ */ 41