summaryrefslogtreecommitdiff
path: root/test/boot/bootstd_common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-17 10:48:09 -0700
committerTom Rini <trini@konsulko.com>2023-01-23 18:11:41 -0500
commit66e3dce78750f6fc4f6a402ce62c20ba95976dd1 (patch)
treeea4d629072d737d7ddfcc88e9af34e83ca5960a9 /test/boot/bootstd_common.h
parenteacc261178b9c8024cb8de89ee4ca6c68d80d96a (diff)
bootstd: Allow hunting for a bootdev by label
Add a function to hunt for a bootdev label and find the bootdev produced by the hunter (or already present). Add a few extra flags so that we can distinguish between "mmc1", "mmc" and "1" which all need to be handled differently. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/boot/bootstd_common.h')
-rw-r--r--test/boot/bootstd_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/boot/bootstd_common.h b/test/boot/bootstd_common.h
index c5e0fd1ceab..0eb48fa1537 100644
--- a/test/boot/bootstd_common.h
+++ b/test/boot/bootstd_common.h
@@ -40,4 +40,12 @@ int bootstd_test_drop_bootdev_order(struct unit_test_state *uts);
*/
int bootstd_setup_for_tests(void);
+/**
+ * bootstd_test_check_mmc_hunter() - Check that the mmc bootdev hunter was used
+ *
+ * @uts: Unit test state to use for ut_assert...() functions
+ * Returns: 0 if OK (used), other value on error (not used)
+ */
+int bootstd_test_check_mmc_hunter(struct unit_test_state *uts);
+
#endif