1 #ifndef _LINUX_KD_H
2 #define _LINUX_KD_H
3 #include <linux/types.h>
4
5
6
7 #define GIO_FONT 0x4B60
8 #define PIO_FONT 0x4B61
9
10 #define GIO_FONTX 0x4B6B
11 #define PIO_FONTX 0x4B6C
12 struct consolefontdesc {
13 u_short charcount;
14 u_short charheight;
15 char *chardata;
16 };
17
18 #define GIO_CMAP 0x4B70
19 #define PIO_CMAP 0x4B71
20
21 #define KIOCSOUND 0x4B2F
22 #define KDMKTONE 0x4B30
23
24 #define KDGETLED 0x4B31
25 #define KDSETLED 0x4B32
26 #define LED_SCR 0x01
27 #define LED_CAP 0x04
28 #define LED_NUM 0x02
29
30 #define KDGKBTYPE 0x4B33
31 #define KB_84 0x01
32 #define KB_101 0x02
33 #define KB_OTHER 0x03
34
35 #define KDADDIO 0x4B34
36 #define KDDELIO 0x4B35
37 #define KDENABIO 0x4B36
38 #define KDDISABIO 0x4B37
39
40 #define KDSETMODE 0x4B3A
41 #define KD_TEXT 0x00
42 #define KD_GRAPHICS 0x01
43 #define KD_TEXT0 0x02
44 #define KD_TEXT1 0x03
45 #define KDGETMODE 0x4B3B
46
47 #define KDMAPDISP 0x4B3C
48 #define KDUNMAPDISP 0x4B3D
49
50 typedef char scrnmap_t;
51 #define E_TABSZ 256
52 #define GIO_SCRNMAP 0x4B40
53 #define PIO_SCRNMAP 0x4B41
54 #define GIO_UNISCRNMAP 0x4B69
55 #define PIO_UNISCRNMAP 0x4B6A
56
57 #define GIO_UNIMAP 0x4B66
58 struct unipair {
59 u_short unicode;
60 u_short fontpos;
61 };
62 struct unimapdesc {
63 u_short entry_ct;
64 struct unipair *entries;
65 };
66 #define PIO_UNIMAP 0x4B67
67 #define PIO_UNIMAPCLR 0x4B68
68 struct unimapinit {
69 u_short advised_hashsize;
70 u_short advised_hashstep;
71 u_short advised_hashlevel;
72 };
73
74 #define UNI_DIRECT_BASE 0xF000
75 #define UNI_DIRECT_MASK 0x01FF
76
77 #define K_RAW 0x00
78 #define K_XLATE 0x01
79 #define K_MEDIUMRAW 0x02
80 #define K_UNICODE 0x03
81 #define KDGKBMODE 0x4B44
82 #define KDSKBMODE 0x4B45
83
84 #define K_METABIT 0x03
85 #define K_ESCPREFIX 0x04
86 #define KDGKBMETA 0x4B62
87 #define KDSKBMETA 0x4B63
88
89 #define K_SCROLLLOCK 0x01
90 #define K_CAPSLOCK 0x02
91 #define K_NUMLOCK 0x04
92 #define KDGKBLED 0x4B64
93 #define KDSKBLED 0x4B65
94
95 struct kbentry {
96 u_char kb_table;
97 u_char kb_index;
98 u_short kb_value;
99 };
100 #define K_NORMTAB 0x00
101 #define K_SHIFTTAB 0x01
102 #define K_ALTTAB 0x02
103 #define K_ALTSHIFTTAB 0x03
104
105 #define KDGKBENT 0x4B46
106 #define KDSKBENT 0x4B47
107
108 struct kbsentry {
109 u_char kb_func;
110 u_char kb_string[512];
111 };
112 #define KDGKBSENT 0x4B48
113 #define KDSKBSENT 0x4B49
114
115 struct kbdiacr {
116 u_char diacr, base, result;
117 };
118 struct kbdiacrs {
119 unsigned int kb_cnt;
120 struct kbdiacr kbdiacr[256];
121 };
122 #define KDGKBDIACR 0x4B4A
123 #define KDSKBDIACR 0x4B4B
124
125 struct kbkeycode {
126 unsigned int scancode, keycode;
127 };
128 #define KDGETKEYCODE 0x4B4C
129 #define KDSETKEYCODE 0x4B4D
130
131 #define KDSIGACCEPT 0x4B4E
132
133
134
135
136
137 #endif