Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * USB roothub wrapper
0004  *
0005  * Copyright (C) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
0006  */
0007 
0008 #ifndef __USB_CORE_PHY_H_
0009 #define __USB_CORE_PHY_H_
0010 
0011 struct device;
0012 struct usb_phy_roothub;
0013 
0014 struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev);
0015 
0016 int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub);
0017 int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub);
0018 
0019 int usb_phy_roothub_set_mode(struct usb_phy_roothub *phy_roothub,
0020                  enum phy_mode mode);
0021 int usb_phy_roothub_calibrate(struct usb_phy_roothub *phy_roothub);
0022 int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub);
0023 void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub);
0024 
0025 int usb_phy_roothub_suspend(struct device *controller_dev,
0026                 struct usb_phy_roothub *phy_roothub);
0027 int usb_phy_roothub_resume(struct device *controller_dev,
0028                struct usb_phy_roothub *phy_roothub);
0029 
0030 #endif /* __USB_CORE_PHY_H_ */