treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
[linux-block.git] / drivers / media / pci / ivtv / ivtv-fileops.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
1a0adaf3
HV
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
1a0adaf3
HV
7 */
8
612570f2
HV
9#ifndef IVTV_FILEOPS_H
10#define IVTV_FILEOPS_H
11
1a0adaf3 12/* Testing/Debugging */
bec43661 13int ivtv_v4l2_open(struct file *filp);
1a0adaf3
HV
14ssize_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);
bec43661 18int ivtv_v4l2_close(struct file *filp);
c23e0cb8
AV
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);
1a0adaf3
HV
21int 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);
1a0adaf3
HV
24void ivtv_mute(struct ivtv *itv);
25void ivtv_unmute(struct ivtv *itv);
26
27/* Utilities */
269c11fb
AW
28/* Shared with ivtv-alsa module */
29int ivtv_claim_stream(struct ivtv_open_id *id, int type);
1a0adaf3 30void ivtv_release_stream(struct ivtv_stream *s);
612570f2
HV
31
32#endif