linux/drivers/media/i2c/adv7170.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * adv7170 - adv7170, adv7171 video encoder driver version 0.0.1
 *
 * Copyright (C) 2002 Maxim Yevtyushkin <[email protected]>
 *
 * Based on adv7176 driver by:
 *
 * Copyright (C) 1998 Dave Perks <[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/types.h>
#include <linux/slab.h>
#include <linux/ioctl.h>
#include <linux/uaccess.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>

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


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

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

struct adv7170 {};

static inline struct adv7170 *to_adv7170(struct v4l2_subdev *sd)
{}

static char *inputs[] =;

static u32 adv7170_codes[] =;

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

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

static inline int adv7170_read(struct v4l2_subdev *sd, u8 reg)
{}

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

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

#define TR0MODE
#define TR0RST

#define TR1CAPT
#define TR1PLAY

static const unsigned char init_NTSC[] =;

static const unsigned char init_PAL[] =;


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

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

static int adv7170_enum_mbus_code(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_mbus_code_enum *code)
{}

static int adv7170_get_fmt(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_format *format)
{}

static int adv7170_set_fmt(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_format *format)
{}

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

static const struct v4l2_subdev_video_ops adv7170_video_ops =;

static const struct v4l2_subdev_pad_ops adv7170_pad_ops =;

static const struct v4l2_subdev_ops adv7170_ops =;

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

static int adv7170_probe(struct i2c_client *client)
{}

static void adv7170_remove(struct i2c_client *client)
{}

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

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

static struct i2c_driver adv7170_driver =;

module_i2c_driver();