linux/drivers/media/i2c/saa7110.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * saa7110 - Philips SAA7110(A) video decoder driver
 *
 * Copyright (C) 1998 Pauline Middelink <[email protected]>
 *
 * Copyright (C) 1999 Wolfgang Scherr <[email protected]>
 * Copyright (C) 2000 Serguei Miridonov <[email protected]>
 *    - some corrections for Pinnacle Systems Inc. DC10plus card.
 *
 * Changes by Ronald Bultje <[email protected]>
 *    - moved over to linux>=2.4.x i2c protocol (1/1/2003)
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/uaccess.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();


static int debug;
module_param(debug, int, 0);
MODULE_PARM_DESC();

#define SAA7110_MAX_INPUT
#define SAA7110_MAX_OUTPUT

#define SAA7110_NR_REG

struct saa7110 {};

static inline struct saa7110 *to_saa7110(struct v4l2_subdev *sd)
{}

static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl)
{}

/* ----------------------------------------------------------------------- */
/* I2C support functions						   */
/* ----------------------------------------------------------------------- */

static int saa7110_write(struct v4l2_subdev *sd, u8 reg, u8 value)
{}

static int saa7110_write_block(struct v4l2_subdev *sd, const u8 *data, unsigned int len)
{}

static inline int saa7110_read(struct v4l2_subdev *sd)
{}

/* ----------------------------------------------------------------------- */
/* SAA7110 functions							   */
/* ----------------------------------------------------------------------- */

#define FRESP_06H_COMPST
#define FRESP_06H_SVIDEO


static int saa7110_selmux(struct v4l2_subdev *sd, int chan)
{}

static const unsigned char initseq[1 + SAA7110_NR_REG] =;

static v4l2_std_id determine_norm(struct v4l2_subdev *sd)
{}

static int saa7110_g_input_status(struct v4l2_subdev *sd, u32 *pstatus)
{}

static int saa7110_querystd(struct v4l2_subdev *sd, v4l2_std_id *std)
{}

static int saa7110_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
{}

static int saa7110_s_routing(struct v4l2_subdev *sd,
			     u32 input, u32 output, u32 config)
{}

static int saa7110_s_stream(struct v4l2_subdev *sd, int enable)
{}

static int saa7110_s_ctrl(struct v4l2_ctrl *ctrl)
{}

/* ----------------------------------------------------------------------- */

static const struct v4l2_ctrl_ops saa7110_ctrl_ops =;

static const struct v4l2_subdev_video_ops saa7110_video_ops =;

static const struct v4l2_subdev_ops saa7110_ops =;

/* ----------------------------------------------------------------------- */

static int saa7110_probe(struct i2c_client *client)
{}

static void saa7110_remove(struct i2c_client *client)
{}

/* ----------------------------------------------------------------------- */

static const struct i2c_device_id saa7110_id[] =;
MODULE_DEVICE_TABLE(i2c, saa7110_id);

static struct i2c_driver saa7110_driver =;

module_i2c_driver();