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