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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Pixart PAC207BCA library
 *
 * Copyright (C) 2008 Hans de Goede <[email protected]>
 * Copyright (C) 2005 Thomas Kaiser [email protected]
 * Copyleft (C) 2005 Michel Xhaard [email protected]
 *
 * V4L2 by Jean-Francois Moine <http://moinejf.free.fr>
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include <linux/input.h>
#include "gspca.h"
/* Include pac common sof detection functions */
#include "pac_common.h"

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

#define PAC207_CTRL_TIMEOUT

#define PAC207_BRIGHTNESS_MIN
#define PAC207_BRIGHTNESS_MAX
#define PAC207_BRIGHTNESS_DEFAULT
#define PAC207_BRIGHTNESS_REG

#define PAC207_EXPOSURE_MIN
#define PAC207_EXPOSURE_MAX
#define PAC207_EXPOSURE_DEFAULT
#define PAC207_EXPOSURE_REG

#define PAC207_GAIN_MIN
#define PAC207_GAIN_MAX
#define PAC207_GAIN_DEFAULT
#define PAC207_GAIN_REG

#define PAC207_AUTOGAIN_DEADZONE

/* global parameters */
static int led_invert;
module_param(led_invert, int, 0644);
MODULE_PARM_DESC();

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

static const struct v4l2_pix_format sif_mode[] =;

static const __u8 pac207_sensor_init[][8] =;

static void pac207_write_regs(struct gspca_dev *gspca_dev, u16 index,
	const u8 *buffer, u16 length)
{}

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

static int pac207_read_reg(struct gspca_dev *gspca_dev, u16 index)
{}

/* 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 setcontrol(struct gspca_dev *gspca_dev, u16 reg, u16 val)
{}

static int sd_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static const struct v4l2_ctrl_ops sd_ctrl_ops =;

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

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

static void sd_stopN(struct gspca_dev *gspca_dev)
{}


static void pac207_do_auto_gain(struct gspca_dev *gspca_dev)
{}

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

#if IS_ENABLED(CONFIG_INPUT)
static int sd_int_pkt_scan(struct gspca_dev *gspca_dev,
			u8 *data,		/* interrupt packet data */
			int len)		/* interrupt packet length */
{}
#endif

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