Path: blob/master/drivers/media/video/ivtv/ivtv-fileops.h
17745 views
/*1file operation functions2Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>3Copyright (C) 2005-2007 Hans Verkuil <[email protected]>45This program is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2 of the License, or8(at your option) any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program; if not, write to the Free Software17Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/1920#ifndef IVTV_FILEOPS_H21#define IVTV_FILEOPS_H2223/* Testing/Debugging */24int ivtv_v4l2_open(struct file *filp);25ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,26loff_t * pos);27ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,28loff_t * pos);29int ivtv_v4l2_close(struct file *filp);30unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);31unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);32int ivtv_start_capture(struct ivtv_open_id *id);33void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end);34int ivtv_start_decoding(struct ivtv_open_id *id, int speed);35void ivtv_mute(struct ivtv *itv);36void ivtv_unmute(struct ivtv *itv);3738/* Utilities */3940/* Release a previously claimed stream. */41void ivtv_release_stream(struct ivtv_stream *s);4243#endif444546