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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * SPCA505 chip based cameras initialization data
 *
 * V4L2 by Jean-Francis Moine <http://moinejf.free.fr>
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include "gspca.h"

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

/* specific webcam descriptor */
struct sd {};

static const struct v4l2_pix_format vga_mode[] =;

#define SPCA50X_OFFSET_DATA

#define SPCA50X_REG_USB

#define SPCA50X_USB_CTRL
#define SPCA50X_CUSB_ENABLE

#define SPCA50X_REG_GLOBAL
#define SPCA50X_GMISC0_IDSEL
#define SPCA50X_GLOBAL_MISC0

#define SPCA50X_GLOBAL_MISC1
#define SPCA50X_GLOBAL_MISC3
#define SPCA50X_GMISC3_SAA7113RST

/* Image format and compression control */
#define SPCA50X_REG_COMPRESS

/*
 * Data to initialize a SPCA505. Common to the CCD and external modes
 */
static const u8 spca505_init_data[][3] =;

/*
 * Data to initialize the camera using the internal CCD
 */
static const u8 spca505_open_data_ccd[][3] =;

/*
 * Made by Tomasz Zablocki ([email protected])
 * SPCA505b chip based cameras initialization data
 */
/* jfm */
#define initial_brightness
/* #define initial_brightness 0x0	//0x0(white)-0xff(black) */
/*
 * Data to initialize a SPCA505. Common to the CCD and external modes
 */
static const u8 spca505b_init_data[][3] =;

/*
 * Data to initialize the camera using the internal CCD
 */
static const u8 spca505b_open_data_ccd[][3] =;

static int reg_write(struct gspca_dev *gspca_dev,
		     u16 req, u16 index, u16 value)
{}

/* returns: negative is error, pos or zero is data */
static int reg_read(struct gspca_dev *gspca_dev,
			u16 req,	/* bRequest */
			u16 index)	/* wIndex */
{}

static int write_vector(struct gspca_dev *gspca_dev,
			const u8 data[][3])
{}

/* this function is called at probe time */
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)
{}

static void setbrightness(struct gspca_dev *gspca_dev, s32 brightness)
{}

static int sd_start(struct gspca_dev *gspca_dev)
{}

static void sd_stopN(struct gspca_dev *gspca_dev)
{}

/* called on streamoff with alt 0 and on disconnect */
static void sd_stop0(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 =;

/* -- module initialisation -- */
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();