Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 _UAPI_LINUX_KD_H |
| 20 | #define _UAPI_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 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 | unsigned short charcount; |
| 31 | unsigned short charheight; |
| 32 | char __user * chardata; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 77 | unsigned short unicode; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | unsigned short fontpos; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | }; |
| 81 | struct unimapdesc { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 82 | unsigned short entry_ct; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 84 | struct unipair __user * entries; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 90 | unsigned short advised_hashsize; |
| 91 | unsigned short advised_hashstep; |
| 92 | unsigned short advised_hashlevel; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 K_OFF 0x04 |
| 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 104 | #define KDGKBMODE 0x4B44 |
| 105 | #define KDSKBMODE 0x4B45 |
| 106 | #define K_METABIT 0x03 |
| 107 | #define K_ESCPREFIX 0x04 |
| 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 109 | #define KDGKBMETA 0x4B62 |
| 110 | #define KDSKBMETA 0x4B63 |
| 111 | #define K_SCROLLLOCK 0x01 |
| 112 | #define K_NUMLOCK 0x02 |
| 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 114 | #define K_CAPSLOCK 0x04 |
| 115 | #define KDGKBLED 0x4B64 |
| 116 | #define KDSKBLED 0x4B65 |
| 117 | struct kbentry { |
| 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 119 | unsigned char kb_table; |
| 120 | unsigned char kb_index; |
| 121 | unsigned short kb_value; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 122 | }; |
| 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 124 | #define K_NORMTAB 0x00 |
| 125 | #define K_SHIFTTAB 0x01 |
| 126 | #define K_ALTTAB 0x02 |
| 127 | #define K_ALTSHIFTTAB 0x03 |
| 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 129 | #define KDGKBENT 0x4B46 |
| 130 | #define KDSKBENT 0x4B47 |
| 131 | struct kbsentry { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 132 | unsigned char kb_func; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 134 | unsigned char kb_string[512]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 135 | }; |
| 136 | #define KDGKBSENT 0x4B48 |
| 137 | #define KDSKBSENT 0x4B49 |
| 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 139 | struct kbdiacr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 140 | unsigned char diacr, base, result; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 141 | }; |
| 142 | struct kbdiacrs { |
| 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 144 | unsigned int kb_cnt; |
| 145 | struct kbdiacr kbdiacr[256]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 146 | }; |
| 147 | #define KDGKBDIACR 0x4B4A |
| 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 149 | #define KDSKBDIACR 0x4B4B |
| 150 | struct kbdiacruc { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 151 | unsigned int diacr, base, result; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 152 | }; |
| 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 154 | struct kbdiacrsuc { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 155 | unsigned int kb_cnt; |
| 156 | struct kbdiacruc kbdiacruc[256]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 157 | }; |
| 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 159 | #define KDGKBDIACRUC 0x4BFA |
| 160 | #define KDSKBDIACRUC 0x4BFB |
| 161 | struct kbkeycode { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 162 | unsigned int scancode, keycode; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 164 | }; |
| 165 | #define KDGETKEYCODE 0x4B4C |
| 166 | #define KDSETKEYCODE 0x4B4D |
| 167 | #define KDSIGACCEPT 0x4B4E |
| 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 169 | struct kbd_repeat { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 170 | int delay; |
| 171 | int period; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 172 | }; |
| 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 174 | #define KDKBDREP 0x4B52 |
| 175 | #define KDFONTOP 0x4B72 |
| 176 | struct console_font_op { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 177 | unsigned int op; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 179 | unsigned int flags; |
| 180 | unsigned int width, height; |
| 181 | unsigned int charcount; |
| 182 | unsigned char __user * data; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 184 | }; |
| 185 | struct console_font { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 186 | unsigned int width, height; |
| 187 | unsigned int charcount; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 189 | unsigned char * data; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 190 | }; |
| 191 | #define KD_FONT_OP_SET 0 |
| 192 | #define KD_FONT_OP_GET 1 |
| 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 194 | #define KD_FONT_OP_SET_DEFAULT 2 |
| 195 | #define KD_FONT_OP_COPY 3 |
| 196 | #define KD_FONT_FLAG_DONT_RECALC 1 |
| 197 | #endif |
| 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |