X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=kitten%2Finclude%2Flwk%2Fconsole.h;fp=kitten%2Finclude%2Flwk%2Fconsole.h;h=085c5a0bee955a695a3d0997800209685ca4dd69;hb=6299cb929a586fd8debcc316c1ede714d5b95979;hp=0000000000000000000000000000000000000000;hpb=e9e3ee43cb302909917b5919f6043347b73c6995;p=palacios-OLD.git diff --git a/kitten/include/lwk/console.h b/kitten/include/lwk/console.h new file mode 100644 index 0000000..085c5a0 --- /dev/null +++ b/kitten/include/lwk/console.h @@ -0,0 +1,25 @@ +#ifndef _LWK_CONSOLE_H +#define _LWK_CONSOLE_H + +#include +#include + +/** Console structure. + * + * Each console in the system is represented by one of these + * structures. A console driver (e.g., VGA, Serial) fills in + * one of these structures and passes it to ::console_register(). + */ +struct console { + char name[64]; + void (*write)(struct console *, const char *); + void * private_data; + + struct list_head next; +}; + +extern void console_register(struct console *); +extern void console_write(const char *); +extern void console_init(void); + +#endif