18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  cx18 file operation functions
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Derived from ivtv-fileops.h
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci *  Copyright (C) 2007  Hans Verkuil <hverkuil@xs4all.nl>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/* Testing/Debugging */
118c2ecf20Sopenharmony_ciint cx18_v4l2_open(struct file *filp);
128c2ecf20Sopenharmony_cissize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
138c2ecf20Sopenharmony_ci		      loff_t *pos);
148c2ecf20Sopenharmony_cissize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count,
158c2ecf20Sopenharmony_ci		       loff_t *pos);
168c2ecf20Sopenharmony_ciint cx18_v4l2_close(struct file *filp);
178c2ecf20Sopenharmony_ci__poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait);
188c2ecf20Sopenharmony_ciint cx18_start_capture(struct cx18_open_id *id);
198c2ecf20Sopenharmony_civoid cx18_stop_capture(struct cx18_open_id *id, int gop_end);
208c2ecf20Sopenharmony_civoid cx18_mute(struct cx18 *cx);
218c2ecf20Sopenharmony_civoid cx18_unmute(struct cx18 *cx);
228c2ecf20Sopenharmony_ciint cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma);
238c2ecf20Sopenharmony_civoid cx18_vb_timeout(struct timer_list *t);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci/* Shared with cx18-alsa module */
268c2ecf20Sopenharmony_ciint cx18_claim_stream(struct cx18_open_id *id, int type);
278c2ecf20Sopenharmony_civoid cx18_release_stream(struct cx18_stream *s);
28