/
usr
/
src
/
kernels
/
4.18.0-553.121.1.el8_10.x86_64
/
include
/
linux
/
usb
/
/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/linux/usb
mkdir
upload
Name
Size
Mode
Actions
association.h
4697
0644
edit
dl
rm
audio-v2.h
13775
0644
edit
dl
rm
audio-v3.h
14270
0644
edit
dl
rm
audio.h
1108
0644
edit
dl
rm
c67x00.h
1867
0644
edit
dl
rm
ccid.h
787
0644
edit
dl
rm
cdc-wdm.h
461
0644
edit
dl
rm
cdc.h
1327
0644
edit
dl
rm
cdc_ncm.h
5956
0644
edit
dl
rm
ch9.h
2342
0644
edit
dl
rm
chipidea.h
3128
0644
edit
dl
rm
composite.h
25638
0644
edit
dl
rm
ehci-dbgp.h
2099
0644
edit
dl
rm
ehci_def.h
8076
0644
edit
dl
rm
ehci_pdriver.h
2395
0644
edit
dl
rm
ezusb.h
286
0644
edit
dl
rm
functionfs.h
151
0644
edit
dl
rm
gadget.h
34335
0644
edit
dl
rm
gadget_configfs.h
3014
0644
edit
dl
rm
gpio_vbus.h
1153
0644
edit
dl
rm
g_hid.h
1158
0644
edit
dl
rm
hcd.h
28423
0644
edit
dl
rm
input.h
526
0644
edit
dl
rm
iowarrior.h
1374
0644
edit
dl
rm
irda.h
3853
0644
edit
dl
rm
isp116x.h
1160
0644
edit
dl
rm
isp1301.h
1975
0644
edit
dl
rm
isp1362.h
1628
0644
edit
dl
rm
m66592.h
773
0644
edit
dl
rm
musb-ux500.h
899
0644
edit
dl
rm
musb.h
3600
0644
edit
dl
rm
net2280.h
24120
0644
edit
dl
rm
of.h
1815
0644
edit
dl
rm
ohci_pdriver.h
1748
0644
edit
dl
rm
otg-fsm.h
8823
0644
edit
dl
rm
otg.h
3080
0644
edit
dl
rm
pd.h
16539
0644
edit
dl
rm
pd_ado.h
1191
0644
edit
dl
rm
pd_bdo.h
555
0644
edit
dl
rm
pd_ext_sdb.h
698
0644
edit
dl
rm
pd_vdo.h
16554
0644
edit
dl
rm
phy.h
8435
0644
edit
dl
rm
phy_companion.h
1196
0644
edit
dl
rm
quirks.h
2403
0644
edit
dl
rm
r8a66597.h
17398
0644
edit
dl
rm
r8152.h
970
0644
edit
dl
rm
renesas_usbhs.h
4322
0644
edit
dl
rm
rndis_host.h
6080
0644
edit
dl
rm
role.h
3538
0644
edit
dl
rm
serial.h
17384
0644
edit
dl
rm
sl811.h
838
0644
edit
dl
rm
storage.h
2582
0644
edit
dl
rm
tcpci.h
7771
0644
edit
dl
rm
tcpm.h
7009
0644
edit
dl
rm
tegra_usb_phy.h
2490
0644
edit
dl
rm
typec.h
10136
0644
edit
dl
rm
typec_altmode.h
6641
0644
edit
dl
rm
typec_dp.h
3978
0644
edit
dl
rm
typec_mux.h
2986
0644
edit
dl
rm
typec_retimer.h
1198
0644
edit
dl
rm
typec_tbt.h
1774
0644
edit
dl
rm
uas.h
2121
0644
edit
dl
rm
ulpi.h
2147
0644
edit
dl
rm
usb338x.h
7977
0644
edit
dl
rm
usbnet.h
10506
0644
edit
dl
rm
usb_phy_generic.h
582
0644
edit
dl
rm
uvc.h
6339
0644
edit
dl
rm
wusb-wa.h
7679
0644
edit
dl
rm
wusb.h
9586
0644
edit
dl
rm
xhci-dbgp.h
651
0644
edit
dl
rm
Edit:
/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/linux/usb/otg.h
(3080B)
/* SPDX-License-Identifier: GPL-2.0 */ /* USB OTG (On The Go) defines */ /* * * These APIs may be used between USB controllers. USB device drivers * (for either host or peripheral roles) don't use these calls; they * continue to use just usb_device and usb_gadget. */ #ifndef __LINUX_USB_OTG_H #define __LINUX_USB_OTG_H #include <linux/phy/phy.h> #include <linux/usb/phy.h> struct usb_otg { u8 default_a; struct phy *phy; /* old usb_phy interface */ struct usb_phy *usb_phy; struct usb_bus *host; struct usb_gadget *gadget; enum usb_otg_state state; /* bind/unbind the host controller */ int (*set_host)(struct usb_otg *otg, struct usb_bus *host); /* bind/unbind the peripheral controller */ int (*set_peripheral)(struct usb_otg *otg, struct usb_gadget *gadget); /* effective for A-peripheral, ignored for B devices */ int (*set_vbus)(struct usb_otg *otg, bool enabled); /* for B devices only: start session with A-Host */ int (*start_srp)(struct usb_otg *otg); /* start or continue HNP role switch */ int (*start_hnp)(struct usb_otg *otg); }; /** * struct usb_otg_caps - describes the otg capabilities of the device * @otg_rev: The OTG revision number the device is compliant with, it's * in binary-coded decimal (i.e. 2.0 is 0200H). * @hnp_support: Indicates if the device supports HNP. * @srp_support: Indicates if the device supports SRP. * @adp_support: Indicates if the device supports ADP. */ struct usb_otg_caps { u16 otg_rev; bool hnp_support; bool srp_support; bool adp_support; }; extern const char *usb_otg_state_string(enum usb_otg_state state); /* Context: can sleep */ static inline int otg_start_hnp(struct usb_otg *otg) { if (otg && otg->start_hnp) return otg->start_hnp(otg); return -ENOTSUPP; } /* Context: can sleep */ static inline int otg_set_vbus(struct usb_otg *otg, bool enabled) { if (otg && otg->set_vbus) return otg->set_vbus(otg, enabled); return -ENOTSUPP; } /* for HCDs */ static inline int otg_set_host(struct usb_otg *otg, struct usb_bus *host) { if (otg && otg->set_host) return otg->set_host(otg, host); return -ENOTSUPP; } /* for usb peripheral controller drivers */ /* Context: can sleep */ static inline int otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) { if (otg && otg->set_peripheral) return otg->set_peripheral(otg, periph); return -ENOTSUPP; } static inline int otg_start_srp(struct usb_otg *otg) { if (otg && otg->start_srp) return otg->start_srp(otg); return -ENOTSUPP; } /* for OTG controller drivers (and maybe other stuff) */ extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num); enum usb_dr_mode { USB_DR_MODE_UNKNOWN, USB_DR_MODE_HOST, USB_DR_MODE_PERIPHERAL, USB_DR_MODE_OTG, }; /** * usb_get_dr_mode - Get dual role mode for given device * @dev: Pointer to the given device * * The function gets phy interface string from property 'dr_mode', * and returns the corresponding enum usb_dr_mode */ extern enum usb_dr_mode usb_get_dr_mode(struct device *dev); #endif /* __LINUX_USB_OTG_H */
Save
cmd:
run