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