Lines Matching +full:usb +full:- +full:c
1 // SPDX-License-Identifier: GPL-2.0
3 * gmidi.c -- USB MIDI Gadget Driver
5 * Copyright (C) 2006 Thumtronics Pty Ltd.
11 * Gadget Zero driver, Copyright (C) 2003-2004 David Brownell.
12 * USB Audio driver, Copyright (C) 2002 by Takashi Iwai.
13 * USB MIDI driver, Copyright (C) 2002-2005 Clemens Ladisch.
15 * Refer to the USB Device Class Definition for MIDI Devices:
16 * http://www.usb.org/developers/devclass_docs/midi10.pdf
26 #include <linux/usb/composite.h>
27 #include <linux/usb/gadget.h>
31 /*-------------------------------------------------------------------------*/
42 MODULE_PARM_DESC(index, "Index value for the USB MIDI Gadget adapter.");
46 MODULE_PARM_DESC(id, "ID string for the USB MIDI Gadget adapter.");
54 MODULE_PARM_DESC(qlen, "USB read and write request queue length");
66 * DO NOT REUSE THESE IDs with a protocol-incompatible driver!! Ever!!
67 * Instead: allocate your own, using normal USB-IF procedures.
70 #define DRIVER_PRODUCT_NUM 0x0004 /* Linux-USB "MIDI Gadget" */
97 .language = 0x0409, /* en-us */
124 static int midi_bind_config(struct usb_configuration *c) in midi_bind_config() argument
132 status = usb_add_function(c, f_midi); in midi_bind_config()
151 midi_opts->index = index; in midi_bind()
152 midi_opts->id = id; in midi_bind()
153 midi_opts->in_ports = in_ports; in midi_bind()
154 midi_opts->out_ports = out_ports; in midi_bind()
155 midi_opts->buflen = buflen; in midi_bind()
156 midi_opts->qlen = qlen; in midi_bind()