diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/vt.h | 14 | ||||
-rw-r--r-- | include/linux/vt_kern.h | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h index 02c1c0288770..89c03a11e193 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h | |||
@@ -74,4 +74,18 @@ struct vt_consize { | |||
74 | #define VT_UNLOCKSWITCH 0x560C /* allow vt switching */ | 74 | #define VT_UNLOCKSWITCH 0x560C /* allow vt switching */ |
75 | #define VT_GETHIFONTMASK 0x560D /* return hi font mask */ | 75 | #define VT_GETHIFONTMASK 0x560D /* return hi font mask */ |
76 | 76 | ||
77 | struct vt_event { | ||
78 | unsigned int event; | ||
79 | #define VT_EVENT_SWITCH 0x0001 /* Console switch */ | ||
80 | #define VT_EVENT_BLANK 0x0002 /* Screen blank */ | ||
81 | #define VT_EVENT_UNBLANK 0x0004 /* Screen unblank */ | ||
82 | #define VT_EVENT_RESIZE 0x0008 /* Resize display */ | ||
83 | #define VT_MAX_EVENT 0x000F | ||
84 | unsigned int old; /* Old console */ | ||
85 | unsigned int new; /* New console (if changing) */ | ||
86 | unsigned int pad[4]; /* Padding for expansion */ | ||
87 | }; | ||
88 | |||
89 | #define VT_WAITEVENT 0x560E /* Wait for an event */ | ||
90 | |||
77 | #endif /* _LINUX_VT_H */ | 91 | #endif /* _LINUX_VT_H */ |
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 2f1113467f70..f8c797d57c8b 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h | |||
@@ -91,7 +91,8 @@ int con_copy_unimap(struct vc_data *dst_vc, struct vc_data *src_vc); | |||
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | /* vt.c */ | 93 | /* vt.c */ |
94 | int vt_waitactive(int vt); | 94 | void vt_event_post(unsigned int event, unsigned int old, unsigned int new); |
95 | int vt_waitactive(int n); | ||
95 | void change_console(struct vc_data *new_vc); | 96 | void change_console(struct vc_data *new_vc); |
96 | void reset_vc(struct vc_data *vc); | 97 | void reset_vc(struct vc_data *vc); |
97 | extern int unbind_con_driver(const struct consw *csw, int first, int last, | 98 | extern int unbind_con_driver(const struct consw *csw, int first, int last, |