ci13xxx_imx.h 839 B

12345678910111213141516171819202122232425262728
  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. /* Used to set SoC specific callbacks */
  12. struct usbmisc_ops {
  13. /* It's called once when probe a usb device */
  14. int (*init)(struct device *dev);
  15. };
  16. struct usbmisc_usb_device {
  17. struct device *dev; /* usb controller device */
  18. int index;
  19. unsigned int disable_oc:1; /* over current detect disabled */
  20. };
  21. int usbmisc_set_ops(const struct usbmisc_ops *ops);
  22. void usbmisc_unset_ops(const struct usbmisc_ops *ops);
  23. int
  24. usbmisc_get_init_data(struct device *dev, struct usbmisc_usb_device *usbdev);