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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * kinect sensor device camera, gspca driver
 *
 * Copyright (C) 2011  Antonio Ospite <[email protected]>
 *
 * Based on the OpenKinect project and libfreenect
 * http://openkinect.org/wiki/Init_Analysis
 *
 * Special thanks to Steven Toth and kernellabs.com for sponsoring a Kinect
 * sensor device which I tested the driver on.
 */

#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 {};

/* specific webcam descriptor */
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)
{}

/* this function is called at probe time */
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)
{}

/* this function is called at probe and resume time */
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)
{}

/* sub-driver description */
static const struct sd_desc sd_desc_video =;
static const struct sd_desc sd_desc_depth =;

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

module_param(depth_mode, bool, 0644);
MODULE_PARM_DESC();