]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/usb/otg.h
Ka-Ro TX53 & TX51 board support with DT
[karo-tx-linux.git] / include / linux / usb / otg.h
index f67810f8f21b1e6468af6c61e044923c005e0da4..5786a608602e0bceb8767b02874778d959177963 100644 (file)
@@ -88,6 +88,7 @@ struct usb_phy {
        struct device           *dev;
        const char              *label;
        unsigned int             flags;
+       struct module           *owner;
 
        enum usb_otg_state      state;
        enum usb_phy_events     last_event;
@@ -97,6 +98,10 @@ struct usb_phy {
        struct usb_phy_io_ops   *io_ops;
        void __iomem            *io_priv;
 
+       struct list_head        list;
+       const char              *dev_id_host;
+       const char              *dev_id_peripheral;
+
        /* for notification of usb_phy_events */
        struct atomic_notifier_head     notifier;
 
@@ -172,14 +177,22 @@ usb_phy_shutdown(struct usb_phy *x)
 /* for usb host and peripheral controller drivers */
 #ifdef CONFIG_USB_OTG_UTILS
 extern struct usb_phy *usb_get_transceiver(void);
+extern struct usb_phy *usb_find_transceiver(struct device *dev);
 extern void usb_put_transceiver(struct usb_phy *);
 extern const char *otg_state_string(enum usb_otg_state state);
+extern void usb_add_transceiver(struct usb_phy *phy);
+extern void usb_remove_transceiver(struct usb_phy *phy);
 #else
 static inline struct usb_phy *usb_get_transceiver(void)
 {
        return NULL;
 }
 
+static inline struct usb_phy *usb_find_transceiver(struct device *dev)
+{
+       return NULL;
+}
+
 static inline void usb_put_transceiver(struct usb_phy *x)
 {
 }
@@ -188,6 +201,14 @@ static inline const char *otg_state_string(enum usb_otg_state state)
 {
        return NULL;
 }
+
+static inline void usb_add_transceiver(struct usb_phy *phy)
+{
+}
+
+static inline void usb_remove_transceiver(struct usb_phy *phy)
+{
+}
 #endif
 
 /* Context: can sleep */