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 8 struct 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 21 struct vt_stat { 22 ushort v_active; /* active vt */ 23 ushort v_signal; /* signal to send */ 24 ushort 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 34 #endif /* _LINUX_VT_H */