1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
14 #include <linux/types.h>
15 #include <linux/compiler.h>
17 #define GIO_FONT 0x4B60
18 #define PIO_FONT 0x4B61
20 #define GIO_FONTX 0x4B6B
21 #define PIO_FONTX 0x4B6C
22 struct consolefontdesc
{
23 unsigned short charcount
;
24 unsigned short charheight
;
25 char __user
*chardata
;
28 #define PIO_FONTRESET 0x4B6D
30 #define GIO_CMAP 0x4B70
31 #define PIO_CMAP 0x4B71
33 #define KIOCSOUND 0x4B2F
34 #define KDMKTONE 0x4B30
36 #define KDGETLED 0x4B31
37 #define KDSETLED 0x4B32
42 #define KDGKBTYPE 0x4B33
47 #define KDADDIO 0x4B34
48 #define KDDELIO 0x4B35
49 #define KDENABIO 0x4B36
50 #define KDDISABIO 0x4B37
52 #define KDSETMODE 0x4B3A
54 #define KD_GRAPHICS 0x01
57 #define KDGETMODE 0x4B3B
59 #define KDMAPDISP 0x4B3C
60 #define KDUNMAPDISP 0x4B3D
62 typedef char scrnmap_t
;
64 #define GIO_SCRNMAP 0x4B40
65 #define PIO_SCRNMAP 0x4B41
66 #define GIO_UNISCRNMAP 0x4B69
67 #define PIO_UNISCRNMAP 0x4B6A
69 #define GIO_UNIMAP 0x4B66
71 unsigned short unicode
;
72 unsigned short fontpos
;
75 unsigned short entry_ct
;
76 struct unipair __user
*entries
;
78 #define PIO_UNIMAP 0x4B67
79 #define PIO_UNIMAPCLR 0x4B68
81 unsigned short advised_hashsize
;
82 unsigned short advised_hashstep
;
83 unsigned short advised_hashlevel
;
86 #define UNI_DIRECT_BASE 0xF000
87 #define UNI_DIRECT_MASK 0x01FF
91 #define K_MEDIUMRAW 0x02
92 #define K_UNICODE 0x03
93 #define KDGKBMODE 0x4B44
94 #define KDSKBMODE 0x4B45
96 #define K_METABIT 0x03
97 #define K_ESCPREFIX 0x04
98 #define KDGKBMETA 0x4B62
99 #define KDSKBMETA 0x4B63
101 #define K_SCROLLLOCK 0x01
102 #define K_NUMLOCK 0x02
103 #define K_CAPSLOCK 0x04
104 #define KDGKBLED 0x4B64
105 #define KDSKBLED 0x4B65
108 unsigned char kb_table
;
109 unsigned char kb_index
;
110 unsigned short kb_value
;
112 #define K_NORMTAB 0x00
113 #define K_SHIFTTAB 0x01
114 #define K_ALTTAB 0x02
115 #define K_ALTSHIFTTAB 0x03
117 #define KDGKBENT 0x4B46
118 #define KDSKBENT 0x4B47
121 unsigned char kb_func
;
122 unsigned char kb_string
[512];
124 #define KDGKBSENT 0x4B48
125 #define KDSKBSENT 0x4B49
128 unsigned char diacr
, base
, result
;
132 struct kbdiacr kbdiacr
[256];
134 #define KDGKBDIACR 0x4B4A
135 #define KDSKBDIACR 0x4B4B
138 unsigned int scancode
, keycode
;
140 #define KDGETKEYCODE 0x4B4C
141 #define KDSETKEYCODE 0x4B4D
143 #define KDSIGACCEPT 0x4B4E
151 #define KDKBDREP 0x4B52
153 #define KDFONTOP 0x4B72
155 struct console_font_op
{
158 unsigned int width
, height
;
159 unsigned int charcount
;
160 unsigned char __user
*data
;
163 struct console_font
{
164 unsigned int width
, height
;
165 unsigned int charcount
;
169 #define KD_FONT_OP_SET 0
170 #define KD_FONT_OP_GET 1
171 #define KD_FONT_OP_SET_DEFAULT 2
172 #define KD_FONT_OP_COPY 3
174 #define KD_FONT_FLAG_DONT_RECALC 1