]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/drivers/keyb.cpp
update
[l4.git] / kernel / fiasco / src / drivers / keyb.cpp
1 INTERFACE:
2
3 #include "console.h"
4
5 /**
6  * Platform independent keyboard stub.
7  *
8  * Provides an empty implentation for write(...).
9  */
10 class Keyb : public Console
11 {
12 public:
13   // must be implemented in platform part.
14   int getchar( bool blocking = true );
15
16   // implemented empty
17   int write( char const *str, size_t len );
18 };
19
20
21 IMPLEMENTATION:
22
23 IMPLEMENT
24 int
25 Keyb::write( char const *, size_t len)
26 {
27   return len;
28 }
29
30 PUBLIC
31 Mword
32 Keyb::get_attributes() const
33 {
34   return DIRECT | IN;
35 }
36