1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#ifndef __ATOMISP_IOCTL_H__
22#define __ATOMISP_IOCTL_H__
23
24#include "ia_css.h"
25
26struct atomisp_device;
27struct atomisp_video_pipe;
28
29extern const struct atomisp_format_bridge atomisp_output_fmts[];
30
31const struct
32atomisp_format_bridge *atomisp_get_format_bridge(unsigned int pixelformat);
33
34const struct
35atomisp_format_bridge *atomisp_get_format_bridge_from_mbus(u32 mbus_code);
36
37int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd,
38 uint16_t stream_id);
39
40int __atomisp_streamoff(struct file *file, void *fh, enum v4l2_buf_type type);
41int __atomisp_reqbufs(struct file *file, void *fh,
42 struct v4l2_requestbuffers *req);
43
44int atomisp_reqbufs(struct file *file, void *fh,
45 struct v4l2_requestbuffers *req);
46
47enum ia_css_pipe_id atomisp_get_css_pipe_id(struct atomisp_sub_device
48 *asd);
49
50void atomisp_videobuf_free_buf(struct videobuf_buffer *vb);
51
52extern const struct v4l2_file_operations atomisp_file_fops;
53
54extern const struct v4l2_ioctl_ops atomisp_ioctl_ops;
55
56extern const struct v4l2_ioctl_ops atomisp_file_ioctl_ops;
57
58unsigned int atomisp_streaming_count(struct atomisp_device *isp);
59
60unsigned int atomisp_is_acc_enabled(struct atomisp_device *isp);
61
62long atomisp_compat_ioctl32(struct file *file,
63 unsigned int cmd, unsigned long arg);
64
65int atomisp_stream_on_master_slave_sensor(struct atomisp_device *isp,
66 bool isp_timeout);
67#endif
68