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