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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Z-star vc0321 library
 *
 * Copyright (C) 2009-2010 Jean-François Moine <http://moinejf.free.fr>
 * Copyright (C) 2006 Koninski Artur [email protected]
 * Copyright (C) 2006 Michel Xhaard
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include "gspca.h"

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

/* specific webcam descriptor */
struct sd {};
enum bridges {};
enum sensors {};


static const struct v4l2_pix_format vc0321_mode[] =;
static const struct v4l2_pix_format vc0323_mode[] =;
static const struct v4l2_pix_format bi_mode[] =;
static const struct v4l2_pix_format svga_mode[] =;

/* OV7660/7670 registers */
#define OV7660_REG_MVFP
#define OV7660_MVFP_MIRROR
#define OV7660_MVFP_VFLIP

static const u8 mi0360_matrix[9] =;

static const u8 mi0360_initVGA_JPG[][4] =;
static const u8 mi0360_initQVGA_JPG[][4] =;

static const u8 mi1310_socinitVGA_JPG[][4] =;
static const u8 mi1310_socinitQVGA_JPG[][4] =;
static const u8 mi1310_soc_InitSXGA_JPG[][4] =;

static const u8 mi1320_gamma[17] =;
static const u8 mi1320_matrix[9] =;
static const u8 mi1320_initVGA_data[][4] =;
static const u8 mi1320_initQVGA_data[][4] =;

static const u8 mi1320_soc_InitVGA[][4] =;
static const u8 mi1320_soc_InitQVGA[][4] =;
static const u8 mi1320_soc_InitSXGA[][4] =;
static const u8 po3130_gamma[17] =;
static const u8 po3130_matrix[9] =;

static const u8 po3130_initVGA_data[][4] =;
static const u8 po3130_rundata[][4] =;

static const u8 po3130_initQVGA_data[][4] =;

static const u8 hv7131r_gamma[17] =;
static const u8 hv7131r_matrix[9] =;
static const u8 hv7131r_initVGA_data[][4] =;

static const u8 hv7131r_initQVGA_data[][4] =;

static const u8 ov7660_gamma[17] =;
static const u8 ov7660_matrix[9] =;
static const u8 ov7660_initVGA_data[][4] =;
static const u8 ov7660_initQVGA_data[][4] =;

static const u8 ov7660_50HZ[][4] =;

static const u8 ov7660_60HZ[][4] =;

static const u8 ov7660_NoFlicker[][4] =;

static const u8 ov7670_InitVGA[][4] =;

static const u8 ov7670_InitQVGA[][4] =;

/* PO1200 - values from usbvm326.inf and ms-win trace */
static const u8 po1200_gamma[17] =;
static const u8 po1200_matrix[9] =;
static const u8 po1200_initVGA_data[][4] =;

static const u8 poxxxx_init_common[][4] =;
static const u8 poxxxx_gamma[][4] =;
static const u8 poxxxx_init_start_3[][4] =;
static const u8 poxxxx_initVGA[][4] =;
static const u8 poxxxx_initQVGA[][4] =;
static const u8 poxxxx_init_end_1[][4] =;
static const u8 poxxxx_init_end_2[][4] =;

struct sensor_info {};

/* probe values */
static const struct sensor_info vc0321_probe_data[] =;
static const struct sensor_info vc0323_probe_data[] =;

/* read 'len' bytes in gspca_dev->usb_buf */
static void reg_r_i(struct gspca_dev *gspca_dev,
		  u16 req,
		  u16 index,
		  u16 len)
{}
static void reg_r(struct gspca_dev *gspca_dev,
		  u16 req,
		  u16 index,
		  u16 len)
{}

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

static u16 read_sensor_register(struct gspca_dev *gspca_dev,
				u16 address)
{}

static int vc032x_probe_sensor(struct gspca_dev *gspca_dev)
{}

static void i2c_write(struct gspca_dev *gspca_dev,
			u8 reg, const u8 *val,
			u8 size)		/* 1 or 2 */
{}

static void put_tab_to_reg(struct gspca_dev *gspca_dev,
			const u8 *tab, u8 tabsize, u16 addr)
{}

static void usb_exchange(struct gspca_dev *gspca_dev,
			const u8 data[][4])
{}


/* 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 val)
{}

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

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

static void sethvflip(struct gspca_dev *gspca_dev, bool hflip, bool vflip)
{}

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

static void setsharpness(struct gspca_dev *gspca_dev, s32 val)
{}
static void setgain(struct gspca_dev *gspca_dev, u8 val)
{}

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

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

static void setgamma(struct gspca_dev *gspca_dev)
{}

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

static void setwb(struct gspca_dev *gspca_dev)
{}

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 pkt 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 BF(bridge, flags)
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();