diff options
Diffstat (limited to 'kernel/printk/braille.h')
| -rw-r--r-- | kernel/printk/braille.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/kernel/printk/braille.h b/kernel/printk/braille.h new file mode 100644 index 000000000000..769d771145c8 --- /dev/null +++ b/kernel/printk/braille.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | #ifndef _PRINTK_BRAILLE_H | ||
| 2 | #define _PRINTK_BRAILLE_H | ||
| 3 | |||
| 4 | #ifdef CONFIG_A11Y_BRAILLE_CONSOLE | ||
| 5 | |||
| 6 | static inline void | ||
| 7 | braille_set_options(struct console_cmdline *c, char *brl_options) | ||
| 8 | { | ||
| 9 | c->brl_options = brl_options; | ||
| 10 | } | ||
| 11 | |||
| 12 | char * | ||
| 13 | _braille_console_setup(char **str, char **brl_options); | ||
| 14 | |||
| 15 | int | ||
| 16 | _braille_register_console(struct console *console, struct console_cmdline *c); | ||
| 17 | |||
| 18 | int | ||
| 19 | _braille_unregister_console(struct console *console); | ||
| 20 | |||
| 21 | #else | ||
| 22 | |||
| 23 | static inline void | ||
| 24 | braille_set_options(struct console_cmdline *c, char *brl_options) | ||
| 25 | { | ||
| 26 | } | ||
| 27 | |||
| 28 | static inline char * | ||
| 29 | _braille_console_setup(char **str, char **brl_options) | ||
| 30 | { | ||
| 31 | return NULL; | ||
| 32 | } | ||
| 33 | |||
| 34 | static inline int | ||
| 35 | _braille_register_console(struct console *console, struct console_cmdline *c) | ||
| 36 | { | ||
| 37 | return 0; | ||
| 38 | } | ||
| 39 | |||
| 40 | static inline int | ||
| 41 | _braille_unregister_console(struct console *console) | ||
| 42 | { | ||
| 43 | return 0; | ||
| 44 | } | ||
| 45 | |||
| 46 | #endif | ||
| 47 | |||
| 48 | #endif | ||
