phy.h 979 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * USB roothub wrapper
  4. *
  5. * Copyright (C) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
  6. */
  7. #ifndef __USB_CORE_PHY_H_
  8. #define __USB_CORE_PHY_H_
  9. struct device;
  10. struct usb_phy_roothub;
  11. struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev);
  12. int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub);
  13. int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub);
  14. int usb_phy_roothub_set_mode(struct usb_phy_roothub *phy_roothub,
  15. enum phy_mode mode);
  16. int usb_phy_roothub_calibrate(struct usb_phy_roothub *phy_roothub);
  17. int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub);
  18. void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub);
  19. int usb_phy_roothub_suspend(struct device *controller_dev,
  20. struct usb_phy_roothub *phy_roothub);
  21. int usb_phy_roothub_resume(struct device *controller_dev,
  22. struct usb_phy_roothub *phy_roothub);
  23. #endif /* __USB_CORE_PHY_H_ */