diff options
author | Simon Glass | 2015-06-23 15:38:35 -0600 |
---|---|---|
committer | Simon Glass | 2015-07-21 17:39:22 -0600 |
commit | 304fbef156b00d8d7005c8b156e64a6632d45008 (patch) | |
tree | b5de5bdd89b0ec45b3b4ed7cd175423fb0014b79 /include/dm | |
parent | da229e4e57b7d028cf01d52ac70832a90453e289 (diff) |
dm: Move the tree/uclass dump code into its own file
In SPL it is sometimes useful to be able to obtain a dump of the current
driver model state. Since commands are not available, provide a way to
directly call the functions to output this information.
Adjust the existing commands to use these functions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dm/util.h b/include/dm/util.h index 0cec17b52a4..7dbed6793f8 100644 --- a/include/dm/util.h +++ b/include/dm/util.h @@ -33,4 +33,10 @@ struct list_head; */ int list_count_items(struct list_head *head); +/* Dump out a tree of all devices */ +void dm_dump_all(void); + +/* Dump out a list of uclasses and their devices */ +void dm_dump_uclass(void); + #endif |