162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * cx18 file operation functions 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Derived from ivtv-fileops.h 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl> 862306a36Sopenharmony_ci */ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci/* Testing/Debugging */ 1162306a36Sopenharmony_ciint cx18_v4l2_open(struct file *filp); 1262306a36Sopenharmony_cissize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count, 1362306a36Sopenharmony_ci loff_t *pos); 1462306a36Sopenharmony_cissize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count, 1562306a36Sopenharmony_ci loff_t *pos); 1662306a36Sopenharmony_ciint cx18_v4l2_close(struct file *filp); 1762306a36Sopenharmony_ci__poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait); 1862306a36Sopenharmony_ciint cx18_start_capture(struct cx18_open_id *id); 1962306a36Sopenharmony_civoid cx18_stop_capture(struct cx18_stream *s, int gop_end); 2062306a36Sopenharmony_civoid cx18_mute(struct cx18 *cx); 2162306a36Sopenharmony_civoid cx18_unmute(struct cx18 *cx); 2262306a36Sopenharmony_ciint cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma); 2362306a36Sopenharmony_civoid cx18_clear_queue(struct cx18_stream *s, enum vb2_buffer_state state); 2462306a36Sopenharmony_civoid cx18_vb_timeout(struct timer_list *t); 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci/* Shared with cx18-alsa module */ 2762306a36Sopenharmony_ciint cx18_claim_stream(struct cx18_open_id *id, int type); 2862306a36Sopenharmony_civoid cx18_release_stream(struct cx18_stream *s); 29