summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/console.H
blob: 964882a66cfddfaf0b992ecf250f0b94ced35ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __KERNEL_CONSOLE_H
#define __KERNEL_CONSOLE_H

#include <stdint.h>
#include <string.h>
#include <builtins.h>

void printk(const char*, ...) FORMAT_PRINTF;

class Console
{
    public:
	int putc(int);
	
	enum { BUFFER_SIZE = 1024 * 4 };

    protected:
	Console();
	~Console() {};

    private:
	size_t iv_pos;    
	char * iv_buffer;
};

#endif
OpenPOWER on IntegriCloud