Thomas Gleixner | 1a59d1b8 | 2019-05-27 08:55:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 2 | /* |
| 3 | file operation functions |
| 4 | Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> |
| 5 | Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> |
| 6 | |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 7 | */ |
| 8 | |
Hans Verkuil | 612570f | 2007-08-23 05:42:59 -0300 | [diff] [blame] | 9 | #ifndef IVTV_FILEOPS_H |
| 10 | #define IVTV_FILEOPS_H |
| 11 | |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 12 | /* Testing/Debugging */ |
Hans Verkuil | bec4366 | 2008-12-30 06:58:20 -0300 | [diff] [blame] | 13 | int ivtv_v4l2_open(struct file *filp); |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 14 | ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count, |
| 15 | loff_t * pos); |
| 16 | ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count, |
| 17 | loff_t * pos); |
Hans Verkuil | bec4366 | 2008-12-30 06:58:20 -0300 | [diff] [blame] | 18 | int ivtv_v4l2_close(struct file *filp); |
Al Viro | c23e0cb | 2017-07-03 03:02:56 -0400 | [diff] [blame] | 19 | __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait); |
| 20 | __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait); |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 21 | int ivtv_start_capture(struct ivtv_open_id *id); |
| 22 | void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end); |
| 23 | int ivtv_start_decoding(struct ivtv_open_id *id, int speed); |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 24 | void ivtv_mute(struct ivtv *itv); |
| 25 | void ivtv_unmute(struct ivtv *itv); |
| 26 | |
| 27 | /* Utilities */ |
Andy Walls | 269c11f | 2012-09-02 19:13:14 -0300 | [diff] [blame] | 28 | /* Shared with ivtv-alsa module */ |
| 29 | int ivtv_claim_stream(struct ivtv_open_id *id, int type); |
Hans Verkuil | 1a0adaf | 2007-04-27 12:31:25 -0300 | [diff] [blame] | 30 | void ivtv_release_stream(struct ivtv_stream *s); |
Hans Verkuil | 612570f | 2007-08-23 05:42:59 -0300 | [diff] [blame] | 31 | |
| 32 | #endif |