1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun file operation functions 4*4882a593Smuzhiyun Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 5*4882a593Smuzhiyun Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef IVTV_FILEOPS_H 10*4882a593Smuzhiyun #define IVTV_FILEOPS_H 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun /* Testing/Debugging */ 13*4882a593Smuzhiyun int ivtv_v4l2_open(struct file *filp); 14*4882a593Smuzhiyun ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count, 15*4882a593Smuzhiyun loff_t * pos); 16*4882a593Smuzhiyun ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count, 17*4882a593Smuzhiyun loff_t * pos); 18*4882a593Smuzhiyun int ivtv_v4l2_close(struct file *filp); 19*4882a593Smuzhiyun __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait); 20*4882a593Smuzhiyun __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait); 21*4882a593Smuzhiyun int ivtv_start_capture(struct ivtv_open_id *id); 22*4882a593Smuzhiyun void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end); 23*4882a593Smuzhiyun int ivtv_start_decoding(struct ivtv_open_id *id, int speed); 24*4882a593Smuzhiyun void ivtv_mute(struct ivtv *itv); 25*4882a593Smuzhiyun void ivtv_unmute(struct ivtv *itv); 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun /* Utilities */ 28*4882a593Smuzhiyun /* Shared with ivtv-alsa module */ 29*4882a593Smuzhiyun int ivtv_claim_stream(struct ivtv_open_id *id, int type); 30*4882a593Smuzhiyun void ivtv_release_stream(struct ivtv_stream *s); 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun #endif 33