1
2 #ifndef _UAPI_LINUX_VT_H
3 #define _UAPI_LINUX_VT_H
4
5
6
7
8
9
10 #define MIN_NR_CONSOLES 1
11 #define MAX_NR_CONSOLES 63
12
13
14
15
16
17 #define VT_OPENQRY 0x5600
18
19 struct vt_mode {
20 char mode;
21 char waitv;
22 short relsig;
23 short acqsig;
24 short frsig;
25 };
26 #define VT_GETMODE 0x5601
27 #define VT_SETMODE 0x5602
28 #define VT_AUTO 0x00
29 #define VT_PROCESS 0x01
30 #define VT_ACKACQ 0x02
31
32 struct vt_stat {
33 unsigned short v_active;
34 unsigned short v_signal;
35 unsigned short v_state;
36 };
37 #define VT_GETSTATE 0x5603
38 #define VT_SENDSIG 0x5604
39
40 #define VT_RELDISP 0x5605
41
42 #define VT_ACTIVATE 0x5606
43 #define VT_WAITACTIVE 0x5607
44 #define VT_DISALLOCATE 0x5608
45
46 struct vt_sizes {
47 unsigned short v_rows;
48 unsigned short v_cols;
49 unsigned short v_scrollsize;
50 };
51 #define VT_RESIZE 0x5609
52
53 struct vt_consize {
54 unsigned short v_rows;
55 unsigned short v_cols;
56 unsigned short v_vlin;
57 unsigned short v_clin;
58 unsigned short v_vcol;
59 unsigned short v_ccol;
60 };
61 #define VT_RESIZEX 0x560A
62 #define VT_LOCKSWITCH 0x560B
63 #define VT_UNLOCKSWITCH 0x560C
64 #define VT_GETHIFONTMASK 0x560D
65
66 struct vt_event {
67 unsigned int event;
68 #define VT_EVENT_SWITCH 0x0001
69 #define VT_EVENT_BLANK 0x0002
70 #define VT_EVENT_UNBLANK 0x0004
71 #define VT_EVENT_RESIZE 0x0008
72 #define VT_MAX_EVENT 0x000F
73 unsigned int oldev;
74 unsigned int newev;
75 unsigned int pad[4];
76 };
77
78 #define VT_WAITEVENT 0x560E
79
80 struct vt_setactivate {
81 unsigned int console;
82 struct vt_mode mode;
83 };
84
85 #define VT_SETACTIVATE 0x560F
86
87 #endif