aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vt.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/vt.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/vt.h')
-rw-r--r--include/linux/vt.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h
new file mode 100644
index 000000000000..9f95b0bea5b3
--- /dev/null
+++ b/include/linux/vt.h
@@ -0,0 +1,54 @@
1#ifndef _LINUX_VT_H
2#define _LINUX_VT_H
3
4/* 0x56 is 'V', to avoid collision with termios and kd */
5
6#define VT_OPENQRY 0x5600 /* find available vt */
7
8struct vt_mode {
9 char mode; /* vt mode */
10 char waitv; /* if set, hang on writes if not active */
11 short relsig; /* signal to raise on release req */
12 short acqsig; /* signal to raise on acquisition */
13 short frsig; /* unused (set to 0) */
14};
15#define VT_GETMODE 0x5601 /* get mode of active vt */
16#define VT_SETMODE 0x5602 /* set mode of active vt */
17#define VT_AUTO 0x00 /* auto vt switching */
18#define VT_PROCESS 0x01 /* process controls switching */
19#define VT_ACKACQ 0x02 /* acknowledge switch */
20
21struct vt_stat {
22 unsigned short v_active; /* active vt */
23 unsigned short v_signal; /* signal to send */
24 unsigned short v_state; /* vt bitmask */
25};
26#define VT_GETSTATE 0x5603 /* get global vt state info */
27#define VT_SENDSIG 0x5604 /* signal to send to bitmask of vts */
28
29#define VT_RELDISP 0x5605 /* release display */
30
31#define VT_ACTIVATE 0x5606 /* make vt active */
32#define VT_WAITACTIVE 0x5607 /* wait for vt active */
33#define VT_DISALLOCATE 0x5608 /* free memory associated to vt */
34
35struct vt_sizes {
36 unsigned short v_rows; /* number of rows */
37 unsigned short v_cols; /* number of columns */
38 unsigned short v_scrollsize; /* number of lines of scrollback */
39};
40#define VT_RESIZE 0x5609 /* set kernel's idea of screensize */
41
42struct vt_consize {
43 unsigned short v_rows; /* number of rows */
44 unsigned short v_cols; /* number of columns */
45 unsigned short v_vlin; /* number of pixel rows on screen */
46 unsigned short v_clin; /* number of pixel rows per character */
47 unsigned short v_vcol; /* number of pixel columns on screen */
48 unsigned short v_ccol; /* number of pixel columns per character */
49};
50#define VT_RESIZEX 0x560A /* set kernel's idea of screensize + more */
51#define VT_LOCKSWITCH 0x560B /* disallow vt switching */
52#define VT_UNLOCKSWITCH 0x560C /* allow vt switching */
53
54#endif /* _LINUX_VT_H */