linux/drivers/media/pci/ivtv/ivtv-fileops.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
    file operation functions
    Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
    Copyright (C) 2004  Chris Kennedy <[email protected]>
    Copyright (C) 2005-2007  Hans Verkuil <[email protected]>

 */

#include "ivtv-driver.h"
#include "ivtv-fileops.h"
#include "ivtv-i2c.h"
#include "ivtv-queue.h"
#include "ivtv-udma.h"
#include "ivtv-irq.h"
#include "ivtv-vbi.h"
#include "ivtv-mailbox.h"
#include "ivtv-routing.h"
#include "ivtv-streams.h"
#include "ivtv-yuv.h"
#include "ivtv-ioctl.h"
#include "ivtv-cards.h"
#include "ivtv-firmware.h"
#include <linux/lockdep.h>
#include <media/v4l2-event.h>
#include <media/i2c/saa7115.h>

/* This function tries to claim the stream for a specific file descriptor.
   If no one else is using this stream then the stream is claimed and
   associated VBI streams are also automatically claimed.
   Possible error returns: -EBUSY if someone else has claimed
   the stream or 0 on success. */
int ivtv_claim_stream(struct ivtv_open_id *id, int type)
{}
EXPORT_SYMBOL();

/* This function releases a previously claimed stream. It will take into
   account associated VBI streams. */
void ivtv_release_stream(struct ivtv_stream *s)
{}
EXPORT_SYMBOL();

static void ivtv_dualwatch(struct ivtv *itv)
{}

static void ivtv_update_pgm_info(struct ivtv *itv)
{}

static void ivtv_schedule(struct ivtv_stream *s)
{}

static struct ivtv_buffer *ivtv_get_buffer(struct ivtv_stream *s, int non_block, int *err)
{}

static void ivtv_setup_sliced_vbi_buf(struct ivtv *itv)
{}

static size_t ivtv_copy_buf_to_user(struct ivtv_stream *s, struct ivtv_buffer *buf,
		char __user *ubuf, size_t ucount)
{}

static ssize_t ivtv_read(struct ivtv_stream *s, char __user *ubuf, size_t tot_count, int non_block)
{}

static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t count,
			loff_t *pos, int non_block)
{}

int ivtv_start_capture(struct ivtv_open_id *id)
{}

ssize_t ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos)
{}

int ivtv_start_decoding(struct ivtv_open_id *id, int speed)
{}

static int ivtv_schedule_dma(struct ivtv_stream *s)
{}

static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
{}

ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
{}

__poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait)
{}

__poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait)
{}

void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end)
{}

static void ivtv_stop_decoding(struct ivtv_open_id *id, int flags, u64 pts)
{}

int ivtv_v4l2_close(struct file *filp)
{}

static int ivtv_open(struct file *filp)
{}

int ivtv_v4l2_open(struct file *filp)
{}

void ivtv_mute(struct ivtv *itv)
{}

void ivtv_unmute(struct ivtv *itv)
{}