/
usr
/
src
/
linux-headers-5.15.0-190
/
include
/
linux
/
usb
/
/usr/src/linux-headers-5.15.0-190/include/linux/usb
mkdir
upload
Name
Size
Mode
Actions
audio-v2.h
14356
0644
edit
dl
rm
audio-v3.h
14270
0644
edit
dl
rm
audio.h
1261
0644
edit
dl
rm
c67x00.h
1867
0644
edit
dl
rm
ccid.h
787
0644
edit
dl
rm
cdc-wdm.h
701
0644
edit
dl
rm
cdc.h
1517
0644
edit
dl
rm
cdc_ncm.h
5978
0644
edit
dl
rm
ch9.h
2342
0644
edit
dl
rm
chipidea.h
3512
0644
edit
dl
rm
composite.h
26172
0644
edit
dl
rm
ehci-dbgp.h
2099
0644
edit
dl
rm
ehci_def.h
8277
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
37543
0644
edit
dl
rm
gadget_configfs.h
3014
0644
edit
dl
rm
g_hid.h
1158
0644
edit
dl
rm
hcd.h
28343
0644
edit
dl
rm
input.h
716
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
2433
0644
edit
dl
rm
isp1362.h
1628
0644
edit
dl
rm
m66592.h
1444
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
1859
0644
edit
dl
rm
ohci_pdriver.h
1748
0644
edit
dl
rm
otg-fsm.h
8823
0644
edit
dl
rm
otg.h
3158
0644
edit
dl
rm
pd.h
15254
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
1197
0644
edit
dl
rm
quirks.h
2403
0644
edit
dl
rm
r8a66597.h
18069
0644
edit
dl
rm
r8152.h
1102
0644
edit
dl
rm
renesas_usbhs.h
4303
0644
edit
dl
rm
rndis_host.h
6080
0644
edit
dl
rm
role.h
3663
0644
edit
dl
rm
serial.h
17596
0644
edit
dl
rm
sl811.h
838
0644
edit
dl
rm
storage.h
2645
0644
edit
dl
rm
tcpci.h
6883
0644
edit
dl
rm
tcpm.h
6614
0644
edit
dl
rm
tegra_usb_phy.h
2586
0644
edit
dl
rm
typec.h
9590
0644
edit
dl
rm
typec_altmode.h
6639
0644
edit
dl
rm
typec_dp.h
3998
0644
edit
dl
rm
typec_mux.h
2115
0644
edit
dl
rm
typec_tbt.h
1774
0644
edit
dl
rm
uas.h
2121
0644
edit
dl
rm
ulpi.h
2319
0644
edit
dl
rm
usb338x.h
7977
0644
edit
dl
rm
usbnet.h
10825
0644
edit
dl
rm
usb_phy_generic.h
582
0644
edit
dl
rm
xhci-dbgp.h
825
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/include/linux/usb/renesas_usbhs.h
(4303B)
// SPDX-License-Identifier: GPL-1.0+ /* * Renesas USB * * Copyright (C) 2011 Renesas Solutions Corp. * Copyright (C) 2019 Renesas Electronics Corporation * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> * * 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 <linux/notifier.h> #include <linux/platform_device.h> #include <linux/usb/ch9.h> /* * 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 */ /* * 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 */
Save
cmd:
run