Go to the documentation of this file.
18 #ifndef __LINUX_USB_MIDI_H
19 #define __LINUX_USB_MIDI_H
21 #include <linux/types.h>
24 #define USB_MS_HEADER 0x01
25 #define USB_MS_MIDI_IN_JACK 0x02
26 #define USB_MS_MIDI_OUT_JACK 0x03
27 #define USB_MS_ELEMENT 0x04
30 #define USB_MS_GENERAL 0x01
33 #define USB_MS_EMBEDDED 0x01
34 #define USB_MS_EXTERNAL 0x02
45 #define USB_DT_MS_HEADER_SIZE 7
57 #define USB_DT_MIDI_IN_SIZE 6
76 #define USB_DT_MIDI_OUT_SIZE(p) (7 + 2 * (p))
79 #define DECLARE_USB_MIDI_OUT_JACK_DESCRIPTOR(p) \
80 struct usb_midi_out_jack_descriptor_##p { \
82 __u8 bDescriptorType; \
83 __u8 bDescriptorSubtype; \
87 struct usb_midi_source_pin pins[p]; \
89 } __attribute__ ((packed))
100 #define USB_DT_MS_ENDPOINT_SIZE(n) (4 + (n))
103 #define DECLARE_USB_MS_ENDPOINT_DESCRIPTOR(n) \
104 struct usb_ms_endpoint_descriptor_##n { \
106 __u8 bDescriptorType; \
107 __u8 bDescriptorSubtype; \
108 __u8 bNumEmbMIDIJack; \
109 __u8 baAssocJackID[n]; \
110 } __attribute__ ((packed))