diff options
| author | Simon Glass <[email protected]> | 2021-10-14 12:48:03 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-11-11 19:02:27 -0500 |
| commit | 9e62e7ca543ea94a46f30053262f67202e2435f4 (patch) | |
| tree | 9488e089c17fb5836b8a3157e8fee5dbe26cb097 /include/pxe_utils.h | |
| parent | 929860bfbb3bb3d1bed1f5cbb8af8fbe8e5460a7 (diff) | |
pxe: Move common parsing coding into pxe_util
Both the syslinux and pxe commands use essentially the same code to parse
and run extlinux.conf files. Move this into a common function.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Artem Lapkin <[email protected]>
Tested-by: Artem Lapkin <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Diffstat (limited to 'include/pxe_utils.h')
| -rw-r--r-- | include/pxe_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/pxe_utils.h b/include/pxe_utils.h index 6681442ea55..0cae0dabec3 100644 --- a/include/pxe_utils.h +++ b/include/pxe_utils.h @@ -202,4 +202,13 @@ void pxe_setup_ctx(struct pxe_context *ctx, struct cmd_tbl *cmdtp, pxe_getfile_func getfile, void *userdata, bool allow_abs_path); +/** + * pxe_process() - Process a PXE file through to boot + * + * @ctx: PXE context created with pxe_setup_ctx() + * @pxefile_addr_r: Address to load file + * @prompt: Force a prompt for the user + */ +int pxe_process(struct pxe_context *ctx, ulong pxefile_addr_r, bool prompt); + #endif /* __PXE_UTILS_H */ |
