diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-05-21 12:54:42 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-18 14:48:27 +0200 |
commit | 9fc0d34763d4e3cdaa9ed05210bfdc23286b65a3 (patch) | |
tree | 4b4f49fbf907b5641ed2c214d763ea01834fd720 /include/usb/usb.h | |
parent | 0420f7a34f02038c4bfcf7a5305c8b9c1f481129 (diff) | |
download | barebox-9fc0d34763d4e3cdaa9ed05210bfdc23286b65a3.tar.gz barebox-9fc0d34763d4e3cdaa9ed05210bfdc23286b65a3.tar.xz |
commands: usb: add tree view capability
This patch adds U-Boot 'usb tree' command functionality to barebox.
Here is an example output:
1 ID 0000:0000
| u-boot EHCI Host Controller
|
+-2 ID 05e3:0606
| USB2.0 Hub
|
+-3 ID 10c4:ea60
| Silicon Labs CP2102 USB to UART Bridge Contr P-00-00669
|
+-4 ID 05e3:0606
| | USB2.0 Hub
| |
| +-5 ID 05e3:0608
| | | USB2.0 Hub
| | |
| | +-6 ID 0d8c:000c
| | C-Media USB Headphone Set
| |
| +-7 ID 0d8c:000c
| C-Media USB Headphone Set
|
+-8 ID 0846:1040
NETGEAR NETGEAR FA120 Adapter
The tree view is enabled with 'usb -t'
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/usb.h')
-rw-r--r-- | include/usb/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h index ff5242b8af..34edbae0a5 100644 --- a/include/usb/usb.h +++ b/include/usb/usb.h @@ -473,4 +473,7 @@ enum usb_phy_interface { USBPHY_INTERFACE_MODE_SERIAL, USBPHY_INTERFACE_MODE_HSIC, }; + +extern struct list_head usb_device_list; + #endif /*_USB_H_ */ |