repo.or.cz
/
thunix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add hexdump lib function
[thunix.git]
/
include
/
keyboard.h
blob
6bf6110afcf1fad0753dc41d1a450b17d30658bc
1
#ifndef KEYBOARD_H
2
#define KEYBOADR_H
3
4
/* macro of mode */
5
#define LSHIFT (1 << 0)
6
#define RSHIFT (1 << 1)
7
#define LCTRL (1 << 2)
8
#define RCTRL (1 << 3)
9
#define LALT (1 << 4)
10
#define RALT (1 << 5)
11
#define CAPS_STATE (1 << 6)
12
#define CAPS (1 << 7)
13
14
/* macro of leds */
15
#define SCROLL_LOCK (1 << 0)
16
#define NUM_LOCK (1 << 1)
17
#define CAPS_LOCK (1 << 2)
18
19
20
/* macro of eo */
21
#define E0 0x01
22
#define E1 0x02
23
24
25
26
/* Special keycodes */
27
#define KEY_HOME 0xE0
28
#define KEY_END 0xE1
29
#define KEY_UP 0xE2
30
#define KEY_DN 0xE3
31
#define KEY_LF 0xE4
32
#define KEY_RT 0xE5
33
#define KEY_PGUP 0xE6
34
#define KEY_PGDN 0xE7
35
#define KEY_INS 0xE8
36
#define KEY_DEL 0xE9
37
38
39
#define HOME KEY_HOME
40
#define END KEY_END
41
#define UP KEY_UP
42
#define DN KEY_DN
43
#define LF KEY_LF
44
#define RT KEY_RT
45
#define PGUP KEY_PGUP
46
#define PGDN KEY_PGDN
47
#define INS KEY_INS
48
#define DEL KEY_DEL
49
50
51
52
void
keyboard_interrupt
(
void
);
53
54
55
56
#endif
/*keyboard.h*/