// SPDX-License-Identifier: GPL-2.0+ // Driver for Xbox DVD Movie Playback Kit // Copyright (c) 2018 by Benjamin Valentin <benpicco@googlemail.com>
/* * Xbox DVD Movie Playback Kit USB IR dongle support * * The driver was derived from the ati_remote driver 2.2.1 * and used information from lirc_xbox.c * * Copyright (c) 2011, 2012 Anssi Hannula <anssi.hannula@iki.fi> * Copyright (c) 2004 Torrey Hoffman <thoffman@arnor.net> * Copyright (c) 2002 Vladimir Dergachev * Copyright (c) 2003-2004 Paul Miller <pmiller9@users.sourceforge.net>
*/
/* * Module and Version Information
*/ #define DRIVER_VERSION "1.0.0" #define DRIVER_AUTHOR "Benjamin Valentin " #define DRIVER_DESC "Xbox DVD USB Remote Control"
#define NAME_BUFSIZE 80 /* size of product name, path buffers */ #define DATA_BUFSIZE 8 /* size of URB data buffers */
/* * USB vendor ids for XBOX DVD Dongles
*/ #define VENDOR_GAMESTER 0x040b #define VENDOR_MICROSOFT 0x045e
staticconststruct usb_device_id xbox_remote_table[] = { /* Gamester Xbox DVD Movie Playback Kit IR */
{
USB_DEVICE(VENDOR_GAMESTER, 0x6521),
}, /* Microsoft Xbox DVD Movie Playback Kit IR */
{
USB_DEVICE(VENDOR_MICROSOFT, 0x0284),
},
{} /* Terminating entry */
};
/* On first open, submit the read urb which was set up previously. */
xbox_remote->irq_urb->dev = xbox_remote->udev; if (usb_submit_urb(xbox_remote->irq_urb, GFP_KERNEL)) {
dev_err(&xbox_remote->interface->dev, "%s: usb_submit_urb failed!\n", __func__); return -EIO;
}
/* usb specific object to register with the usb subsystem */ staticstruct usb_driver xbox_remote_driver = {
.name = "xbox_remote",
.probe = xbox_remote_probe,
.disconnect = xbox_remote_disconnect,
.id_table = xbox_remote_table,
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.