• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_KD_H
8 #define _UAPI_LINUX_KD_H
9 #include <linux/types.h>
10 #include <linux/compiler.h>
11 #define GIO_FONT 0x4B60
12 #define PIO_FONT 0x4B61
13 #define GIO_FONTX 0x4B6B
14 #define PIO_FONTX 0x4B6C
15 struct consolefontdesc {
16   unsigned short charcount;
17   unsigned short charheight;
18   char  * chardata;
19 };
20 #define PIO_FONTRESET 0x4B6D
21 #define GIO_CMAP 0x4B70
22 #define PIO_CMAP 0x4B71
23 #define KIOCSOUND 0x4B2F
24 #define KDMKTONE 0x4B30
25 #define KDGETLED 0x4B31
26 #define KDSETLED 0x4B32
27 #define LED_SCR 0x01
28 #define LED_NUM 0x02
29 #define LED_CAP 0x04
30 #define KDGKBTYPE 0x4B33
31 #define KB_84 0x01
32 #define KB_101 0x02
33 #define KB_OTHER 0x03
34 #define KDADDIO 0x4B34
35 #define KDDELIO 0x4B35
36 #define KDENABIO 0x4B36
37 #define KDDISABIO 0x4B37
38 #define KDSETMODE 0x4B3A
39 #define KD_TEXT 0x00
40 #define KD_GRAPHICS 0x01
41 #define KD_TEXT0 0x02
42 #define KD_TEXT1 0x03
43 #define KDGETMODE 0x4B3B
44 #define KDMAPDISP 0x4B3C
45 #define KDUNMAPDISP 0x4B3D
46 typedef char scrnmap_t;
47 #define E_TABSZ 256
48 #define GIO_SCRNMAP 0x4B40
49 #define PIO_SCRNMAP 0x4B41
50 #define GIO_UNISCRNMAP 0x4B69
51 #define PIO_UNISCRNMAP 0x4B6A
52 #define GIO_UNIMAP 0x4B66
53 struct unipair {
54   unsigned short unicode;
55   unsigned short fontpos;
56 };
57 struct unimapdesc {
58   unsigned short entry_ct;
59   struct unipair  * entries;
60 };
61 #define PIO_UNIMAP 0x4B67
62 #define PIO_UNIMAPCLR 0x4B68
63 struct unimapinit {
64   unsigned short advised_hashsize;
65   unsigned short advised_hashstep;
66   unsigned short advised_hashlevel;
67 };
68 #define UNI_DIRECT_BASE 0xF000
69 #define UNI_DIRECT_MASK 0x01FF
70 #define K_RAW 0x00
71 #define K_XLATE 0x01
72 #define K_MEDIUMRAW 0x02
73 #define K_UNICODE 0x03
74 #define K_OFF 0x04
75 #define KDGKBMODE 0x4B44
76 #define KDSKBMODE 0x4B45
77 #define K_METABIT 0x03
78 #define K_ESCPREFIX 0x04
79 #define KDGKBMETA 0x4B62
80 #define KDSKBMETA 0x4B63
81 #define K_SCROLLLOCK 0x01
82 #define K_NUMLOCK 0x02
83 #define K_CAPSLOCK 0x04
84 #define KDGKBLED 0x4B64
85 #define KDSKBLED 0x4B65
86 struct kbentry {
87   unsigned char kb_table;
88   unsigned char kb_index;
89   unsigned short kb_value;
90 };
91 #define K_NORMTAB 0x00
92 #define K_SHIFTTAB 0x01
93 #define K_ALTTAB 0x02
94 #define K_ALTSHIFTTAB 0x03
95 #define KDGKBENT 0x4B46
96 #define KDSKBENT 0x4B47
97 struct kbsentry {
98   unsigned char kb_func;
99   unsigned char kb_string[512];
100 };
101 #define KDGKBSENT 0x4B48
102 #define KDSKBSENT 0x4B49
103 struct kbdiacr {
104   unsigned char diacr, base, result;
105 };
106 struct kbdiacrs {
107   unsigned int kb_cnt;
108   struct kbdiacr kbdiacr[256];
109 };
110 #define KDGKBDIACR 0x4B4A
111 #define KDSKBDIACR 0x4B4B
112 struct kbdiacruc {
113   unsigned int diacr, base, result;
114 };
115 struct kbdiacrsuc {
116   unsigned int kb_cnt;
117   struct kbdiacruc kbdiacruc[256];
118 };
119 #define KDGKBDIACRUC 0x4BFA
120 #define KDSKBDIACRUC 0x4BFB
121 struct kbkeycode {
122   unsigned int scancode, keycode;
123 };
124 #define KDGETKEYCODE 0x4B4C
125 #define KDSETKEYCODE 0x4B4D
126 #define KDSIGACCEPT 0x4B4E
127 struct kbd_repeat {
128   int delay;
129   int period;
130 };
131 #define KDKBDREP 0x4B52
132 #define KDFONTOP 0x4B72
133 struct console_font_op {
134   unsigned int op;
135   unsigned int flags;
136   unsigned int width, height;
137   unsigned int charcount;
138   unsigned char  * data;
139 };
140 struct console_font {
141   unsigned int width, height;
142   unsigned int charcount;
143   unsigned char * data;
144 };
145 #define KD_FONT_OP_SET 0
146 #define KD_FONT_OP_GET 1
147 #define KD_FONT_OP_SET_DEFAULT 2
148 #define KD_FONT_OP_COPY 3
149 #define KD_FONT_OP_SET_TALL 4
150 #define KD_FONT_OP_GET_TALL 5
151 #define KD_FONT_FLAG_DONT_RECALC 1
152 #endif
153