]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
66ded17d SG |
2 | /* |
3 | * (C) Copyright 2000 | |
4 | * Wolfgang Denk, DENX Software Engineering, [email protected]. | |
5 | * | |
6 | * Add to readline cmdline-editing by | |
7 | * (C) Copyright 2005 | |
8 | * JinHua Luo, GuangDong Linux Center, <[email protected]> | |
66ded17d SG |
9 | */ |
10 | ||
11 | #ifndef __AUTOBOOT_H | |
12 | #define __AUTOBOOT_H | |
13 | ||
41598c82 | 14 | #ifdef CONFIG_AUTOBOOT |
affb2156 SG |
15 | /** |
16 | * bootdelay_process() - process the bootd delay | |
17 | * | |
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. | |
21 | * | |
22 | * @return command to executed | |
23 | */ | |
24 | const char *bootdelay_process(void); | |
25 | ||
26 | /** | |
27 | * autoboot_command() - run the autoboot command | |
28 | * | |
29 | * If enabled, run the autoboot command returned from bootdelay_process(). | |
8fc31e23 | 30 | * Also do the CONFIG_AUTOBOOT_MENUKEY processing if enabled. |
affb2156 SG |
31 | * |
32 | * @cmd: Command to run | |
33 | */ | |
34 | void autoboot_command(const char *cmd); | |
66ded17d | 35 | #else |
affb2156 SG |
36 | static inline const char *bootdelay_process(void) |
37 | { | |
38 | return NULL; | |
39 | } | |
40 | ||
41 | static inline void autoboot_command(const char *s) | |
66ded17d SG |
42 | { |
43 | } | |
44 | #endif | |
45 | ||
46 | #endif |