OSDN Git Service

Check in released NDK version r4.
[android-x86/prebuilt.git] / ndk / android-ndk-r4 / darwin / platforms / android-5 / arch-x86 / usr / include / linux / kd.h
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>
16
17 #define GIO_FONT 0x4B60  
18 #define PIO_FONT 0x4B61  
19
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;
26 };
27
28 #define PIO_FONTRESET 0x4B6D  
29
30 #define GIO_CMAP 0x4B70  
31 #define PIO_CMAP 0x4B71  
32
33 #define KIOCSOUND 0x4B2F  
34 #define KDMKTONE 0x4B30  
35
36 #define KDGETLED 0x4B31  
37 #define KDSETLED 0x4B32  
38 #define LED_SCR 0x01  
39 #define LED_NUM 0x02  
40 #define LED_CAP 0x04  
41
42 #define KDGKBTYPE 0x4B33  
43 #define KB_84 0x01
44 #define KB_101 0x02  
45 #define KB_OTHER 0x03
46
47 #define KDADDIO 0x4B34  
48 #define KDDELIO 0x4B35  
49 #define KDENABIO 0x4B36  
50 #define KDDISABIO 0x4B37  
51
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  
58
59 #define KDMAPDISP 0x4B3C  
60 #define KDUNMAPDISP 0x4B3D  
61
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  
68
69 #define GIO_UNIMAP 0x4B66  
70 struct unipair {
71  unsigned short unicode;
72  unsigned short fontpos;
73 };
74 struct unimapdesc {
75  unsigned short entry_ct;
76  struct unipair __user *entries;
77 };
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;
84 };
85
86 #define UNI_DIRECT_BASE 0xF000  
87 #define UNI_DIRECT_MASK 0x01FF  
88
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  
95
96 #define K_METABIT 0x03
97 #define K_ESCPREFIX 0x04
98 #define KDGKBMETA 0x4B62  
99 #define KDSKBMETA 0x4B63  
100
101 #define K_SCROLLLOCK 0x01
102 #define K_NUMLOCK 0x02
103 #define K_CAPSLOCK 0x04
104 #define KDGKBLED 0x4B64  
105 #define KDSKBLED 0x4B65  
106
107 struct kbentry {
108  unsigned char kb_table;
109  unsigned char kb_index;
110  unsigned short kb_value;
111 };
112 #define K_NORMTAB 0x00
113 #define K_SHIFTTAB 0x01
114 #define K_ALTTAB 0x02
115 #define K_ALTSHIFTTAB 0x03
116
117 #define KDGKBENT 0x4B46  
118 #define KDSKBENT 0x4B47  
119
120 struct kbsentry {
121  unsigned char kb_func;
122  unsigned char kb_string[512];
123 };
124 #define KDGKBSENT 0x4B48  
125 #define KDSKBSENT 0x4B49  
126
127 struct kbdiacr {
128  unsigned char diacr, base, result;
129 };
130 struct kbdiacrs {
131  unsigned int kb_cnt;
132  struct kbdiacr kbdiacr[256];
133 };
134 #define KDGKBDIACR 0x4B4A  
135 #define KDSKBDIACR 0x4B4B  
136
137 struct kbkeycode {
138  unsigned int scancode, keycode;
139 };
140 #define KDGETKEYCODE 0x4B4C  
141 #define KDSETKEYCODE 0x4B4D  
142
143 #define KDSIGACCEPT 0x4B4E  
144
145 struct kbd_repeat {
146  int delay;
147  int period;
148
149 };
150
151 #define KDKBDREP 0x4B52  
152
153 #define KDFONTOP 0x4B72  
154
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;
161 };
162
163 struct console_font {
164  unsigned int width, height;
165  unsigned int charcount;
166  unsigned char *data;
167 };
168
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  
173
174 #define KD_FONT_FLAG_DONT_RECALC 1  
175
176 #endif