summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:59 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:59 +0200
commitfa668fe1849d75c7f62e4fed0ab9f71ddbba61e5 (patch)
tree31ef1c1e62cf8eeab80bb767c6fe1758c408af06 /include/console.h
parent5735a344786aa5b266c4eeac9ba8ddf7a2650e7b (diff)
downloadbarebox-fa668fe1849d75c7f62e4fed0ab9f71ddbba61e5.tar.gz
barebox-fa668fe1849d75c7f62e4fed0ab9f71ddbba61e5.tar.xz
svn_rev_502
complete multiple console support
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/console.h b/include/console.h
index 4b0f93b4c1..7553756fbd 100644
--- a/include/console.h
+++ b/include/console.h
@@ -24,17 +24,25 @@
#ifndef _CONSOLE_H_
#define _CONSOLE_H_
+#include <param.h>
+
#define CONSOLE_STDIN (1 << 0)
#define CONSOLE_STDOUT (1 << 1)
#define CONSOLE_STDERR (1 << 2)
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;
+
+ unsigned char f_caps;
+ unsigned char f_active;
+
+ struct param_d active_param;
+ char active[4];
};
int console_register(struct console_device *cdev);