X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fconsole.h;h=7d0420274de00d26b86d6d986631860bb158d5d3;hb=687d5fe3dc33794efb500f42164a0588e2647914;hp=08734e660d4182c11c9bc55a6a7e2632f1d3e917;hpb=75ba632a01d4dc70d0a0f3a92b5ec9b4a3644b2d;p=powerpc.git diff --git a/include/linux/console.h b/include/linux/console.h index 08734e660d..7d0420274d 100644 --- a/include/linux/console.h +++ b/include/linux/console.h @@ -63,9 +63,11 @@ extern const struct consw vga_con; /* VGA text console */ extern const struct consw newport_con; /* SGI Newport console */ extern const struct consw prom_con; /* SPARC PROM console */ +int con_is_bound(const struct consw *csw); +int register_con_driver(const struct consw *csw, int first, int last); +int unregister_con_driver(const struct consw *csw); int take_over_console(const struct consw *sw, int first, int last, int deflt); void give_up_console(const struct consw *sw); - /* scroll */ #define SM_UP (1) #define SM_DOWN (2) @@ -87,6 +89,7 @@ void give_up_console(const struct consw *sw); #define CON_CONSDEV (2) /* Last on the command line */ #define CON_ENABLED (4) #define CON_BOOT (8) +#define CON_ANYTIME (16) /* Safe to call when cpu is offline */ struct console { @@ -117,9 +120,17 @@ extern void console_stop(struct console *); extern void console_start(struct console *); extern int is_console_locked(void); +#ifndef CONFIG_DISABLE_CONSOLE_SUSPEND /* Suspend and resume console messages over PM events */ extern void suspend_console(void); extern void resume_console(void); +#else +static inline void suspend_console(void) {} +static inline void resume_console(void) {} +#endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */ + +int mda_console_init(void); +void prom_con_init(void); /* Some debug stub to catch some of the obvious races in the VT code */ #if 1