summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-02-21 01:22:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-19 12:21:24 +0100
commit8a2e721fc56e848f182dddb9e494ed284e382d09 (patch)
treeea532df269b3708aa9c8f584588f022cbd11a01c /include/console.h
parent0b5a776c1e9cc6dec8d5fa6d2f97eb8f19d3d325 (diff)
downloadbarebox-8a2e721fc56e848f182dddb9e494ed284e382d09.tar.gz
barebox-8a2e721fc56e848f182dddb9e494ed284e382d09.tar.xz
Flush consoles before exiting
We use FIFOs on some devices, so flush them before exiting so we do not get funny characters in the output. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index aa2c498cb3..e6f06bdff3 100644
--- a/include/console.h
+++ b/include/console.h
@@ -38,6 +38,7 @@ struct console_device {
void (*putc)(struct console_device *cdev, char c);
int (*getc)(struct console_device *cdev);
int (*setbrg)(struct console_device *cdev, int baudrate);
+ void (*flush)(struct console_device *cdev);
struct list_head list;