summaryrefslogtreecommitdiff
path: root/kern/console.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/console.h')
-rw-r--r--kern/console.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/kern/console.h b/kern/console.h
index b967c0dd..15789974 100644
--- a/kern/console.h
+++ b/kern/console.h
@@ -22,10 +22,14 @@
#define _KERN_CONSOLE_H
#include <kern/cbuf.h>
+#include <kern/init.h>
#include <kern/list.h>
#include <kern/spinlock.h>
#include <kern/thread.h>
+#define CONSOLE_SCROLL_UP 0x12 /* DC2 */
+#define CONSOLE_SCROLL_DOWN 0x14 /* DC4 */
+
struct console;
struct console_ops {
@@ -59,11 +63,6 @@ void console_init(struct console *console, const char *name,
const struct console_ops *ops);
/*
- * Initialize the console module.
- */
-void console_setup(void);
-
-/*
* Register a console device.
*
* The given console must be initialized before calling this function.
@@ -81,7 +80,7 @@ void console_register(struct console *console);
*
* Interrupts must be disabled when calling this function.
*/
-void console_intr(struct console *console, char c);
+void console_intr(struct console *console, const char *s);
/*
* Write/read a single character to all registered console devices.
@@ -92,4 +91,17 @@ void console_intr(struct console *console, char c);
void console_putchar(char c);
char console_getchar(void);
+/*
+ * This init operation provides :
+ * - registration of consoles
+ */
+INIT_OP_DECLARE(console_bootstrap);
+
+/*
+ * This init operation provides :
+ * - all consoles have been registered
+ * - module fully initialized
+ */
+INIT_OP_DECLARE(console_setup);
+
#endif /* _KERN_CONSOLE_H */