/usr/src/linux-headers-5.15.0-181/include/linux/usb
NameSizeModeActions
audio-v2.h143560644editdlrm
audio-v3.h142700644editdlrm
audio.h12610644editdlrm
c67x00.h18670644editdlrm
ccid.h7870644editdlrm
cdc-wdm.h7010644editdlrm
cdc.h15170644editdlrm
cdc_ncm.h59780644editdlrm
ch9.h23420644editdlrm
chipidea.h35120644editdlrm
composite.h261720644editdlrm
ehci-dbgp.h20990644editdlrm
ehci_def.h82770644editdlrm
ehci_pdriver.h23950644editdlrm
ezusb.h2860644editdlrm
functionfs.h1510644editdlrm
gadget.h375430644editdlrm
gadget_configfs.h30140644editdlrm
g_hid.h11580644editdlrm
hcd.h283430644editdlrm
input.h7160644editdlrm
iowarrior.h13740644editdlrm
irda.h38530644editdlrm
isp116x.h11600644editdlrm
isp1301.h24330644editdlrm
isp1362.h16280644editdlrm
m66592.h14440644editdlrm
musb-ux500.h8990644editdlrm
musb.h36000644editdlrm
net2280.h241200644editdlrm
of.h18590644editdlrm
ohci_pdriver.h17480644editdlrm
otg-fsm.h88230644editdlrm
otg.h31580644editdlrm
pd.h152540644editdlrm
pd_ado.h11910644editdlrm
pd_bdo.h5550644editdlrm
pd_ext_sdb.h6980644editdlrm
pd_vdo.h165540644editdlrm
phy.h84350644editdlrm
phy_companion.h11970644editdlrm
quirks.h24030644editdlrm
r8a66597.h180690644editdlrm
r8152.h10670644editdlrm
renesas_usbhs.h43030644editdlrm
rndis_host.h60800644editdlrm
role.h36630644editdlrm
serial.h175960644editdlrm
sl811.h8380644editdlrm
storage.h26450644editdlrm
tcpci.h68830644editdlrm
tcpm.h66140644editdlrm
tegra_usb_phy.h25860644editdlrm
typec.h95900644editdlrm
typec_altmode.h66390644editdlrm
typec_dp.h39980644editdlrm
typec_mux.h21150644editdlrm
typec_tbt.h17740644editdlrm
uas.h21210644editdlrm
ulpi.h23190644editdlrm
usb338x.h79770644editdlrm
usbnet.h108250644editdlrm
usb_phy_generic.h5820644editdlrm
xhci-dbgp.h8250644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/include/linux/usb/ch9.h (2342B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * This file holds USB constants and structures that are needed for * USB device APIs. These are used by the USB device model, which is * defined in chapter 9 of the USB 2.0 specification and in the * Wireless USB 1.0 (spread around). Linux has several APIs in C that * need these: * * - the host side Linux-USB kernel driver API; * - the "usbfs" user space API; and * - the Linux "gadget" device/peripheral side driver API. * * USB 2.0 adds an additional "On The Go" (OTG) mode, which lets systems * act either as a USB host or as a USB device. That means the host and * device side APIs benefit from working well together. * * There's also "Wireless USB", using low power short range radios for * peripheral interconnection but otherwise building on the USB framework. * * Note all descriptors are declared '__attribute__((packed))' so that: * * [a] they never get padded, either internally (USB spec writers * probably handled that) or externally; * * [b] so that accessing bigger-than-a-bytes fields will never * generate bus errors on any platform, even when the location of * its descriptor inside a bundle isn't "naturally aligned", and * * [c] for consistency, removing all doubt even when it appears to * someone that the two other points are non-issues for that * particular descriptor type. */ #ifndef __LINUX_USB_CH9_H #define __LINUX_USB_CH9_H #include #include /* USB 3.2 SuperSpeed Plus phy signaling rate generation and lane count */ enum usb_ssp_rate { USB_SSP_GEN_UNKNOWN = 0, USB_SSP_GEN_2x1, USB_SSP_GEN_1x2, USB_SSP_GEN_2x2, }; extern const char *usb_ep_type_string(int ep_type); extern const char *usb_speed_string(enum usb_device_speed speed); extern enum usb_device_speed usb_get_maximum_speed(struct device *dev); extern enum usb_ssp_rate usb_get_maximum_ssp_rate(struct device *dev); extern const char *usb_state_string(enum usb_device_state state); unsigned int usb_decode_interval(const struct usb_endpoint_descriptor *epd, enum usb_device_speed speed); #ifdef CONFIG_TRACING extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength); #endif #endif /* __LINUX_USB_CH9_H */