diff options
| author | Tom Rini <[email protected]> | 2023-08-14 21:39:08 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-08-14 21:39:08 -0400 |
| commit | 51171cdd6dc9af8e74bbdb1f3e46c15187f7e979 (patch) | |
| tree | 7cea7f15d1eb78bf7116fb3432329647de04ffd7 /include/bootmeth.h | |
| parent | 831a80c2af322a80890cd9ef81c8ab7697788712 (diff) | |
| parent | daffb0be2c839f3abe431cd68c772fae0e7e49ca (diff) | |
Merge tag 'dm-next-14aug23' of https://source.denx.de/u-boot/custodians/u-boot-dm into next
Enhance bootmeth_cros
Diffstat (limited to 'include/bootmeth.h')
| -rw-r--r-- | include/bootmeth.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/include/bootmeth.h b/include/bootmeth.h index 7cb7da33dea..d3d8d608cd7 100644 --- a/include/bootmeth.h +++ b/include/bootmeth.h @@ -119,7 +119,16 @@ struct bootmeth_ops { */ int (*read_file)(struct udevice *dev, struct bootflow *bflow, const char *file_path, ulong addr, ulong *sizep); - +#if CONFIG_IS_ENABLED(BOOTSTD_FULL) + /** + * readall() - read all files for a bootflow + * + * @dev: Bootmethod device to boot + * @bflow: Bootflow to read + * Return: 0 if OK, -EIO on I/O error, other -ve on other error + */ + int (*read_all)(struct udevice *dev, struct bootflow *bflow); +#endif /* BOOTSTD_FULL */ /** * boot() - boot a bootflow * @@ -224,6 +233,20 @@ int bootmeth_read_file(struct udevice *dev, struct bootflow *bflow, const char *file_path, ulong addr, ulong *sizep); /** + * bootmeth_read_all() - read all bootflow files + * + * Some bootmeths delay reading of large files until booting is requested. This + * causes those files to be read. + * + * @dev: Bootmethod device to use + * @bflow: Bootflow to read + * Return: does not return on success, since it should boot the + * Operating Systemn. Returns -EFAULT if that fails, other -ve on + * other error + */ +int bootmeth_read_all(struct udevice *dev, struct bootflow *bflow); + +/** * bootmeth_boot() - boot a bootflow * * @dev: Bootmethod device to boot |
