aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/console.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/console.h')
-rw-r--r--include/linux/console.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/console.h b/include/linux/console.h
index 08734e660d4..76a1807726e 100644
--- a/include/linux/console.h
+++ b/include/linux/console.h
@@ -63,9 +63,11 @@ extern const struct consw vga_con; /* VGA text console */
63extern const struct consw newport_con; /* SGI Newport console */ 63extern const struct consw newport_con; /* SGI Newport console */
64extern const struct consw prom_con; /* SPARC PROM console */ 64extern const struct consw prom_con; /* SPARC PROM console */
65 65
66int con_is_bound(const struct consw *csw);
67int register_con_driver(const struct consw *csw, int first, int last);
68int unregister_con_driver(const struct consw *csw);
66int take_over_console(const struct consw *sw, int first, int last, int deflt); 69int take_over_console(const struct consw *sw, int first, int last, int deflt);
67void give_up_console(const struct consw *sw); 70void give_up_console(const struct consw *sw);
68
69/* scroll */ 71/* scroll */
70#define SM_UP (1) 72#define SM_UP (1)
71#define SM_DOWN (2) 73#define SM_DOWN (2)
@@ -87,6 +89,7 @@ void give_up_console(const struct consw *sw);
87#define CON_CONSDEV (2) /* Last on the command line */ 89#define CON_CONSDEV (2) /* Last on the command line */
88#define CON_ENABLED (4) 90#define CON_ENABLED (4)
89#define CON_BOOT (8) 91#define CON_BOOT (8)
92#define CON_ANYTIME (16) /* Safe to call when cpu is offline */
90 93
91struct console 94struct console
92{ 95{
@@ -117,9 +120,14 @@ extern void console_stop(struct console *);
117extern void console_start(struct console *); 120extern void console_start(struct console *);
118extern int is_console_locked(void); 121extern int is_console_locked(void);
119 122
123#ifndef CONFIG_DISABLE_CONSOLE_SUSPEND
120/* Suspend and resume console messages over PM events */ 124/* Suspend and resume console messages over PM events */
121extern void suspend_console(void); 125extern void suspend_console(void);
122extern void resume_console(void); 126extern void resume_console(void);
127#else
128static inline void suspend_console(void) {}
129static inline void resume_console(void) {}
130#endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */
123 131
124/* Some debug stub to catch some of the obvious races in the VT code */ 132/* Some debug stub to catch some of the obvious races in the VT code */
125#if 1 133#if 1