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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *		Sunplus spca504(abc) spca533 spca536 library
 *		Copyright (C) 2005 Michel Xhaard [email protected]
 *
 * V4L2 by Jean-Francois Moine <http://moinejf.free.fr>
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include "gspca.h"
#include "jpeg.h"

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

#define QUALITY

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

static const struct v4l2_pix_format vga_mode[] =;

static const struct v4l2_pix_format custom_mode[] =;

static const struct v4l2_pix_format vga_mode2[] =;

#define SPCA50X_OFFSET_DATA
#define SPCA504_PCCAM600_OFFSET_SNAPSHOT
#define SPCA504_PCCAM600_OFFSET_COMPRESS
#define SPCA504_PCCAM600_OFFSET_MODE
#define SPCA504_PCCAM600_OFFSET_DATA
 /* Frame packet header offsets for the spca533 */
#define SPCA533_OFFSET_DATA
#define SPCA533_OFFSET_FRAMSEQ
/* Frame packet header offsets for the spca536 */
#define SPCA536_OFFSET_DATA
#define SPCA536_OFFSET_FRAMSEQ

struct cmd {};

/* Initialisation data for the Creative PC-CAM 600 */
static const struct cmd spca504_pccam600_init_data[] =;

/* Creative PC-CAM 600 specific open data, sent before using the
 * generic initialisation data from spca504_open_data.
 */
static const struct cmd spca504_pccam600_open_data[] =;

/* Initialisation data for the logitech clicksmart 420 */
static const struct cmd spca504A_clicksmart420_init_data[] =;

/* clicksmart 420 open data ? */
static const struct cmd spca504A_clicksmart420_open_data[] =;

static const u8 qtable_creative_pccam[2][64] =;

/* FIXME: This Q-table is identical to the Creative PC-CAM one,
 *		except for one byte. Possibly a typo?
 *		NWG: 18/05/2003.
 */
static const u8 qtable_spca504_default[2][64] =;

/* read <len> bytes to gspca_dev->usb_buf */
static void reg_r(struct gspca_dev *gspca_dev,
		  u8 req,
		  u16 index,
		  u16 len)
{}

/* write one byte */
static void reg_w_1(struct gspca_dev *gspca_dev,
		   u8 req,
		   u16 value,
		   u16 index,
		   u16 byte)
{}

/* write req / index / value */
static void reg_w_riv(struct gspca_dev *gspca_dev,
		     u8 req, u16 index, u16 value)
{}

static void write_vector(struct gspca_dev *gspca_dev,
			const struct cmd *data, int ncmds)
{}

static void setup_qtable(struct gspca_dev *gspca_dev,
			const u8 qtable[2][64])
{}

static void spca504_acknowledged_command(struct gspca_dev *gspca_dev,
			     u8 req, u16 idx, u16 val)
{}

static void spca504_read_info(struct gspca_dev *gspca_dev)
{}

static void spca504A_acknowledged_command(struct gspca_dev *gspca_dev,
			u8 req,
			u16 idx, u16 val, u8 endcode, u8 count)
{}

static void spca504B_PollingDataReady(struct gspca_dev *gspca_dev)
{}

static void spca504B_WaitCmdStatus(struct gspca_dev *gspca_dev)
{}

static void spca50x_GetFirmware(struct gspca_dev *gspca_dev)
{}

static void spca504B_SetSizeType(struct gspca_dev *gspca_dev)
{}

static void spca504_wait_status(struct gspca_dev *gspca_dev)
{}

static void spca504B_setQtable(struct gspca_dev *gspca_dev)
{}

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

static void setcontrast(struct gspca_dev *gspca_dev, s32 val)
{}

static void setcolors(struct gspca_dev *gspca_dev, s32 val)
{}

static void init_ctl_reg(struct gspca_dev *gspca_dev)
{}

/* 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 int sd_start(struct gspca_dev *gspca_dev)
{}

static void sd_stopN(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 -- */
#define BS(bridge, subtype)
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();