mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
d73420e4fe
commit
79a7d4a61f
3 changed files with 61 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue