]> git.sur5r.net Git - u-boot/blobdiff - include/usb.h
usb: hub: Add a new API to test if a hub device is root hub
[u-boot] / include / usb.h
index a266677677130f4f7fb543093df376e557b904cd..64dfa84a9bef8d726c172e1269a67af1efe0c76f 100644 (file)
@@ -775,6 +775,14 @@ struct usb_device *usb_get_dev_index(struct udevice *bus, int index);
 int usb_setup_device(struct usb_device *dev, bool do_read,
                     struct usb_device *parent);
 
+/**
+ * usb_hub_is_root_hub() - Test whether a hub device is root hub or not
+ *
+ * @hub:       USB hub device to test
+ * @return:    true if the hub device is root hub, false otherwise.
+ */
+bool usb_hub_is_root_hub(struct udevice *hub);
+
 /**
  * usb_hub_scan() - Scan a hub and find its devices
  *