From 45bfa47e123cdb0df8e273e3f0c84907c7394f6a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 8 Nov 2015 23:47:51 -0700 Subject: 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 --- include/usb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/usb.h') diff --git a/include/usb.h b/include/usb.h index 3d0facbed9..a09c7f199a 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_ */ -- cgit v1.2.3