diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-08 23:47:51 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:27:51 -0700 |
commit | 45bfa47e123cdb0df8e273e3f0c84907c7394f6a (patch) | |
tree | ebc3274067b42a2c76cc0c055754fd74da36321c /include/usb.h | |
parent | 9ce8b40206f4f96de6164c2a0c0a725c9323c4b9 (diff) |
usb: Refactor USB tree output code for testing
Allow the 'usb tree' command to be used from test code, so that we can
verify that it works correctly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/usb.h')
-rw-r--r-- | include/usb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb.h b/include/usb.h index 3d0facbed9f..a09c7f199ac 100644 --- a/include/usb.h +++ b/include/usb.h @@ -957,4 +957,12 @@ int usb_emul_find(struct udevice *bus, ulong pipe, struct udevice **emulp); */ void usb_emul_reset(struct udevice *dev); +/** + * usb_show_tree() - show the USB device tree + * + * This shows a list of active USB devices along with basic information about + * each. + */ +void usb_show_tree(void); + #endif /*_USB_H_ */ |