diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:48 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:48 +0200 |
commit | af347d05abb8b69fe846d09419a3e0abe1eeb1cd (patch) | |
tree | 212425b237eb095ee911894b5b79d8312373752c /include/console.h | |
parent | 31fc4bbff6f0e58bc3266833da7de4b2df9c7efd (diff) | |
download | barebox-af347d05abb8b69fe846d09419a3e0abe1eeb1cd.tar.gz barebox-af347d05abb8b69fe846d09419a3e0abe1eeb1cd.tar.xz |
svn_rev_380
add support for multipple consoles
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/include/console.h b/include/console.h index 06ec32accc..4b0f93b4c1 100644 --- a/include/console.h +++ b/include/console.h @@ -24,15 +24,20 @@ #ifndef _CONSOLE_H_ #define _CONSOLE_H_ -#include <devices.h> +#define CONSOLE_STDIN (1 << 0) +#define CONSOLE_STDOUT (1 << 1) +#define CONSOLE_STDERR (1 << 2) -/* -** VARIABLES -*/ - -extern device_t *stdio_devices[] ; -extern char *stdio_names[MAX_FILES] ; +struct console_device { + struct device_d *dev; + unsigned long flags; + int (*tstc)(struct console_device *cdev); + void (*putc)(struct console_device *cdev, char c); + int (*getc)(struct console_device *cdev); + struct console_device *next; +}; -int console_realloc(int top); +int console_register(struct console_device *cdev); #endif + |