aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass2023-01-17 10:48:07 -0700
committerTom Rini2023-01-23 18:11:41 -0500
commit79a7d4a61ff34c7745811c7b3090a60b230c2ef9 (patch)
treec695ce097337e6cf870d2e013d436ed50df3e3c7 /include
parentd73420e4fe7c7e22a41ed140c6be9c11db6b9503 (diff)
bootstd: Allow hunting for bootdevs of a given priority
Add a way to run the hunter function for a particular priority, so that new bootdevs can be found. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/bootdev.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/bootdev.h b/include/bootdev.h
index db03c5c032e..b7973fa5760 100644
--- a/include/bootdev.h
+++ b/include/bootdev.h
@@ -284,6 +284,17 @@ void bootdev_list_hunters(struct bootstd_priv *std);
*/
int bootdev_hunt(const char *spec, bool show);
+/**
+ * bootdev_hunt_prio() - Hunt for bootdevs of a particular priority
+ *
+ * This runs all hunters which can find bootdevs of the given priority.
+ *
+ * @prio: Priority to use
+ * @show: true to show each hunter as it is used
+ * Returns: 0 if OK, -ve on error
+ */
+int bootdev_hunt_prio(enum bootdev_prio_t prio, bool show);
+
#if CONFIG_IS_ENABLED(BOOTSTD)
/**
* bootdev_setup_for_dev() - Bind a new bootdev device (deprecated)