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
8#ifndef __USB_CORE_PHY_H_
9#define __USB_CORE_PHY_H_
10
11struct device;
12struct usb_phy_roothub;
13
14struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev);
15struct usb_phy_roothub *usb_phy_roothub_alloc_usb3_phy(struct device *dev);
16
17int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub);
18int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub);
19
20int usb_phy_roothub_set_mode(struct usb_phy_roothub *phy_roothub,
21 enum phy_mode mode);
22int usb_phy_roothub_calibrate(struct usb_phy_roothub *phy_roothub);
23int usb_phy_roothub_notify_connect(struct usb_phy_roothub *phy_roothub, int port);
24int usb_phy_roothub_notify_disconnect(struct usb_phy_roothub *phy_roothub, int port);
25int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub);
26void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub);
27
28int usb_phy_roothub_suspend(struct device *controller_dev,
29 struct usb_phy_roothub *phy_roothub);
30int usb_phy_roothub_resume(struct device *controller_dev,
31 struct usb_phy_roothub *phy_roothub);
32
33#endif /* __USB_CORE_PHY_H_ */
34

source code of linux/drivers/usb/core/phy.h