[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
kernels
/
4.18.0-553.64.1.el8_10.x86_64
/
include
/
linux
/
usb
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 association.h
4,697 B
SET
[ EDIT ]
|
[ DEL ]
📄 audio-v2.h
13,775 B
SET
[ EDIT ]
|
[ DEL ]
📄 audio-v3.h
14,270 B
SET
[ EDIT ]
|
[ DEL ]
📄 audio.h
1,108 B
SET
[ EDIT ]
|
[ DEL ]
📄 c67x00.h
1,867 B
SET
[ EDIT ]
|
[ DEL ]
📄 ccid.h
787 B
SET
[ EDIT ]
|
[ DEL ]
📄 cdc-wdm.h
461 B
SET
[ EDIT ]
|
[ DEL ]
📄 cdc.h
1,327 B
SET
[ EDIT ]
|
[ DEL ]
📄 cdc_ncm.h
5,956 B
SET
[ EDIT ]
|
[ DEL ]
📄 ch9.h
2,342 B
SET
[ EDIT ]
|
[ DEL ]
📄 chipidea.h
3,128 B
SET
[ EDIT ]
|
[ DEL ]
📄 composite.h
25,638 B
SET
[ EDIT ]
|
[ DEL ]
📄 ehci-dbgp.h
2,099 B
SET
[ EDIT ]
|
[ DEL ]
📄 ehci_def.h
8,076 B
SET
[ EDIT ]
|
[ DEL ]
📄 ehci_pdriver.h
2,395 B
SET
[ EDIT ]
|
[ DEL ]
📄 ezusb.h
286 B
SET
[ EDIT ]
|
[ DEL ]
📄 functionfs.h
151 B
SET
[ EDIT ]
|
[ DEL ]
📄 g_hid.h
1,158 B
SET
[ EDIT ]
|
[ DEL ]
📄 gadget.h
34,335 B
SET
[ EDIT ]
|
[ DEL ]
📄 gadget_configfs.h
3,014 B
SET
[ EDIT ]
|
[ DEL ]
📄 gpio_vbus.h
1,153 B
SET
[ EDIT ]
|
[ DEL ]
📄 hcd.h
28,423 B
SET
[ EDIT ]
|
[ DEL ]
📄 input.h
526 B
SET
[ EDIT ]
|
[ DEL ]
📄 iowarrior.h
1,374 B
SET
[ EDIT ]
|
[ DEL ]
📄 irda.h
3,853 B
SET
[ EDIT ]
|
[ DEL ]
📄 isp116x.h
1,160 B
SET
[ EDIT ]
|
[ DEL ]
📄 isp1301.h
1,975 B
SET
[ EDIT ]
|
[ DEL ]
📄 isp1362.h
1,628 B
SET
[ EDIT ]
|
[ DEL ]
📄 m66592.h
773 B
SET
[ EDIT ]
|
[ DEL ]
📄 musb-ux500.h
899 B
SET
[ EDIT ]
|
[ DEL ]
📄 musb.h
3,600 B
SET
[ EDIT ]
|
[ DEL ]
📄 net2280.h
24,120 B
SET
[ EDIT ]
|
[ DEL ]
📄 of.h
1,815 B
SET
[ EDIT ]
|
[ DEL ]
📄 ohci_pdriver.h
1,748 B
SET
[ EDIT ]
|
[ DEL ]
📄 otg-fsm.h
8,823 B
SET
[ EDIT ]
|
[ DEL ]
📄 otg.h
3,080 B
SET
[ EDIT ]
|
[ DEL ]
📄 pd.h
16,539 B
SET
[ EDIT ]
|
[ DEL ]
📄 pd_ado.h
1,191 B
SET
[ EDIT ]
|
[ DEL ]
📄 pd_bdo.h
555 B
SET
[ EDIT ]
|
[ DEL ]
📄 pd_ext_sdb.h
698 B
SET
[ EDIT ]
|
[ DEL ]
📄 pd_vdo.h
16,554 B
SET
[ EDIT ]
|
[ DEL ]
📄 phy.h
8,435 B
SET
[ EDIT ]
|
[ DEL ]
📄 phy_companion.h
1,196 B
SET
[ EDIT ]
|
[ DEL ]
📄 quirks.h
2,403 B
SET
[ EDIT ]
|
[ DEL ]
📄 r8152.h
970 B
SET
[ EDIT ]
|
[ DEL ]
📄 r8a66597.h
17,398 B
SET
[ EDIT ]
|
[ DEL ]
📄 renesas_usbhs.h
4,322 B
SET
[ EDIT ]
|
[ DEL ]
📄 rndis_host.h
6,080 B
SET
[ EDIT ]
|
[ DEL ]
📄 role.h
3,538 B
SET
[ EDIT ]
|
[ DEL ]
📄 serial.h
17,384 B
SET
[ EDIT ]
|
[ DEL ]
📄 sl811.h
838 B
SET
[ EDIT ]
|
[ DEL ]
📄 storage.h
2,582 B
SET
[ EDIT ]
|
[ DEL ]
📄 tcpci.h
7,771 B
SET
[ EDIT ]
|
[ DEL ]
📄 tcpm.h
7,009 B
SET
[ EDIT ]
|
[ DEL ]
📄 tegra_usb_phy.h
2,490 B
SET
[ EDIT ]
|
[ DEL ]
📄 typec.h
10,136 B
SET
[ EDIT ]
|
[ DEL ]
📄 typec_altmode.h
6,641 B
SET
[ EDIT ]
|
[ DEL ]
📄 typec_dp.h
3,978 B
SET
[ EDIT ]
|
[ DEL ]
📄 typec_mux.h
2,986 B
SET
[ EDIT ]
|
[ DEL ]
📄 typec_retimer.h
1,198 B
SET
[ EDIT ]
|
[ DEL ]
📄 typec_tbt.h
1,774 B
SET
[ EDIT ]
|
[ DEL ]
📄 uas.h
2,121 B
SET
[ EDIT ]
|
[ DEL ]
📄 ulpi.h
2,147 B
SET
[ EDIT ]
|
[ DEL ]
📄 usb338x.h
7,977 B
SET
[ EDIT ]
|
[ DEL ]
📄 usb_phy_generic.h
582 B
SET
[ EDIT ]
|
[ DEL ]
📄 usbnet.h
10,506 B
SET
[ EDIT ]
|
[ DEL ]
📄 uvc.h
6,339 B
SET
[ EDIT ]
|
[ DEL ]
📄 wusb-wa.h
7,679 B
SET
[ EDIT ]
|
[ DEL ]
📄 wusb.h
9,586 B
SET
[ EDIT ]
|
[ DEL ]
📄 xhci-dbgp.h
651 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: otg.h
/* 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 */