Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / platforms / android-17 / arch-x86 / usr / include / linux / kd.h
blob1541ddf58d9536047689a4a21eb5f9d3e103b236
1 /****************************************************************************
2 ****************************************************************************
3 ***
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.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_KD_H
13 #define _LINUX_KD_H
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
38 #define LED_SCR 0x01
39 #define LED_NUM 0x02
40 #define LED_CAP 0x04
42 #define KDGKBTYPE 0x4B33
43 #define KB_84 0x01
44 #define KB_101 0x02
45 #define KB_OTHER 0x03
47 #define KDADDIO 0x4B34
48 #define KDDELIO 0x4B35
49 #define KDENABIO 0x4B36
50 #define KDDISABIO 0x4B37
52 #define KDSETMODE 0x4B3A
53 #define KD_TEXT 0x00
54 #define KD_GRAPHICS 0x01
55 #define KD_TEXT0 0x02
56 #define KD_TEXT1 0x03
57 #define KDGETMODE 0x4B3B
59 #define KDMAPDISP 0x4B3C
60 #define KDUNMAPDISP 0x4B3D
62 typedef char scrnmap_t;
63 #define E_TABSZ 256
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
70 struct unipair {
71 unsigned short unicode;
72 unsigned short fontpos;
74 struct unimapdesc {
75 unsigned short entry_ct;
76 struct unipair __user *entries;
78 #define PIO_UNIMAP 0x4B67
79 #define PIO_UNIMAPCLR 0x4B68
80 struct unimapinit {
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
89 #define K_RAW 0x00
90 #define K_XLATE 0x01
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
107 struct kbentry {
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
120 struct kbsentry {
121 unsigned char kb_func;
122 unsigned char kb_string[512];
124 #define KDGKBSENT 0x4B48
125 #define KDSKBSENT 0x4B49
127 struct kbdiacr {
128 unsigned char diacr, base, result;
130 struct kbdiacrs {
131 unsigned int kb_cnt;
132 struct kbdiacr kbdiacr[256];
134 #define KDGKBDIACR 0x4B4A
135 #define KDSKBDIACR 0x4B4B
137 struct kbkeycode {
138 unsigned int scancode, keycode;
140 #define KDGETKEYCODE 0x4B4C
141 #define KDSETKEYCODE 0x4B4D
143 #define KDSIGACCEPT 0x4B4E
145 struct kbd_repeat {
146 int delay;
147 int period;
151 #define KDKBDREP 0x4B52
153 #define KDFONTOP 0x4B72
155 struct console_font_op {
156 unsigned int op;
157 unsigned int flags;
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;
166 unsigned char *data;
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
176 #endif