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

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

 */

#include "ivtv-driver.h"
#include "ivtv-version.h"
#include "ivtv-mailbox.h"
#include "ivtv-i2c.h"
#include "ivtv-queue.h"
#include "ivtv-fileops.h"
#include "ivtv-vbi.h"
#include "ivtv-routing.h"
#include "ivtv-streams.h"
#include "ivtv-yuv.h"
#include "ivtv-ioctl.h"
#include "ivtv-gpio.h"
#include "ivtv-controls.h"
#include "ivtv-cards.h"
#include <media/i2c/saa7127.h>
#include <media/tveeprom.h>
#include <media/v4l2-event.h>

u16 ivtv_service2vbi(int type)
{}

static int valid_service_line(int field, int line, int is_pal)
{}

static u16 select_service_from_set(int field, int line, u16 set, int is_pal)
{}

void ivtv_expand_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal)
{}

static void check_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal)
{}

u16 ivtv_get_service_set(struct v4l2_sliced_vbi_format *fmt)
{}

void ivtv_set_osd_alpha(struct ivtv *itv)
{}

int ivtv_set_speed(struct ivtv *itv, int speed)
{}

static int ivtv_validate_speed(int cur_speed, int new_speed)
{}

static int ivtv_video_command(struct ivtv *itv, struct ivtv_open_id *id,
		struct v4l2_decoder_cmd *dc, int try)
{}

static int ivtv_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_g_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_try_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_try_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_s_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt)
{}

static int ivtv_s_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt)
{}

#ifdef CONFIG_VIDEO_ADV_DEBUG
static int ivtv_itvc(struct ivtv *itv, bool get, u64 reg, u64 *val)
{}

static int ivtv_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg)
{}

static int ivtv_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg)
{}
#endif

static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap)
{}

static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin)
{}

static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin)
{}

static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout)
{}

static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin)
{}

static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin)
{}

static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout)
{}

static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin)
{}

static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout)
{}

static int ivtv_g_pixelaspect(struct file *file, void *fh,
			      int type, struct v4l2_fract *f)
{}

static int ivtv_s_selection(struct file *file, void *fh,
			    struct v4l2_selection *sel)
{}

static int ivtv_g_selection(struct file *file, void *fh,
			    struct v4l2_selection *sel)
{}

static int ivtv_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt)
{}

static int ivtv_enum_fmt_vid_out(struct file *file, void *fh, struct v4l2_fmtdesc *fmt)
{}

static int ivtv_g_input(struct file *file, void *fh, unsigned int *i)
{}

int ivtv_s_input(struct file *file, void *fh, unsigned int inp)
{}

static int ivtv_g_output(struct file *file, void *fh, unsigned int *i)
{}

static int ivtv_s_output(struct file *file, void *fh, unsigned int outp)
{}

static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf)
{}

int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf)
{}

static int ivtv_g_std(struct file *file, void *fh, v4l2_std_id *std)
{}

void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id std)
{}

void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std)
{}

static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id std)
{}

static int ivtv_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt)
{}

static int ivtv_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt)
{}

static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap)
{}

static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx)
{}

static int ivtv_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc)
{}

static int ivtv_try_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc)
{}

static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)
{}

static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb)
{}

static int ivtv_overlay(struct file *file, void *fh, unsigned int on)
{}

static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub)
{}

static int ivtv_log_status(struct file *file, void *fh)
{}

static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec)
{}

static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec)
{}

static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg)
{}

static long ivtv_default(struct file *file, void *fh, bool valid_prio,
			 unsigned int cmd, void *arg)
{}

static const struct v4l2_ioctl_ops ivtv_ioctl_ops =;

void ivtv_set_funcs(struct video_device *vdev)
{}