linux/drivers/media/usb/gspca/sq930x.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * SQ930x subdriver
 *
 * Copyright (C) 2010 Jean-François Moine <http://moinejf.free.fr>
 * Copyright (C) 2006 -2008 Gerard Klaver <gerard at gkall dot hobby dot nl>
 * Copyright (C) 2007 Sam Revitch <[email protected]>
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include "gspca.h"

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

/* Structure to hold all of our device specific stuff */
struct sd {};
enum sensors {};

static struct v4l2_pix_format vga_mode[] =;

/* sq930x registers */
#define SQ930_CTRL_UCBUS_IO
#define SQ930_CTRL_I2C_IO
#define SQ930_CTRL_GPIO
#define SQ930_CTRL_CAP_START
#define SQ930_CTRL_CAP_STOP
#define SQ930_CTRL_SET_EXPOSURE
#define SQ930_CTRL_RESET
#define SQ930_CTRL_GET_DEV_INFO

/* gpio 1 (8..15) */
#define SQ930_GPIO_DFL_I2C_SDA
#define SQ930_GPIO_DFL_I2C_SCL
#define SQ930_GPIO_RSTBAR
#define SQ930_GPIO_EXTRA1
#define SQ930_GPIO_EXTRA2
/* gpio 3 (24..31) */
#define SQ930_GPIO_POWER
#define SQ930_GPIO_DFL_LED

struct ucbus_write_cmd {};
struct i2c_write_cmd {};

static const struct ucbus_write_cmd icx098bq_start_0[] =;
static const struct ucbus_write_cmd icx098bq_start_1[] =;

static const struct ucbus_write_cmd icx098bq_start_2[] =;

static const struct ucbus_write_cmd lz24bp_start_0[] =;
static const struct ucbus_write_cmd lz24bp_start_1_gen[] =;

static const struct ucbus_write_cmd lz24bp_start_1_clm[] =;

static const struct ucbus_write_cmd lz24bp_start_2[] =;

static const struct ucbus_write_cmd mi0360_start_0[] =;
static const struct i2c_write_cmd mi0360_init_23[] =;
static const struct i2c_write_cmd mi0360_init_24[] =;
static const struct i2c_write_cmd mi0360_init_25[] =;
static const struct ucbus_write_cmd mi0360_start_1[] =;
static const struct i2c_write_cmd mi0360_start_2[] =;
static const struct i2c_write_cmd mi0360_start_3[] =;
static const struct i2c_write_cmd mi0360_start_4[] =;

static const struct i2c_write_cmd mt9v111_init_0[] =;
static const struct i2c_write_cmd mt9v111_init_1[] =;
static const struct i2c_write_cmd mt9v111_init_2[] =;
static const struct ucbus_write_cmd mt9v111_start_1[] =;
static const struct i2c_write_cmd mt9v111_init_3[] =;
static const struct i2c_write_cmd mt9v111_init_4[] =;

static const struct ucbus_write_cmd ov7660_start_0[] =;

static const struct ucbus_write_cmd ov9630_start_0[] =;

/* start parameters indexed by [sensor][mode] */
static const struct cap_s {} capconfig[4][2] =;

struct sensor_s {};

static const struct sensor_s sensor_tb[] =;

static void reg_r(struct gspca_dev *gspca_dev,
		u16 value, int len)
{}

static void reg_w(struct gspca_dev *gspca_dev, u16 value, u16 index)
{}

static void reg_wb(struct gspca_dev *gspca_dev, u16 value, u16 index,
		const u8 *data, int len)
{}

static void i2c_write(struct sd *sd,
			const struct i2c_write_cmd *cmd,
			int ncmds)
{}

static void ucbus_write(struct gspca_dev *gspca_dev,
			const struct ucbus_write_cmd *cmd,
			int ncmds,
			int batchsize)
{}

static void gpio_set(struct sd *sd, u16 val, u16 mask)
{}

static void gpio_init(struct sd *sd,
			const u8 *gpio)
{}

static void bridge_init(struct sd *sd)
{}

static void cmos_probe(struct gspca_dev *gspca_dev)
{}

static void mt9v111_init(struct gspca_dev *gspca_dev)
{}

static void global_init(struct sd *sd, int first_time)
{}

static void lz24bp_ppl(struct sd *sd, u16 ppl)
{}

static void setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 gain)
{}

/* This function is called at probe time just before sd_init */
static int sd_config(struct gspca_dev *gspca_dev,
		const struct usb_device_id *id)
{}

/* this function is called at probe and resume time */
static int sd_init(struct gspca_dev *gspca_dev)
{}

/* send the start/stop commands to the webcam */
static void send_start(struct gspca_dev *gspca_dev)
{}

static void send_stop(struct gspca_dev *gspca_dev)
{}

/* function called at start time before URB creation */
static int sd_isoc_init(struct gspca_dev *gspca_dev)
{}

/* start the capture */
static int sd_start(struct gspca_dev *gspca_dev)
{}

static void sd_stopN(struct gspca_dev *gspca_dev)
{}

/* function called when the application gets a new frame */
/* It sets the exposure if required and restart the bulk transfer. */
static void sd_dq_callback(struct gspca_dev *gspca_dev)
{}

static void sd_pkt_scan(struct gspca_dev *gspca_dev,
			u8 *data,		/* isoc packet */
			int len)		/* iso packet length */
{}

static int sd_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static const struct v4l2_ctrl_ops sd_ctrl_ops =;

static int sd_init_controls(struct gspca_dev *gspca_dev)
{}

/* sub-driver description */
static const struct sd_desc sd_desc =;

/* Table of supported USB devices */
#define ST(sensor, type)
static const struct usb_device_id device_table[] =;
MODULE_DEVICE_TABLE(usb, device_table);


/* -- device connect -- */
static int sd_probe(struct usb_interface *intf,
		const struct usb_device_id *id)
{}

static struct usb_driver sd_driver =;

module_usb_driver();