blob: 74039c78ea69cc463b204b785ac16676ca631d79 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_VT_H
20#define _UAPI_LINUX_VT_H
21#define MIN_NR_CONSOLES 1
22#define MAX_NR_CONSOLES 63
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define VT_OPENQRY 0x5600
25struct vt_mode {
Tao Baod7db5942015-01-28 10:07:51 -080026 char mode;
Tao Baod7db5942015-01-28 10:07:51 -080027 char waitv;
Christopher Ferris106b3a82016-08-24 12:15:38 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 short relsig;
30 short acqsig;
31 short frsig;
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
Christopher Ferris106b3a82016-08-24 12:15:38 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define VT_GETMODE 0x5601
35#define VT_SETMODE 0x5602
36#define VT_AUTO 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define VT_PROCESS 0x01
Christopher Ferris106b3a82016-08-24 12:15:38 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define VT_ACKACQ 0x02
40struct vt_stat {
Tao Baod7db5942015-01-28 10:07:51 -080041 unsigned short v_active;
Tao Baod7db5942015-01-28 10:07:51 -080042 unsigned short v_signal;
Christopher Ferris106b3a82016-08-24 12:15:38 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 unsigned short v_state;
Ben Cheng655a7c02013-10-16 16:09:24 -070045};
46#define VT_GETSTATE 0x5603
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define VT_SENDSIG 0x5604
Christopher Ferris106b3a82016-08-24 12:15:38 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define VT_RELDISP 0x5605
50#define VT_ACTIVATE 0x5606
51#define VT_WAITACTIVE 0x5607
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define VT_DISALLOCATE 0x5608
Christopher Ferris106b3a82016-08-24 12:15:38 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054struct vt_sizes {
Tao Baod7db5942015-01-28 10:07:51 -080055 unsigned short v_rows;
56 unsigned short v_cols;
Tao Baod7db5942015-01-28 10:07:51 -080057 unsigned short v_scrollsize;
Christopher Ferris106b3a82016-08-24 12:15:38 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070059};
60#define VT_RESIZE 0x5609
61struct vt_consize {
Tao Baod7db5942015-01-28 10:07:51 -080062 unsigned short v_rows;
Christopher Ferris106b3a82016-08-24 12:15:38 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 unsigned short v_cols;
65 unsigned short v_vlin;
66 unsigned short v_clin;
Tao Baod7db5942015-01-28 10:07:51 -080067 unsigned short v_vcol;
Christopher Ferris106b3a82016-08-24 12:15:38 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 unsigned short v_ccol;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71#define VT_RESIZEX 0x560A
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define VT_LOCKSWITCH 0x560B
Christopher Ferris106b3a82016-08-24 12:15:38 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define VT_UNLOCKSWITCH 0x560C
75#define VT_GETHIFONTMASK 0x560D
76struct vt_event {
Tao Baod7db5942015-01-28 10:07:51 -080077 unsigned int event;
Christopher Ferris106b3a82016-08-24 12:15:38 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define VT_EVENT_SWITCH 0x0001
80#define VT_EVENT_BLANK 0x0002
81#define VT_EVENT_UNBLANK 0x0004
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define VT_EVENT_RESIZE 0x0008
Christopher Ferris106b3a82016-08-24 12:15:38 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084#define VT_MAX_EVENT 0x000F
Tao Baod7db5942015-01-28 10:07:51 -080085 unsigned int oldev;
86 unsigned int newev;
Tao Baod7db5942015-01-28 10:07:51 -080087 unsigned int pad[4];
Christopher Ferris106b3a82016-08-24 12:15:38 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089};
90#define VT_WAITEVENT 0x560E
91struct vt_setactivate {
Tao Baod7db5942015-01-28 10:07:51 -080092 unsigned int console;
Christopher Ferris106b3a82016-08-24 12:15:38 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 struct vt_mode mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070095};
96#define VT_SETACTIVATE 0x560F
Ben Cheng655a7c02013-10-16 16:09:24 -070097#endif
Christopher Ferris106b3a82016-08-24 12:15:38 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */