#define pr_fmt(fmt) …
#define MODULE_NAME …
#include "gspca.h"
#define CAM_TYPE_CIF …
#define CAM_TYPE_VGA …
#define MR97310A_BRIGHTNESS_DEFAULT …
#define MR97310A_EXPOSURE_MIN …
#define MR97310A_EXPOSURE_MAX …
#define MR97310A_EXPOSURE_DEFAULT …
#define MR97310A_GAIN_MIN …
#define MR97310A_GAIN_MAX …
#define MR97310A_GAIN_DEFAULT …
#define MR97310A_CONTRAST_MIN …
#define MR97310A_CONTRAST_MAX …
#define MR97310A_CONTRAST_DEFAULT …
#define MR97310A_CS_GAIN_MIN …
#define MR97310A_CS_GAIN_MAX …
#define MR97310A_CS_GAIN_DEFAULT …
#define MR97310A_CID_CLOCKDIV …
#define MR97310A_MIN_CLOCKDIV_MIN …
#define MR97310A_MIN_CLOCKDIV_MAX …
#define MR97310A_MIN_CLOCKDIV_DEFAULT …
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static int force_sensor_type = …;
module_param(force_sensor_type, int, 0644);
MODULE_PARM_DESC(…) …;
struct sd { … };
struct sensor_w_data { … };
static void sd_stopN(struct gspca_dev *gspca_dev);
static const struct v4l2_pix_format vga_mode[] = …;
static int mr_write(struct gspca_dev *gspca_dev, int len)
{ … }
static int mr_read(struct gspca_dev *gspca_dev, int len)
{ … }
static int sensor_write_reg(struct gspca_dev *gspca_dev, u8 reg, u8 flags,
const u8 *data, int len)
{ … }
static int sensor_write_regs(struct gspca_dev *gspca_dev,
const struct sensor_w_data *data, int len)
{ … }
static int sensor_write1(struct gspca_dev *gspca_dev, u8 reg, u8 data)
{ … }
static int cam_get_response16(struct gspca_dev *gspca_dev, u8 reg, int verbose)
{ … }
static int zero_the_pointer(struct gspca_dev *gspca_dev)
{ … }
static int stream_start(struct gspca_dev *gspca_dev)
{ … }
static void stream_stop(struct gspca_dev *gspca_dev)
{ … }
static void lcd_stop(struct gspca_dev *gspca_dev)
{ … }
static int isoc_enable(struct gspca_dev *gspca_dev)
{ … }
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 start_cif_cam(struct gspca_dev *gspca_dev)
{ … }
static int start_vga_cam(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 setbrightness(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 min_clockdiv)
{ … }
static void setgain(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setcontrast(struct gspca_dev *gspca_dev, s32 val)
{ … }
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)
{ … }
#include "pac_common.h"
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
u8 *data,
int len)
{ … }
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(…) …;