~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/usb/ehci_pdriver.h

Version: ~ [ linux-5.10-rc6 ] ~ [ linux-5.9.12 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.81 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.161 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.210 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.247 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.247 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (C) 2012 Hauke Mehrtens <hauke@hauke-m.de>
  3  *
  4  * This program is free software; you can redistribute it and/or modify it
  5  * under the terms of the GNU General Public License as published by the
  6  * Free Software Foundation; either version 2 of the License, or (at your
  7  * option) any later version.
  8  *
  9  * This program is distributed in the hope that it will be useful, but
 10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 11  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * for more details.
 13  *
 14  * You should have received a copy of the GNU General Public License
 15  * along with this program; if not, write to the Free Software Foundation,
 16  * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 17  */
 18 
 19 #ifndef __USB_CORE_EHCI_PDRIVER_H
 20 #define __USB_CORE_EHCI_PDRIVER_H
 21 
 22 struct platform_device;
 23 struct usb_hcd;
 24 
 25 /**
 26  * struct usb_ehci_pdata - platform_data for generic ehci driver
 27  *
 28  * @caps_offset:        offset of the EHCI Capability Registers to the start of
 29  *                      the io memory region provided to the driver.
 30  * @has_tt:             set to 1 if TT is integrated in root hub.
 31  * @port_power_on:      set to 1 if the controller needs a power up after
 32  *                      initialization.
 33  * @port_power_off:     set to 1 if the controller needs to be powered down
 34  *                      after initialization.
 35  * @no_io_watchdog:     set to 1 if the controller does not need the I/O
 36  *                      watchdog to run.
 37  * @reset_on_resume:    set to 1 if the controller needs to be reset after
 38  *                      a suspend / resume cycle (but can't detect that itself).
 39  *
 40  * These are general configuration options for the EHCI controller. All of
 41  * these options are activating more or less workarounds for some hardware.
 42  */
 43 struct usb_ehci_pdata {
 44         int             caps_offset;
 45         unsigned        has_tt:1;
 46         unsigned        has_synopsys_hc_bug:1;
 47         unsigned        big_endian_desc:1;
 48         unsigned        big_endian_mmio:1;
 49         unsigned        no_io_watchdog:1;
 50         unsigned        reset_on_resume:1;
 51         unsigned        dma_mask_64:1;
 52 
 53         /* Turn on all power and clocks */
 54         int (*power_on)(struct platform_device *pdev);
 55         /* Turn off all power and clocks */
 56         void (*power_off)(struct platform_device *pdev);
 57         /* Turn on only VBUS suspend power and hotplug detection,
 58          * turn off everything else */
 59         void (*power_suspend)(struct platform_device *pdev);
 60         int (*pre_setup)(struct usb_hcd *hcd);
 61 };
 62 
 63 #endif /* __USB_CORE_EHCI_PDRIVER_H */
 64 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp