#define pr_fmt(fmt) …
#define MODULE_NAME …
#include "gspca.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static int webcam;
struct sd { … };
enum bridges { … };
enum webcams { … };
static const u8 webcam_chip[NWEBCAMS] = …;
static const struct v4l2_pix_format cif_mode[] = …;
static const struct v4l2_pix_format vga_mode[] = …;
#define I2C0 …
static const u8 nw800_init[] = …;
static const u8 nw800_start[] = …;
static const u8 nw801_start_1[] = …;
static const u8 nw801_start_qvga[] = …;
static const u8 nw801_start_vga[] = …;
static const u8 nw801_start_2[] = …;
static const u8 nw802_start[] = …;
static const u8 spacecam_init[] = …;
static const u8 spacecam_start[] = …;
static const u8 spacecam2_start[] = …;
static const u8 cvideopro_start[] = …;
static const u8 dlink_start[] = …;
static const u8 ds3303_start[] = …;
static const u8 kr651_start_1[] = …;
static const u8 kr651_start_qvga[] = …;
static const u8 kr651_start_vga[] = …;
static const u8 kr651_start_2[] = …;
static const u8 kritter_start[] = …;
static const u8 mustek_start[] = …;
static const u8 proscope_init[] = …;
static const u8 proscope_start_1[] = …;
static const u8 proscope_start_qvga[] = …;
static const u8 proscope_start_vga[] = …;
static const u8 proscope_start_2[] = …;
static const u8 twinkle_start[] = …;
static const u8 dvcv6_start[] = …;
static const u8 *webcam_start[] = …;
static void reg_w(struct gspca_dev *gspca_dev,
u16 index,
const u8 *data,
int len)
{ … }
static void reg_r(struct gspca_dev *gspca_dev,
u16 index,
int len)
{ … }
static void i2c_w(struct gspca_dev *gspca_dev,
u8 i2c_addr,
const u8 *data,
int len)
{ … }
static void reg_w_buf(struct gspca_dev *gspca_dev,
const u8 *cmd)
{ … }
static int swap_bits(int v)
{ … }
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 int nw802_test_reg(struct gspca_dev *gspca_dev,
u16 index,
u8 value)
{ … }
static int sd_config(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
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,
int len)
{ … }
static void do_autogain(struct gspca_dev *gspca_dev)
{ … }
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)
{ … }
static const struct sd_desc sd_desc = …;
static const struct usb_device_id device_table[] = …;
MODULE_DEVICE_TABLE(usb, device_table);
static int sd_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{ … }
static struct usb_driver sd_driver = …;
module_usb_driver(…) …;
module_param(webcam, int, 0644);
MODULE_PARM_DESC(…) …;