otg.h 650 B

1234567891011121314151617181920212223242526272829
  1. /* include/linux/usb/otg.h
  2. *
  3. * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
  4. *
  5. * USB OTG (On The Go) defines
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef __LINUX_USB_OTG_H
  10. #define __LINUX_USB_OTG_H
  11. enum usb_dr_mode {
  12. USB_DR_MODE_UNKNOWN,
  13. USB_DR_MODE_HOST,
  14. USB_DR_MODE_PERIPHERAL,
  15. USB_DR_MODE_OTG,
  16. };
  17. /**
  18. * usb_get_dr_mode() - Get dual role mode for given device
  19. * @node: Node offset to the given device
  20. *
  21. * The function gets phy interface string from property 'dr_mode',
  22. * and returns the correspondig enum usb_dr_mode
  23. */
  24. enum usb_dr_mode usb_get_dr_mode(int node);
  25. #endif /* __LINUX_USB_OTG_H */