mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 06:04:40 +08:00
bootm: Move do_bootm_states() comment to header file
This is an exported function, so move the function comment to the bootm.h header file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
c2211ff651
commit
e370e3df10
25
boot/bootm.c
25
boot/bootm.c
@ -990,31 +990,6 @@ unmap_image:
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute selected states of the bootm command.
|
||||
*
|
||||
* Note the arguments to this state must be the first argument, Any 'bootm'
|
||||
* or sub-command arguments must have already been taken.
|
||||
*
|
||||
* Note that if states contains more than one flag it MUST contain
|
||||
* BOOTM_STATE_START, since this handles and consumes the command line args.
|
||||
*
|
||||
* Also note that aside from boot_os_fn functions and bootm_load_os no other
|
||||
* functions we store the return value of in 'ret' may use a negative return
|
||||
* value, without special handling.
|
||||
*
|
||||
* @param cmdtp Pointer to bootm command table entry
|
||||
* @param flag Command flags (CMD_FLAG_...)
|
||||
* @param argc Number of subcommand arguments (0 = no arguments)
|
||||
* @param argv Arguments
|
||||
* @param states Mask containing states to run (BOOTM_STATE_...)
|
||||
* @param images Image header information
|
||||
* @param boot_progress 1 to show boot progress, 0 to not do this
|
||||
* Return: 0 if ok, something else on error. Some errors will cause this
|
||||
* function to perform a reboot! If states contains BOOTM_STATE_OS_GO
|
||||
* then the intent is to boot an OS, so this function will not return
|
||||
* unless the image type is standalone.
|
||||
*/
|
||||
int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[], int states, struct bootm_headers *images,
|
||||
int boot_progress)
|
||||
|
@ -131,6 +131,31 @@ int bootm_find_images(ulong img_addr, const char *conf_ramdisk,
|
||||
*/
|
||||
int bootm_measure(struct bootm_headers *images);
|
||||
|
||||
/**
|
||||
* Execute selected states of the bootm command.
|
||||
*
|
||||
* Note the arguments to this state must be the first argument, Any 'bootm'
|
||||
* or sub-command arguments must have already been taken.
|
||||
*
|
||||
* Note that if states contains more than one flag it MUST contain
|
||||
* BOOTM_STATE_START, since this handles and consumes the command line args.
|
||||
*
|
||||
* Also note that aside from boot_os_fn functions and bootm_load_os no other
|
||||
* functions we store the return value of in 'ret' may use a negative return
|
||||
* value, without special handling.
|
||||
*
|
||||
* @param cmdtp Pointer to bootm command table entry
|
||||
* @param flag Command flags (CMD_FLAG_...)
|
||||
* @param argc Number of subcommand arguments (0 = no arguments)
|
||||
* @param argv Arguments
|
||||
* @param states Mask containing states to run (BOOTM_STATE_...)
|
||||
* @param images Image header information
|
||||
* @param boot_progress 1 to show boot progress, 0 to not do this
|
||||
* Return: 0 if ok, something else on error. Some errors will cause this
|
||||
* function to perform a reboot! If states contains BOOTM_STATE_OS_GO
|
||||
* then the intent is to boot an OS, so this function will not return
|
||||
* unless the image type is standalone.
|
||||
*/
|
||||
int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[], int states, struct bootm_headers *images,
|
||||
int boot_progress);
|
||||
|
Loading…
Reference in New Issue
Block a user