diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-10-11 20:36:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-10-11 20:36:57 +0200 |
commit | ac8a1f064e0af43719fa379f317eced5773af6f6 (patch) | |
tree | 59328d25d7bb3f2bf9143955e41114934f514413 /include/console.h | |
parent | eadf71abc77bf97cf5aa7dbe206f4778c4b2480d (diff) | |
download | barebox-ac8a1f064e0af43719fa379f317eced5773af6f6.tar.gz barebox-ac8a1f064e0af43719fa379f317eced5773af6f6.tar.xz |
Use Linux Kernel list implementation for console devices instead
of homegrown list.
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/console.h b/include/console.h index ce3855e1e4..aa2c498cb3 100644 --- a/include/console.h +++ b/include/console.h @@ -25,6 +25,7 @@ #define _CONSOLE_H_ #include <param.h> +#include <list.h> #define CONSOLE_STDIN (1 << 0) #define CONSOLE_STDOUT (1 << 1) @@ -38,7 +39,7 @@ struct console_device { int (*getc)(struct console_device *cdev); int (*setbrg)(struct console_device *cdev, int baudrate); - struct console_device *next; + struct list_head list; unsigned char f_caps; unsigned char f_active; @@ -52,6 +53,9 @@ struct console_device { int console_register(struct console_device *cdev); +extern struct list_head console_list; +#define for_each_console(console) list_for_each_entry(console, &console_list, list) + #define CFG_PBSIZE (CONFIG_CBSIZE+sizeof(CONFIG_PROMPT)+16) void early_console_putc(void *base, char c); |