#define pr_fmt(fmt) …
#define MODULE_NAME …
#include "gspca.h"
#define CTRL_TIMEOUT …
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static bool depth_mode;
struct pkt_hdr { … };
struct cam_hdr { … };
struct sd { … };
#define MODE_640x480 …
#define MODE_640x488 …
#define MODE_1280x1024 …
#define FORMAT_BAYER …
#define FORMAT_UYVY …
#define FORMAT_Y10B …
#define FPS_HIGH …
static const struct v4l2_pix_format depth_camera_mode[] = …;
static const struct v4l2_pix_format video_camera_mode[] = …;
static int kinect_write(struct usb_device *udev, uint8_t *data,
uint16_t wLength)
{ … }
static int kinect_read(struct usb_device *udev, uint8_t *data, uint16_t wLength)
{ … }
static int send_cmd(struct gspca_dev *gspca_dev, uint16_t cmd, void *cmdbuf,
unsigned int cmd_len, void *replybuf, unsigned int reply_len)
{ … }
static int write_register(struct gspca_dev *gspca_dev, uint16_t reg,
uint16_t data)
{ … }
static int sd_config_video(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
static int sd_config_depth(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
static int sd_init(struct gspca_dev *gspca_dev)
{ … }
static int sd_start_video(struct gspca_dev *gspca_dev)
{ … }
static int sd_start_depth(struct gspca_dev *gspca_dev)
{ … }
static void sd_stopN_video(struct gspca_dev *gspca_dev)
{ … }
static void sd_stopN_depth(struct gspca_dev *gspca_dev)
{ … }
static void sd_pkt_scan(struct gspca_dev *gspca_dev, u8 *__data, int len)
{ … }
static const struct sd_desc sd_desc_video = …;
static const struct sd_desc sd_desc_depth = …;
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(depth_mode, bool, 0644);
MODULE_PARM_DESC(…) …;