blob: 88a3c037e9df59194ba94d3ecd7ec3e2626ccb33 [file] [log] [blame]
Martin Blumenstingl350f76d2018-04-18 21:39:51 +02001/* 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 Blumenstingl9d3cd192018-04-18 21:39:50 +020011struct device;
Martin Blumenstingl07dbff02018-03-03 22:43:04 +010012struct usb_phy_roothub;
13
Martin Blumenstingl63cb03f2018-04-18 21:39:47 +020014struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev);
15
16int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub);
Martin Blumenstingl07dbff02018-03-03 22:43:04 +010017int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub);
18
19int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub);
20void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub);
Martin Blumenstinglf0e36d42018-04-18 21:39:48 +020021
22int usb_phy_roothub_suspend(struct device *controller_dev,
23 struct usb_phy_roothub *phy_roothub);
24int usb_phy_roothub_resume(struct device *controller_dev,
25 struct usb_phy_roothub *phy_roothub);
Martin Blumenstingl350f76d2018-04-18 21:39:51 +020026
27#endif /* __USB_CORE_PHY_H_ */