Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gmidi.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/device.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/rawmidi.h>
#include <linux/usb/ch9.h>
#include <linux/usb/composite.h>
#include <linux/usb/gadget.h>
#include <linux/usb/audio.h>
#include <linux/usb/midi.h>
#include "gadget_chips.h"
#include "f_midi.c"

Go to the source code of this file.

Macros

#define DRIVER_VENDOR_NUM   0x17b3 /* Grey Innovation */
 
#define DRIVER_PRODUCT_NUM   0x0004 /* Linux-USB "MIDI Gadget" */
 
#define STRING_DESCRIPTION_IDX   USB_GADGET_FIRST_AVAIL_IDX
 

Functions

 MODULE_AUTHOR ("Ben Williamson")
 
 MODULE_LICENSE ("GPL v2")
 
 USB_GADGET_COMPOSITE_OPTIONS ()
 
 module_param (index, int, S_IRUGO)
 
 MODULE_PARM_DESC (index,"Index value for the USB MIDI Gadget adapter.")
 
 module_param (id, charp, S_IRUGO)
 
 MODULE_PARM_DESC (id,"ID string for the USB MIDI Gadget adapter.")
 
 module_param (buflen, uint, S_IRUGO)
 
 MODULE_PARM_DESC (buflen,"MIDI buffer length")
 
 module_param (qlen, uint, S_IRUGO)
 
 MODULE_PARM_DESC (qlen,"USB read request queue length")
 
 module_param (in_ports, uint, S_IRUGO)
 
 MODULE_PARM_DESC (in_ports,"Number of MIDI input ports")
 
 module_param (out_ports, uint, S_IRUGO)
 
 MODULE_PARM_DESC (out_ports,"Number of MIDI output ports")
 
 module_init (midi_init)
 
 module_exit (midi_cleanup)
 

Macro Definition Documentation

#define DRIVER_PRODUCT_NUM   0x0004 /* Linux-USB "MIDI Gadget" */

Definition at line 82 of file gmidi.c.

#define DRIVER_VENDOR_NUM   0x17b3 /* Grey Innovation */

Definition at line 81 of file gmidi.c.

#define STRING_DESCRIPTION_IDX   USB_GADGET_FIRST_AVAIL_IDX

Definition at line 86 of file gmidi.c.

Function Documentation

MODULE_AUTHOR ( "Ben Williamson"  )
module_exit ( midi_cleanup  )
module_init ( midi_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( index  ,
int  ,
S_IRUGO   
)
module_param ( id  ,
charp  ,
S_IRUGO   
)
module_param ( buflen  ,
uint  ,
S_IRUGO   
)
module_param ( qlen  ,
uint  ,
S_IRUGO   
)
module_param ( in_ports  ,
uint  ,
S_IRUGO   
)
module_param ( out_ports  ,
uint  ,
S_IRUGO   
)
MODULE_PARM_DESC ( index  ,
"Index value for the USB MIDI Gadget adapter."   
)
MODULE_PARM_DESC ( id  ,
"ID string for the USB MIDI Gadget adapter."   
)
MODULE_PARM_DESC ( buflen  ,
"MIDI buffer length  
)
MODULE_PARM_DESC ( qlen  ,
"USB read request queue length  
)
MODULE_PARM_DESC ( in_ports  ,
"Number of MIDI input ports  
)
MODULE_PARM_DESC ( out_ports  ,
"Number of MIDI output ports  
)
USB_GADGET_COMPOSITE_OPTIONS ( )