linux/drivers/media/pci/saa7164/saa7164-vbi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Driver for the NXP SAA7164 PCIe bridge
 *
 *  Copyright (c) 2010-2015 Steven Toth <[email protected]>
 */

#include "saa7164.h"

/* Take the encoder configuration from the port struct and
 * flush it to the hardware.
 */
static void saa7164_vbi_configure(struct saa7164_port *port)
{}

static int saa7164_vbi_buffers_dealloc(struct saa7164_port *port)
{}

/* Dynamic buffer switch at vbi start time */
static int saa7164_vbi_buffers_alloc(struct saa7164_port *port)
{}


static int saa7164_vbi_initialize(struct saa7164_port *port)
{}

/* -- V4L2 --------------------------------------------------------- */
static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id id)
{}

static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id)
{}

static int vidioc_g_input(struct file *file, void *priv, unsigned int *i)
{}

static int vidioc_s_input(struct file *file, void *priv, unsigned int i)
{}

static int vidioc_g_frequency(struct file *file, void *priv,
	struct v4l2_frequency *f)
{}

static int vidioc_s_frequency(struct file *file, void *priv,
	const struct v4l2_frequency *f)
{}

static int vidioc_querycap(struct file *file, void  *priv,
	struct v4l2_capability *cap)
{}

static int saa7164_vbi_stop_port(struct saa7164_port *port)
{}

static int saa7164_vbi_acquire_port(struct saa7164_port *port)
{}

static int saa7164_vbi_pause_port(struct saa7164_port *port)
{}

/* Firmware is very windows centric, meaning you have to transition
 * the part through AVStream / KS Windows stages, forwards or backwards.
 * States are: stopped, acquired (h/w), paused, started.
 * We have to leave here will all of the soft buffers on the free list,
 * else the cfg_post() func won't have soft buffers to correctly configure.
 */
static int saa7164_vbi_stop_streaming(struct saa7164_port *port)
{}

static int saa7164_vbi_start_streaming(struct saa7164_port *port)
{}

static int saa7164_vbi_fmt(struct file *file, void *priv,
			   struct v4l2_format *f)
{}

static int fops_open(struct file *file)
{}

static int fops_release(struct file *file)
{}

static struct
saa7164_user_buffer *saa7164_vbi_next_buf(struct saa7164_port *port)
{}

static ssize_t fops_read(struct file *file, char __user *buffer,
	size_t count, loff_t *pos)
{}

static __poll_t fops_poll(struct file *file, poll_table *wait)
{}
static const struct v4l2_file_operations vbi_fops =;

static const struct v4l2_ioctl_ops vbi_ioctl_ops =;

static struct video_device saa7164_vbi_template =;

static struct video_device *saa7164_vbi_alloc(
	struct saa7164_port *port,
	struct pci_dev *pci,
	struct video_device *template,
	char *type)
{}

int saa7164_vbi_register(struct saa7164_port *port)
{}

void saa7164_vbi_unregister(struct saa7164_port *port)
{}