Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ci13xxx_imx.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Freescale Semiconductor, Inc.
3  *
4  * The code contained herein is licensed under the GNU General Public
5  * License. You may obtain a copy of the GNU General Public License
6  * Version 2 or later at the following locations:
7  *
8  * http://www.opensource.org/licenses/gpl-license.html
9  * http://www.gnu.org/copyleft/gpl.html
10  */
11 
12 /* Used to set SoC specific callbacks */
13 struct usbmisc_ops {
14  /* It's called once when probe a usb device */
15  int (*init)(struct device *dev);
16 };
17 
19  struct device *dev; /* usb controller device */
20  int index;
21 
22  int disable_oc:1; /* over current detect disabled */
23 };
24 
25 int usbmisc_set_ops(const struct usbmisc_ops *ops);
26 void usbmisc_unset_ops(const struct usbmisc_ops *ops);
27 int
28 usbmisc_get_init_data(struct device *dev, struct usbmisc_usb_device *usbdev);