linux/drivers/media/pci/saa7164/saa7164-api.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 <linux/wait.h>
#include <linux/slab.h>

#include "saa7164.h"

int saa7164_api_get_load_info(struct saa7164_dev *dev, struct tmFwInfoStruct *i)
{}

int saa7164_api_collect_debug(struct saa7164_dev *dev)
{}

int saa7164_api_set_debug(struct saa7164_dev *dev, u8 level)
{}

int saa7164_api_set_vbi_format(struct saa7164_port *port)
{}

static int saa7164_api_set_gop_size(struct saa7164_port *port)
{}

int saa7164_api_set_encoder(struct saa7164_port *port)
{}

int saa7164_api_get_encoder(struct saa7164_port *port)
{}

int saa7164_api_set_aspect_ratio(struct saa7164_port *port)
{}

int saa7164_api_set_usercontrol(struct saa7164_port *port, u8 ctl)
{}

int saa7164_api_get_usercontrol(struct saa7164_port *port, u8 ctl)
{}

int saa7164_api_set_videomux(struct saa7164_port *port)
{}

int saa7164_api_audio_mute(struct saa7164_port *port, int mute)
{}

/* 0 = silence, 0xff = full */
int saa7164_api_set_audio_volume(struct saa7164_port *port, s8 level)
{}

int saa7164_api_set_audio_std(struct saa7164_port *port)
{}

int saa7164_api_set_audio_detection(struct saa7164_port *port, int autodetect)
{}

int saa7164_api_get_videomux(struct saa7164_port *port)
{}

static int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val)
{}

/* Disable the IF block AGC controls */
int saa7164_api_configure_dif(struct saa7164_port *port, u32 std)
{}

/* Ensure the dif is in the correct state for the operating mode
 * (analog / dtv). We only configure the diff through the analog encoder
 * so when we're in digital mode we need to find the appropriate encoder
 * and use it to configure the DIF.
 */
int saa7164_api_initialize_dif(struct saa7164_port *port)
{}

int saa7164_api_transition_port(struct saa7164_port *port, u8 mode)
{}

int saa7164_api_get_fw_version(struct saa7164_dev *dev, u32 *version)
{}

int saa7164_api_read_eeprom(struct saa7164_dev *dev, u8 *buf, int buflen)
{}

static int saa7164_api_configure_port_vbi(struct saa7164_dev *dev,
					  struct saa7164_port *port)
{}

static int
saa7164_api_configure_port_mpeg2ts(struct saa7164_dev *dev,
				   struct saa7164_port *port,
				   struct tmComResTSFormatDescrHeader *tsfmt)
{}

static int
saa7164_api_configure_port_mpeg2ps(struct saa7164_dev *dev,
				   struct saa7164_port *port,
				   struct tmComResPSFormatDescrHeader *fmt)
{}

static int saa7164_api_dump_subdevs(struct saa7164_dev *dev, u8 *buf, int len)
{}

int saa7164_api_enum_subdevs(struct saa7164_dev *dev)
{}

int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg,
	u32 datalen, u8 *data)
{}

/* For a given 8 bit i2c address device, write the buffer */
int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen,
	u8 *data)
{}

static int saa7164_api_modify_gpio(struct saa7164_dev *dev, u8 unitid,
	u8 pin, u8 state)
{}

int saa7164_api_set_gpiobit(struct saa7164_dev *dev, u8 unitid,
	u8 pin)
{}

int saa7164_api_clear_gpiobit(struct saa7164_dev *dev, u8 unitid,
	u8 pin)
{}