blob: c2c01bba5d037b55186215eb8d4183760d76e8cc [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Hans Verkuil1a0adaf2007-04-27 12:31:25 -03002/*
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 Verkuil1a0adaf2007-04-27 12:31:25 -03007 */
8
Hans Verkuil612570f2007-08-23 05:42:59 -03009#ifndef IVTV_FILEOPS_H
10#define IVTV_FILEOPS_H
11
Hans Verkuil1a0adaf2007-04-27 12:31:25 -030012/* Testing/Debugging */
Hans Verkuilbec43662008-12-30 06:58:20 -030013int ivtv_v4l2_open(struct file *filp);
Hans Verkuil1a0adaf2007-04-27 12:31:25 -030014ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
15 loff_t * pos);
16ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
17 loff_t * pos);
Hans Verkuilbec43662008-12-30 06:58:20 -030018int ivtv_v4l2_close(struct file *filp);
Al Viroc23e0cb2017-07-03 03:02:56 -040019__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 Verkuil1a0adaf2007-04-27 12:31:25 -030021int ivtv_start_capture(struct ivtv_open_id *id);
22void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end);
23int ivtv_start_decoding(struct ivtv_open_id *id, int speed);
Hans Verkuil1a0adaf2007-04-27 12:31:25 -030024void ivtv_mute(struct ivtv *itv);
25void ivtv_unmute(struct ivtv *itv);
26
27/* Utilities */
Andy Walls269c11f2012-09-02 19:13:14 -030028/* Shared with ivtv-alsa module */
29int ivtv_claim_stream(struct ivtv_open_id *id, int type);
Hans Verkuil1a0adaf2007-04-27 12:31:25 -030030void ivtv_release_stream(struct ivtv_stream *s);
Hans Verkuil612570f2007-08-23 05:42:59 -030031
32#endif