ohci_pdriver.h (1748B)
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright (C) 2012 Hauke Mehrtens <hauke@hauke-m.de> 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License as published by the 7 * Free Software Foundation; either version 2 of the License, or (at your 8 * option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software Foundation, 17 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20#ifndef __USB_CORE_OHCI_PDRIVER_H 21#define __USB_CORE_OHCI_PDRIVER_H 22 23/** 24 * struct usb_ohci_pdata - platform_data for generic ohci driver 25 * 26 * @big_endian_desc: BE descriptors 27 * @big_endian_mmio: BE registers 28 * @no_big_frame_no: no big endian frame_no shift 29 * @num_ports: number of ports 30 * 31 * These are general configuration options for the OHCI controller. All of 32 * these options are activating more or less workarounds for some hardware. 33 */ 34struct usb_ohci_pdata { 35 unsigned big_endian_desc:1; 36 unsigned big_endian_mmio:1; 37 unsigned no_big_frame_no:1; 38 unsigned int num_ports; 39 40 /* Turn on all power and clocks */ 41 int (*power_on)(struct platform_device *pdev); 42 /* Turn off all power and clocks */ 43 void (*power_off)(struct platform_device *pdev); 44 /* Turn on only VBUS suspend power and hotplug detection, 45 * turn off everything else */ 46 void (*power_suspend)(struct platform_device *pdev); 47}; 48 49#endif /* __USB_CORE_OHCI_PDRIVER_H */