blob: 1a708cce7c84ec80a4af6ce004ac4e6daa75bd7e [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
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define VT_OPENQRY 0x5600
24struct vt_mode {
Tao Baod7db5942015-01-28 10:07:51 -080025 char mode;
Tao Baod7db5942015-01-28 10:07:51 -080026 char waitv;
27 short relsig;
28 short acqsig;
29 short frsig;
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
31#define VT_GETMODE 0x5601
32#define VT_SETMODE 0x5602
33#define VT_AUTO 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define VT_PROCESS 0x01
35#define VT_ACKACQ 0x02
36struct vt_stat {
Tao Baod7db5942015-01-28 10:07:51 -080037 unsigned short v_active;
Tao Baod7db5942015-01-28 10:07:51 -080038 unsigned short v_signal;
39 unsigned short v_state;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41#define VT_GETSTATE 0x5603
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define VT_SENDSIG 0x5604
43#define VT_RELDISP 0x5605
44#define VT_ACTIVATE 0x5606
45#define VT_WAITACTIVE 0x5607
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define VT_DISALLOCATE 0x5608
47struct vt_sizes {
Tao Baod7db5942015-01-28 10:07:51 -080048 unsigned short v_rows;
49 unsigned short v_cols;
Tao Baod7db5942015-01-28 10:07:51 -080050 unsigned short v_scrollsize;
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52#define VT_RESIZE 0x5609
53struct vt_consize {
Tao Baod7db5942015-01-28 10:07:51 -080054 unsigned short v_rows;
55 unsigned short v_cols;
56 unsigned short v_vlin;
57 unsigned short v_clin;
Tao Baod7db5942015-01-28 10:07:51 -080058 unsigned short v_vcol;
59 unsigned short v_ccol;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
61#define VT_RESIZEX 0x560A
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define VT_LOCKSWITCH 0x560B
63#define VT_UNLOCKSWITCH 0x560C
64#define VT_GETHIFONTMASK 0x560D
65struct vt_event {
Tao Baod7db5942015-01-28 10:07:51 -080066 unsigned int event;
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define VT_EVENT_SWITCH 0x0001
68#define VT_EVENT_BLANK 0x0002
69#define VT_EVENT_UNBLANK 0x0004
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define VT_EVENT_RESIZE 0x0008
71#define VT_MAX_EVENT 0x000F
Tao Baod7db5942015-01-28 10:07:51 -080072 unsigned int oldev;
73 unsigned int newev;
Tao Baod7db5942015-01-28 10:07:51 -080074 unsigned int pad[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76#define VT_WAITEVENT 0x560E
77struct vt_setactivate {
Tao Baod7db5942015-01-28 10:07:51 -080078 unsigned int console;
79 struct vt_mode mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81#define VT_SETACTIVATE 0x560F
Ben Cheng655a7c02013-10-16 16:09:24 -070082#endif