summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/console.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/kernel/console.H')
-rw-r--r--src/include/kernel/console.H25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/kernel/console.H b/src/include/kernel/console.H
new file mode 100644
index 000000000..4c5f7a52a
--- /dev/null
+++ b/src/include/kernel/console.H
@@ -0,0 +1,25 @@
+#ifndef __KERNEL_CONSOLE_H
+#define __KERNEL_CONSOLE_H
+
+#include <stdint.h>
+#include <string.h>
+
+void printk(const char*);
+
+class Console
+{
+ public:
+ int putc(int);
+
+ enum { BUFFER_SIZE = 1024 * 4 };
+
+ protected:
+ Console();
+ ~Console() {};
+
+ private:
+ char * iv_buffer;
+ size_t iv_pos;
+};
+
+#endif
OpenPOWER on IntegriCloud