OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
include
/
linux
/
usb
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:23 AM
rwxr-xr-x
📄
association.h
4.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
atmel_usba_udc.h
421 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
audio-v2.h
13.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
audio.h
1.23 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
c67x00.h
1.82 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cdc-wdm.h
651 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cdc.h
1.48 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cdc_ncm.h
5.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ch9.h
2.5 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
chipidea.h
2.77 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
composite.h
25.17 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
ehci-dbgp.h
2.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ehci_def.h
7.89 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
ehci_pdriver.h
2.31 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ezusb.h
286 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
functionfs.h
151 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
g_hid.h
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gadget.h
32.65 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gadget_configfs.h
2.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gpio_vbus.h
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hcd.h
25.93 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
input.h
716 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
iowarrior.h
1.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irda.h
3.76 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
isp116x.h
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
isp1301.h
2.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
isp1362.h
1.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
isp1760.h
633 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
m66592.h
1.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
musb-ux500.h
899 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
musb.h
4.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
net2280.h
23.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
of.h
1.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ohci_pdriver.h
1.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
otg-fsm.h
8.61 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
otg.h
3.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pd.h
8.98 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pd_bdo.h
1011 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pd_vdo.h
7.58 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
phy.h
9.25 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
phy_companion.h
1.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
quirks.h
2.34 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
r8a66597.h
17.65 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
renesas_usbhs.h
4.76 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rndis_host.h
5.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
samsung_usb_phy.h
530 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial.h
17.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sl811.h
838 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
storage.h
2.58 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tcpm.h
6.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tegra_usb_phy.h
2.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tilegx.h
983 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
typec.h
7.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uas.h
2.07 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ulpi.h
1.99 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
usb338x.h
7.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
usb_phy_generic.h
892 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
usbnet.h
10.01 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
wusb-wa.h
7.5 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
wusb.h
9.92 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
xhci-dbgp.h
825 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: renesas_usbhs.h
Close
// SPDX-License-Identifier: GPL-1.0+ /* * Renesas USB * * Copyright (C) 2011 Renesas Solutions Corp. * 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/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 table for driver * * These functions are called from platform for driver. * Callback function's pointer will be set before * renesas_usbhs_platform_callback :: hardware_init was called */ struct renesas_usbhs_driver_callback { int (*notify_hotplug)(struct platform_device *pdev); }; /* * 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); }; /* * 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 */ uintptr_t type; u32 enable_gpio; /* * option: */ u32 has_otg:1; /* for controlling PWEN/EXTLP */ u32 has_sudmac:1; /* for SUDMAC */ u32 has_usb_dmac:1; /* for USB-DMAC */ #define USBHS_USB_DMAC_XFER_SIZE 32 /* hardcode the xfer size */ }; #define USBHS_TYPE_RCAR_GEN2 1 #define USBHS_TYPE_RCAR_GEN3 2 #define USBHS_TYPE_RCAR_GEN3_WITH_PLL 3 /* * 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; /* * driver set these callback functions pointer. * platform can use it on callback functions */ struct renesas_usbhs_driver_callback driver_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) #define renesas_usbhs_call_notify_hotplug(pdev) \ ({ \ struct renesas_usbhs_driver_callback *dc; \ dc = &(renesas_usbhs_get_info(pdev)->driver_callback); \ if (dc && dc->notify_hotplug) \ dc->notify_hotplug(pdev); \ }) #endif /* RENESAS_USB_H */