summaryrefslogtreecommitdiffstats
path: root/src/include/kernel
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-05-18 15:55:03 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-05-18 15:55:03 -0500
commitcf138201c24fdc83ee7835b65cce67e7d7a85e70 (patch)
tree16650f82ac519ff60bc9100b4e90868463bd987d /src/include/kernel
parent9ea98f274e18a3407ce109a331553e1c910274d9 (diff)
downloadtalos-hostboot-cf138201c24fdc83ee7835b65cce67e7d7a85e70.tar.gz
talos-hostboot-cf138201c24fdc83ee7835b65cce67e7d7a85e70.zip
Create simple console.
Diffstat (limited to 'src/include/kernel')
-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