Martin Blumenstingl | 350f76d | 2018-04-18 21:39:51 +0200 | [diff] [blame] | 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 | |
Martin Blumenstingl | 9d3cd19 | 2018-04-18 21:39:50 +0200 | [diff] [blame] | 11 | struct device; |
Martin Blumenstingl | 07dbff0 | 2018-03-03 22:43:04 +0100 | [diff] [blame] | 12 | struct usb_phy_roothub; |
| 13 | |
Martin Blumenstingl | 63cb03f | 2018-04-18 21:39:47 +0200 | [diff] [blame] | 14 | struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev); |
| 15 | |
| 16 | int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub); |
Martin Blumenstingl | 07dbff0 | 2018-03-03 22:43:04 +0100 | [diff] [blame] | 17 | int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub); |
| 18 | |
| 19 | int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub); |
| 20 | void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub); |
Martin Blumenstingl | f0e36d4 | 2018-04-18 21:39:48 +0200 | [diff] [blame] | 21 | |
| 22 | int usb_phy_roothub_suspend(struct device *controller_dev, |
| 23 | struct usb_phy_roothub *phy_roothub); |
| 24 | int usb_phy_roothub_resume(struct device *controller_dev, |
| 25 | struct usb_phy_roothub *phy_roothub); |
Martin Blumenstingl | 350f76d | 2018-04-18 21:39:51 +0200 | [diff] [blame] | 26 | |
| 27 | #endif /* __USB_CORE_PHY_H_ */ |