summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/console.H
blob: 31bb9c94a2069e68fd7fba0268128c22c43e971c (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
#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:
	size_t iv_pos;    
	char * iv_buffer;
};

#endif
OpenPOWER on IntegriCloud