linux/drivers/media/i2c/bt819.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  bt819 - BT819A VideoStream Decoder (Rockwell Part)
 *
 * Copyright (C) 1999 Mike Bernson <[email protected]>
 * Copyright (C) 1998 Dave Perks <[email protected]>
 *
 * Modifications for LML33/DC10plus unified driver
 * Copyright (C) 2000 Serguei Miridonov <[email protected]>
 *
 * Changes by Ronald Bultje <[email protected]>
 *    - moved over to linux>=2.4.x i2c protocol (9/9/2002)
 *
 * This code was modify/ported from the saa7111 driver written
 * by Dave Perks.
 */

#include <linux/module.h>
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <linux/slab.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/i2c/bt819.h>

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

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


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

struct bt819 {};

static inline struct bt819 *to_bt819(struct v4l2_subdev *sd)
{}

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

struct timing {};

/* for values, see the bt819 datasheet */
static struct timing timing_data[] =;

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

static inline int bt819_write(struct bt819 *decoder, u8 reg, u8 value)
{}

static inline int bt819_setbit(struct bt819 *decoder, u8 reg, u8 bit, u8 value)
{}

static int bt819_write_block(struct bt819 *decoder, const u8 *data, unsigned int len)
{}

static inline int bt819_read(struct bt819 *decoder, u8 reg)
{}

static int bt819_init(struct v4l2_subdev *sd)
{}

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

static int bt819_status(struct v4l2_subdev *sd, u32 *pstatus, v4l2_std_id *pstd)
{}

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

static int bt819_g_input_status(struct v4l2_subdev *sd, u32 *status)
{}

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

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

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

static int bt819_s_ctrl(struct v4l2_ctrl *ctrl)
{}

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

static const struct v4l2_ctrl_ops bt819_ctrl_ops =;

static const struct v4l2_subdev_video_ops bt819_video_ops =;

static const struct v4l2_subdev_ops bt819_ops =;

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

static int bt819_probe(struct i2c_client *client)
{}

static void bt819_remove(struct i2c_client *client)
{}

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

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

static struct i2c_driver bt819_driver =;

module_i2c_driver();