xref: /OK3568_Linux_fs/kernel/include/linux/vt.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _LINUX_VT_H
3*4882a593Smuzhiyun #define _LINUX_VT_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <uapi/linux/vt.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun /* Virtual Terminal events. */
9*4882a593Smuzhiyun #define VT_ALLOCATE		0x0001 /* Console got allocated */
10*4882a593Smuzhiyun #define VT_DEALLOCATE		0x0002 /* Console will be deallocated */
11*4882a593Smuzhiyun #define VT_WRITE		0x0003 /* A char got output */
12*4882a593Smuzhiyun #define VT_UPDATE		0x0004 /* A bigger update occurred */
13*4882a593Smuzhiyun #define VT_PREWRITE		0x0005 /* A char is about to be written to the console */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifdef CONFIG_VT_CONSOLE
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun extern int vt_kmsg_redirect(int new);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #else
20*4882a593Smuzhiyun 
vt_kmsg_redirect(int new)21*4882a593Smuzhiyun static inline int vt_kmsg_redirect(int new)
22*4882a593Smuzhiyun {
23*4882a593Smuzhiyun 	return 0;
24*4882a593Smuzhiyun }
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif /* _LINUX_VT_H */
29