aboutsummaryrefslogtreecommitdiff
path: root/include/console.h
diff options
context:
space:
mode:
authorAndy Shevchenko2020-12-21 14:30:00 +0200
committerTom Rini2021-01-15 14:36:12 -0500
commit41f668b97c7ac8d519f15961b67fc52817115701 (patch)
treeec6896b66a95dd99a15810beeb404e69704b616d /include/console.h
parenta17b38ce3902e46777322f6ec26e51b25415fa5b (diff)
console: Introduce console_start() and console_stop()
In the future we would like to stop unused consoles and also add a reference counting to avoid imbalanced calls to ->start() and ->stop() in some cases. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 432f892b6cc..58a4ec3f12a 100644
--- a/include/console.h
+++ b/include/console.h
@@ -8,6 +8,7 @@
#define __CONSOLE_H
#include <stdbool.h>
+#include <stdio_dev.h>
#include <linux/errno.h>
extern char console_buffer[];
@@ -15,6 +16,8 @@ extern char console_buffer[];
/* common/console.c */
int console_init_f(void); /* Before relocation; uses the serial stuff */
int console_init_r(void); /* After relocation; uses the console stuff */
+int console_start(int file, struct stdio_dev *sdev); /* Start a console device */
+void console_stop(int file, struct stdio_dev *sdev); /* Stop a console device */
int console_assign(int file, const char *devname); /* Assign the console */
int ctrlc(void);
int had_ctrlc(void); /* have we had a Control-C since last clear? */