Merge tag 'gpio-v3.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-2.6.git] / include / linux / usb / ohci_pdriver.h
blob012f2b7eb2b6b299e21596a9e650487759815dfb
1 /*
2 * Copyright (C) 2012 Hauke Mehrtens <hauke@hauke-m.de>
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.
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.
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.
19 #ifndef __USB_CORE_OHCI_PDRIVER_H
20 #define __USB_CORE_OHCI_PDRIVER_H
22 /**
23 * struct usb_ohci_pdata - platform_data for generic ohci driver
25 * @big_endian_desc: BE descriptors
26 * @big_endian_mmio: BE registers
27 * @no_big_frame_no: no big endian frame_no shift
28 * @num_ports: number of ports
30 * These are general configuration options for the OHCI controller. All of
31 * these options are activating more or less workarounds for some hardware.
33 struct usb_ohci_pdata {
34 unsigned big_endian_desc:1;
35 unsigned big_endian_mmio:1;
36 unsigned no_big_frame_no:1;
37 unsigned int num_ports;
39 /* Turn on all power and clocks */
40 int (*power_on)(struct platform_device *pdev);
41 /* Turn off all power and clocks */
42 void (*power_off)(struct platform_device *pdev);
43 /* Turn on only VBUS suspend power and hotplug detection,
44 * turn off everything else */
45 void (*power_suspend)(struct platform_device *pdev);
48 #endif /* __USB_CORE_OHCI_PDRIVER_H */