summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-06-04 09:17:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-11 08:15:40 +0200
commit241c6a017b65a88b1c23c701b32618e3ff5e8e07 (patch)
tree6ccbe9284915c3c160e87e46e7866ffc5905408e /include/console.h
parentd9087662082965af1b2a0057724550f5b1c119ad (diff)
downloadbarebox-241c6a017b65a88b1c23c701b32618e3ff5e8e07.tar.gz
barebox-241c6a017b65a88b1c23c701b32618e3ff5e8e07.tar.xz
console: Add puts callback to console devices
Some devices may have a much more efficient way to output strings rather than single characters. Let console devices implement a callback for this. 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 6da0199aba..6372cfe68f 100644
--- a/include/console.h
+++ b/include/console.h
@@ -39,6 +39,7 @@ struct console_device {
int (*tstc)(struct console_device *cdev);
void (*putc)(struct console_device *cdev, char c);
+ int (*puts)(struct console_device *cdev, const char *s);
int (*getc)(struct console_device *cdev);
int (*setbrg)(struct console_device *cdev, int baudrate);
void (*flush)(struct console_device *cdev);