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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * ov534-ov9xxx gspca driver
 *
 * Copyright (C) 2009-2011 Jean-Francois Moine http://moinejf.free.fr
 * Copyright (C) 2008 Antonio Ospite <[email protected]>
 * Copyright (C) 2008 Jim Paris <[email protected]>
 *
 * Based on a prototype written by Mark Ferrell <[email protected]>
 * USB protocol reverse engineered by Jim Paris <[email protected]>
 * https://jim.sh/svn/jim/devl/playstation/ps3/eye/test/
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include "gspca.h"

#define OV534_REG_ADDRESS
#define OV534_REG_SUBADDR
#define OV534_REG_WRITE
#define OV534_REG_READ
#define OV534_REG_OPERATION
#define OV534_REG_STATUS

#define OV534_OP_WRITE_3
#define OV534_OP_WRITE_2
#define OV534_OP_READ_2

#define CTRL_TIMEOUT

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

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

static const struct v4l2_pix_format ov965x_mode[] =;

static const struct v4l2_pix_format ov971x_mode[] =;

static const struct v4l2_pix_format ov562x_mode[] =;

enum ov361x {};

static const struct v4l2_pix_format ov361x_mode[] =;

static const u8 ov361x_start_2048[][2] =;
static const u8 ov361x_bridge_start_2048[][2] =;

static const u8 ov361x_start_1600[][2] =;
static const u8 ov361x_bridge_start_1600[][2] =;

static const u8 ov361x_start_1024[][2] =;
static const u8 ov361x_bridge_start_1024[][2] =;

static const u8 ov361x_start_640[][2] =;

static const u8 ov361x_bridge_start_640[][2] =;

static const u8 ov361x_start_320[][2] =;

static const u8 ov361x_bridge_start_320[][2] =;

static const u8 ov361x_start_160[][2] =;

static const u8 ov361x_bridge_start_160[][2] =;

static const u8 bridge_init[][2] =;

static const u8 ov965x_init[][2] =;

static const u8 bridge_init_2[][2] =;

static const u8 ov965x_init_2[][2] =;

static const u8 ov971x_init[][2] =;

static const u8 ov965x_start_1_vga[][2] =;

static const u8 ov965x_start_1_svga[][2] =;

static const u8 ov965x_start_1_xga[][2] =;

static const u8 ov965x_start_1_sxga[][2] =;

static const u8 bridge_start_qvga[][2] =;

static const u8 bridge_start_vga[][2] =;

static const u8 bridge_start_svga[][2] =;

static const u8 bridge_start_xga[][2] =;

static const u8 bridge_start_sxga[][2] =;

static const u8 ov965x_start_2_qvga[][2] =;

static const u8 ov965x_start_2_vga[][2] =;

static const u8 ov965x_start_2_svga[][2] =;

static const u8 ov965x_start_2_sxga[][2] =;

static const u8 ov562x_init[][2] =;

static const u8 ov562x_init_2[][2] =;

static void reg_w_i(struct gspca_dev *gspca_dev, u16 reg, u8 val)
{}

static void reg_w(struct gspca_dev *gspca_dev, u16 reg, u8 val)
{}

static u8 reg_r(struct gspca_dev *gspca_dev, u16 reg)
{}

static int sccb_check_status(struct gspca_dev *gspca_dev)
{}

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

static u8 sccb_read(struct gspca_dev *gspca_dev, u16 reg)
{}

/* output a bridge sequence (reg - val) */
static void reg_w_array(struct gspca_dev *gspca_dev,
			const u8 (*data)[2], int len)
{}

/* output a sensor sequence (reg - val) */
static void sccb_w_array(struct gspca_dev *gspca_dev,
			const u8 (*data)[2], int len)
{}

/* Two bits control LED: 0x21 bit 7 and 0x23 bit 7.
 * (direction and output)? */
static void set_led(struct gspca_dev *gspca_dev, int status)
{}

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

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

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

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

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

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

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

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

static int sd_start(struct gspca_dev *gspca_dev)
{}

static void sd_stopN(struct gspca_dev *gspca_dev)
{}

/* Values for bmHeaderInfo (Video and Still Image Payload Headers, 2.4.3.3) */
#define UVC_STREAM_EOH
#define UVC_STREAM_ERR
#define UVC_STREAM_STI
#define UVC_STREAM_RES
#define UVC_STREAM_SCR
#define UVC_STREAM_PTS
#define UVC_STREAM_EOF
#define UVC_STREAM_FID

static void sd_pkt_scan(struct gspca_dev *gspca_dev,
			u8 *data, int len)
{}

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();