summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-08 11:16:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:22:13 +0200
commit56b2fe72e856fe210ba1cdb5c154244a6d2d96ab (patch)
treec12261281856e12f393765d800ff82c4d2e1b9f3 /include/console.h
parent4cfc09da3865df1f0f8ea48d34073a8135011d04 (diff)
downloadbarebox-56b2fe72e856fe210ba1cdb5c154244a6d2d96ab.tar.gz
barebox-56b2fe72e856fe210ba1cdb5c154244a6d2d96ab.tar.xz
console: Add functions to get/set baudrate
So C code can call a function rather than fiddling with device parameters. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 f7055e6394..36dee9a3cc 100644
--- a/include/console.h
+++ b/include/console.h
@@ -55,6 +55,7 @@ struct console_device {
char active[4];
unsigned int baudrate;
+ unsigned int baudrate_param;
const char *linux_console_name;
};
@@ -78,5 +79,7 @@ struct console_device *console_get_first_active(void);
int console_set_active(struct console_device *cdev, unsigned active);
unsigned console_get_active(struct console_device *cdev);
+int console_set_baudrate(struct console_device *cdev, unsigned baudrate);
+unsigned console_get_baudrate(struct console_device *cdev);
#endif