summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-04-11 02:01:26 (GMT)
committerTom Rini <trini@ti.com>2014-05-29 21:45:31 (GMT)
commit6493ccc7cf2357081267effffa7d345e50d68d00 (patch)
tree5f66ce6f330164e3ca0663333e867f31f53110e9 /include
parent18d66533ac773f59efc93e5c19971fad5e6af82f (diff)
downloadu-boot-fsl-qoriq-6493ccc7cf2357081267effffa7d345e50d68d00.tar.xz
Split out simple parser and readline into separate files
It doesn't make sense to have the simple parser and the readline code all in main. Split them out into separate files. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/cli.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cli.h b/include/cli.h
index 0075bd4..b04539f 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -99,4 +99,9 @@ int readline_into_buffer(const char *const prompt, char *buffer, int timeout);
*/
int parse_line(char *line, char *argv[]);
+/** bootretry_dont_retry() - Indicate that we should not retry the boot */
+void bootretry_dont_retry(void);
+
+#define endtick(seconds) (get_ticks() + (uint64_t)(seconds) * get_tbclk())
+
#endif