/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/usb
NameSizeModeActions
association.h46970644editdlrm
audio-v2.h137750644editdlrm
audio-v3.h142700644editdlrm
audio.h11080644editdlrm
c67x00.h18670644editdlrm
ccid.h7870644editdlrm
cdc-wdm.h4610644editdlrm
cdc.h13270644editdlrm
cdc_ncm.h59560644editdlrm
ch9.h23420644editdlrm
chipidea.h31280644editdlrm
composite.h256380644editdlrm
ehci-dbgp.h20990644editdlrm
ehci_def.h80760644editdlrm
ehci_pdriver.h23950644editdlrm
ezusb.h2860644editdlrm
functionfs.h1510644editdlrm
gadget.h343350644editdlrm
gadget_configfs.h30140644editdlrm
gpio_vbus.h11530644editdlrm
g_hid.h11580644editdlrm
hcd.h284230644editdlrm
input.h5260644editdlrm
iowarrior.h13740644editdlrm
irda.h38530644editdlrm
isp116x.h11600644editdlrm
isp1301.h19750644editdlrm
isp1362.h16280644editdlrm
m66592.h7730644editdlrm
musb-ux500.h8990644editdlrm
musb.h36000644editdlrm
net2280.h241200644editdlrm
of.h18150644editdlrm
ohci_pdriver.h17480644editdlrm
otg-fsm.h88230644editdlrm
otg.h30800644editdlrm
pd.h165390644editdlrm
pd_ado.h11910644editdlrm
pd_bdo.h5550644editdlrm
pd_ext_sdb.h6980644editdlrm
pd_vdo.h165540644editdlrm
phy.h84350644editdlrm
phy_companion.h11960644editdlrm
quirks.h24030644editdlrm
r8a66597.h173980644editdlrm
r8152.h9700644editdlrm
renesas_usbhs.h43220644editdlrm
rndis_host.h60800644editdlrm
role.h35380644editdlrm
serial.h173840644editdlrm
sl811.h8380644editdlrm
storage.h25820644editdlrm
tcpci.h77710644editdlrm
tcpm.h70090644editdlrm
tegra_usb_phy.h24900644editdlrm
typec.h101360644editdlrm
typec_altmode.h66410644editdlrm
typec_dp.h39780644editdlrm
typec_mux.h29860644editdlrm
typec_retimer.h11980644editdlrm
typec_tbt.h17740644editdlrm
uas.h21210644editdlrm
ulpi.h21470644editdlrm
usb338x.h79770644editdlrm
usbnet.h105060644editdlrm
usb_phy_generic.h5820644editdlrm
uvc.h63390644editdlrm
wusb-wa.h76790644editdlrm
wusb.h95860644editdlrm
xhci-dbgp.h6510644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/usb/renesas_usbhs.h (4322B)
// SPDX-License-Identifier: GPL-1.0+ /* * Renesas USB * * Copyright (C) 2011 Renesas Solutions Corp. * Copyright (C) 2019 Renesas Electronics Corporation * Kuninori Morimoto * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifndef RENESAS_USB_H #define RENESAS_USB_H #include #include #include /* * module type * * it will be return value from get_id */ enum { USBHS_HOST = 0, USBHS_GADGET, USBHS_MAX, }; /* * callback functions for platform * * These functions are called from driver for platform */ struct renesas_usbhs_platform_callback { /* * option: * * Hardware init function for platform. * it is called when driver was probed. */ int (*hardware_init)(struct platform_device *pdev); /* * option: * * Hardware exit function for platform. * it is called when driver was removed */ int (*hardware_exit)(struct platform_device *pdev); /* * option: * * for board specific clock control */ int (*power_ctrl)(struct platform_device *pdev, void __iomem *base, int enable); /* * option: * * Phy reset for platform */ int (*phy_reset)(struct platform_device *pdev); /* * get USB ID function * - USBHS_HOST * - USBHS_GADGET */ int (*get_id)(struct platform_device *pdev); /* * get VBUS status function. */ int (*get_vbus)(struct platform_device *pdev); /* * option: * * VBUS control is needed for Host */ int (*set_vbus)(struct platform_device *pdev, int enable); /* * option: * extcon notifier to set host/peripheral mode. */ int (*notifier)(struct notifier_block *nb, unsigned long event, void *data); }; /* * parameters for renesas usbhs * * some register needs USB chip specific parameters. * This struct show it to driver */ struct renesas_usbhs_driver_pipe_config { u8 type; /* USB_ENDPOINT_XFER_xxx */ u16 bufsize; u8 bufnum; bool double_buf; }; #define RENESAS_USBHS_PIPE(_type, _size, _num, _double_buf) { \ .type = (_type), \ .bufsize = (_size), \ .bufnum = (_num), \ .double_buf = (_double_buf), \ } struct renesas_usbhs_driver_param { /* * pipe settings */ struct renesas_usbhs_driver_pipe_config *pipe_configs; int pipe_size; /* pipe_configs array size */ /* * option: * * for BUSWAIT :: BWAIT * see * renesas_usbhs/common.c :: usbhsc_set_buswait() * */ int buswait_bwait; /* * option: * * delay time from notify_hotplug callback */ int detection_delay; /* msec */ /* * option: * * dma id for dmaengine * The data transfer direction on D0FIFO/D1FIFO should be * fixed for keeping consistency. * So, the platform id settings will be.. * .d0_tx_id = xx_TX, * .d1_rx_id = xx_RX, * or * .d1_tx_id = xx_TX, * .d0_rx_id = xx_RX, */ int d0_tx_id; int d0_rx_id; int d1_tx_id; int d1_rx_id; int d2_tx_id; int d2_rx_id; int d3_tx_id; int d3_rx_id; /* * option: * * pio <--> dma border. */ int pio_dma_border; /* default is 64byte */ u32 enable_gpio; /* * option: */ u32 has_usb_dmac:1; /* for USB-DMAC */ u32 runtime_pwctrl:1; u32 has_cnen:1; u32 cfifo_byte_addr:1; /* CFIFO is byte addressable */ #define USBHS_USB_DMAC_XFER_SIZE 32 /* hardcode the xfer size */ u32 multi_clks:1; u32 has_new_pipe_configs:1; }; /* * option: * * platform information for renesas_usbhs driver. */ struct renesas_usbhs_platform_info { /* * option: * * platform set these functions before * call platform_add_devices if needed */ struct renesas_usbhs_platform_callback platform_callback; /* * option: * * driver use these param for some register */ struct renesas_usbhs_driver_param driver_param; }; /* * macro for platform */ #define renesas_usbhs_get_info(pdev)\ ((struct renesas_usbhs_platform_info *)(pdev)->dev.platform_data) #endif /* RENESAS_USB_H */