blob: c9a8245eeaea9a5fa4b79f95b47a28a0774cd410 [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 */
24#define MAX_NR_USER_CONSOLES 63
25#define VT_OPENQRY 0x5600
26struct vt_mode {
Tao Baod7db5942015-01-28 10:07:51 -080027 char mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 char waitv;
30 short relsig;
31 short acqsig;
32 short frsig;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35#define VT_GETMODE 0x5601
36#define VT_SETMODE 0x5602
37#define VT_AUTO 0x00
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define VT_PROCESS 0x01
40#define VT_ACKACQ 0x02
41struct vt_stat {
Tao Baod7db5942015-01-28 10:07:51 -080042 unsigned short v_active;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 unsigned short v_signal;
45 unsigned short v_state;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#define VT_GETSTATE 0x5603
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define VT_SENDSIG 0x5604
50#define VT_RELDISP 0x5605
51#define VT_ACTIVATE 0x5606
52#define VT_WAITACTIVE 0x5607
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define VT_DISALLOCATE 0x5608
55struct vt_sizes {
Tao Baod7db5942015-01-28 10:07:51 -080056 unsigned short v_rows;
57 unsigned short v_cols;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned short v_scrollsize;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
61#define VT_RESIZE 0x5609
62struct vt_consize {
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 unsigned short v_rows;
65 unsigned short v_cols;
66 unsigned short v_vlin;
67 unsigned short v_clin;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 unsigned short v_vcol;
70 unsigned short v_ccol;
Ben Cheng655a7c02013-10-16 16:09:24 -070071};
72#define VT_RESIZEX 0x560A
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define VT_LOCKSWITCH 0x560B
75#define VT_UNLOCKSWITCH 0x560C
76#define VT_GETHIFONTMASK 0x560D
77struct vt_event {
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned int event;
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define VT_EVENT_SWITCH 0x0001
81#define VT_EVENT_BLANK 0x0002
82#define VT_EVENT_UNBLANK 0x0004
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define VT_EVENT_RESIZE 0x0008
85#define VT_MAX_EVENT 0x000F
Tao Baod7db5942015-01-28 10:07:51 -080086 unsigned int oldev;
87 unsigned int newev;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 unsigned int pad[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070090};
91#define VT_WAITEVENT 0x560E
92struct vt_setactivate {
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 unsigned int console;
95 struct vt_mode mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97#define VT_SETACTIVATE 0x560F
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099#define vt_get_kmsg_redirect() vt_kmsg_redirect(- 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#endif