linux/drivers/media/pci/ivtv/ivtv-fileops.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-or-later */
   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
   7 */
   8
   9#ifndef IVTV_FILEOPS_H
  10#define IVTV_FILEOPS_H
  11
  12/* Testing/Debugging */
  13int ivtv_v4l2_open(struct file *filp);
  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);
  18int ivtv_v4l2_close(struct file *filp);
  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);
  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);
  24void ivtv_mute(struct ivtv *itv);
  25void ivtv_unmute(struct ivtv *itv);
  26
  27/* Utilities */
  28/* Shared with ivtv-alsa module */
  29int ivtv_claim_stream(struct ivtv_open_id *id, int type);
  30void ivtv_release_stream(struct ivtv_stream *s);
  31
  32#endif
  33