summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:26:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:26:43 +0200
commitd036dd5a66a2eaf4ae1486c0b57b342c8f1d537d (patch)
treea0c0e74348759168c767dc4cc09d53261c7b64b3 /include
parentee2ac17df0a9acdc49dc776668cc693eaebb330e (diff)
parentb4d5c8a03917decfe9a6c2f27d1a4e0fddfc07c3 (diff)
downloadbarebox-d036dd5a66a2eaf4ae1486c0b57b342c8f1d537d.tar.gz
barebox-d036dd5a66a2eaf4ae1486c0b57b342c8f1d537d.tar.xz
Merge branch 'for-next/console'
Diffstat (limited to 'include')
-rw-r--r--include/console.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 72b4a440e7..839ec17e50 100644
--- a/include/console.h
+++ b/include/console.h
@@ -52,8 +52,10 @@ struct console_device {
struct list_head list;
unsigned char f_active;
+ char active[4];
unsigned int baudrate;
+ unsigned int baudrate_param;
const char *linux_console_name;
};
@@ -62,6 +64,7 @@ int console_register(struct console_device *cdev);
int console_unregister(struct console_device *cdev);
struct console_device *console_get_by_dev(struct device_d *dev);
+struct console_device *console_get_by_name(const char *name);
extern struct list_head console_list;
#define for_each_console(console) list_for_each_entry(console, &console_list, list)
@@ -75,4 +78,9 @@ extern int barebox_loglevel;
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