• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   ***   To edit the content of this header, modify the corresponding
11   ***   source file (e.g. under external/kernel-headers/original/) then
12   ***   run bionic/libc/kernel/tools/update_all.py
13   ***
14   ***   Any manual change here will be lost the next time this script will
15   ***   be run. You've been warned!
16   ***
17   ****************************************************************************
18   ****************************************************************************/
19  #ifndef _LINUX_KD_H
20  #define _LINUX_KD_H
21  #include <linux/types.h>
22  #include <linux/compiler.h>
23  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  #define GIO_FONT 0x4B60
25  #define PIO_FONT 0x4B61
26  #define GIO_FONTX 0x4B6B
27  #define PIO_FONTX 0x4B6C
28  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  struct consolefontdesc {
30   unsigned short charcount;
31   unsigned short charheight;
32   char __user *chardata;
33  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  };
35  #define PIO_FONTRESET 0x4B6D
36  #define GIO_CMAP 0x4B70
37  #define PIO_CMAP 0x4B71
38  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  #define KIOCSOUND 0x4B2F
40  #define KDMKTONE 0x4B30
41  #define KDGETLED 0x4B31
42  #define KDSETLED 0x4B32
43  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  #define LED_SCR 0x01
45  #define LED_NUM 0x02
46  #define LED_CAP 0x04
47  #define KDGKBTYPE 0x4B33
48  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  #define KB_84 0x01
50  #define KB_101 0x02
51  #define KB_OTHER 0x03
52  #define KDADDIO 0x4B34
53  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  #define KDDELIO 0x4B35
55  #define KDENABIO 0x4B36
56  #define KDDISABIO 0x4B37
57  #define KDSETMODE 0x4B3A
58  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  #define KD_TEXT 0x00
60  #define KD_GRAPHICS 0x01
61  #define KD_TEXT0 0x02
62  #define KD_TEXT1 0x03
63  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  #define KDGETMODE 0x4B3B
65  #define KDMAPDISP 0x4B3C
66  #define KDUNMAPDISP 0x4B3D
67  typedef char scrnmap_t;
68  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  #define E_TABSZ 256
70  #define GIO_SCRNMAP 0x4B40
71  #define PIO_SCRNMAP 0x4B41
72  #define GIO_UNISCRNMAP 0x4B69
73  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  #define PIO_UNISCRNMAP 0x4B6A
75  #define GIO_UNIMAP 0x4B66
76  struct unipair {
77   unsigned short unicode;
78  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   unsigned short fontpos;
80  };
81  struct unimapdesc {
82   unsigned short entry_ct;
83  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84   struct unipair __user *entries;
85  };
86  #define PIO_UNIMAP 0x4B67
87  #define PIO_UNIMAPCLR 0x4B68
88  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  struct unimapinit {
90   unsigned short advised_hashsize;
91   unsigned short advised_hashstep;
92   unsigned short advised_hashlevel;
93  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  };
95  #define UNI_DIRECT_BASE 0xF000
96  #define UNI_DIRECT_MASK 0x01FF
97  #define K_RAW 0x00
98  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  #define K_XLATE 0x01
100  #define K_MEDIUMRAW 0x02
101  #define K_UNICODE 0x03
102  #define KDGKBMODE 0x4B44
103  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  #define KDSKBMODE 0x4B45
105  #define K_METABIT 0x03
106  #define K_ESCPREFIX 0x04
107  #define KDGKBMETA 0x4B62
108  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  #define KDSKBMETA 0x4B63
110  #define K_SCROLLLOCK 0x01
111  #define K_NUMLOCK 0x02
112  #define K_CAPSLOCK 0x04
113  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114  #define KDGKBLED 0x4B64
115  #define KDSKBLED 0x4B65
116  struct kbentry {
117   unsigned char kb_table;
118  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119   unsigned char kb_index;
120   unsigned short kb_value;
121  };
122  #define K_NORMTAB 0x00
123  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124  #define K_SHIFTTAB 0x01
125  #define K_ALTTAB 0x02
126  #define K_ALTSHIFTTAB 0x03
127  #define KDGKBENT 0x4B46
128  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129  #define KDSKBENT 0x4B47
130  struct kbsentry {
131   unsigned char kb_func;
132   unsigned char kb_string[512];
133  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134  };
135  #define KDGKBSENT 0x4B48
136  #define KDSKBSENT 0x4B49
137  struct kbdiacr {
138  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   unsigned char diacr, base, result;
140  };
141  struct kbdiacrs {
142   unsigned int kb_cnt;
143  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144   struct kbdiacr kbdiacr[256];
145  };
146  #define KDGKBDIACR 0x4B4A
147  #define KDSKBDIACR 0x4B4B
148  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149  struct kbkeycode {
150   unsigned int scancode, keycode;
151  };
152  #define KDGETKEYCODE 0x4B4C
153  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154  #define KDSETKEYCODE 0x4B4D
155  #define KDSIGACCEPT 0x4B4E
156  struct kbd_repeat {
157   int delay;
158  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159   int period;
160  };
161  #define KDKBDREP 0x4B52
162  #define KDFONTOP 0x4B72
163  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164  struct console_font_op {
165   unsigned int op;
166   unsigned int flags;
167   unsigned int width, height;
168  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169   unsigned int charcount;
170   unsigned char __user *data;
171  };
172  struct console_font {
173  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174   unsigned int width, height;
175   unsigned int charcount;
176   unsigned char *data;
177  };
178  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179  #define KD_FONT_OP_SET 0
180  #define KD_FONT_OP_GET 1
181  #define KD_FONT_OP_SET_DEFAULT 2
182  #define KD_FONT_OP_COPY 3
183  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184  #define KD_FONT_FLAG_DONT_RECALC 1
185  #endif
186