linux/drivers/usb/misc/isight_firmware.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Driver for loading USB isight firmware
 *
 * Copyright (C) 2008 Matthew Garrett <[email protected]>
 *
 * The USB isight cameras in recent Apples are roughly compatible with the USB
 * video class specification, and can be driven by uvcvideo. However, they
 * need firmware to be loaded beforehand. After firmware loading, the device
 * detaches from the USB bus and reattaches with a new device ID. It can then
 * be claimed by the uvc driver.
 *
 * The firmware is non-free and must be extracted by the user. Tools to do this
 * are available at http://bersace03.free.fr/ift/
 *
 * The isight firmware loading was reverse engineered by Johannes Berg
 * <[email protected]>, and this driver is based on code by Ronald
 * Bultje <[email protected]>
 */

#include <linux/usb.h>
#include <linux/firmware.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/slab.h>

static const struct usb_device_id id_table[] =;

MODULE_DEVICE_TABLE(usb, id_table);

static int isight_firmware_load(struct usb_interface *intf,
				const struct usb_device_id *id)
{}

MODULE_FIRMWARE();

static void isight_firmware_disconnect(struct usb_interface *intf)
{}

static struct usb_driver isight_firmware_driver =;

module_usb_driver();

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