1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Add to readline cmdline-editing by
8 * JinHua Luo, GuangDong Linux Center, <luo.jinhua@gd-linux.com>
14 #ifdef CONFIG_AUTOBOOT
16 * bootdelay_process() - process the bootd delay
18 * Process the boot delay, boot limit, then get the value of either
19 * bootcmd, failbootcmd or altbootcmd depending on the current state.
20 * Return this command so it can be executed.
22 * @return command to executed
24 const char *bootdelay_process(void);
27 * autoboot_command() - run the autoboot command
29 * If enabled, run the autoboot command returned from bootdelay_process().
30 * Also do the CONFIG_MENUKEY processing if enabled.
32 * @cmd: Command to run
34 void autoboot_command(const char *cmd);
36 static inline const char *bootdelay_process(void)
41 static inline void autoboot_command(const char *s)